Home > oracle > Oracle DB – Quick Reference

Oracle DB – Quick Reference

A quick reference for us Novices

View current database select * from global_name;
Create a new user create user “username” identified by “password”;
eg create user felix identified by felix
Grant connect and resource privileges grant connect, resource to felix;
Allow user to create new tables grant dba to felix;
Change the default number of lines per page(14) set pagesize 60;
Change the default number of characters per line (80) set linesize 100;
Clear formatting clear column;
Run previous command /

Now I can connect to database as

vagrant-ubuntu-oracle-xe$ rlwrap sqlplus64 felix/felix@//localhost:1521/XE

Documentation:
http://docs.oracle.com/cd/B19306_01/server.102/b14357/toc.htm

Source:
http://wiki.titan2x.com/index.php?title=Oracle_SQL_cheat_sheet
http://www.vttoth.com/CMS/index.php/technical-notes/81
https://community.oracle.com/thread/1058514?tstart=0

Advertisements
Categories: oracle
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: