Solved

Adding and Granting Permission

Posted on 2004-10-08
2
5,221 Views
Last Modified: 2008-01-09
I installed Oracle 9i for testing and would like to add a user and then give that user root permission....how can this be done?

when I say root - I am saying giving permission for this user to do everything
0
Comment
Question by:duemes
2 Comments
 
LVL 10

Expert Comment

by:SDutta
ID: 12261630
Create the user and grant it DBA.

The DBA role generally allows you to do almost anything. There are still some views etc which are not visible as DBA in which case you need to connect as the user SYS. To connect as SYS you use the SYS user or any other user which has been granted SYSDBA and use the connection string with "connect user/pwd@sid AS SYSDBA".
0
 
LVL 23

Accepted Solution

by:
seazodiac earned 500 total points
ID: 12261716
--->when I say root - I am saying giving permission for this user to do everything


this is not a good practice though. Just like in UNIX world, there is only one ROOT, and You don't want other user to tamper with that account. and most of time, you will be using a regular user account. if you need more privs, you can always assign them.


After installing Oracle9i, you have two powerful user: sys and system,
sys will be the euqivalent of ROOT as if it were in the OS level within the database.

so you need to log in as SYS user as Sdutta pointed out:

SQL>create user <user name> identified by <password>
default tablespace <tablespace_name other than system>
quota unlimited on <the above mentioned default tablespace name>;

SQL>grant connect, resource, dba to <this user account>;

this dba role will let you do pretty much everything within oracle database.

but you can also give this user to one level even above DBA, that's SYSDBA role:


SQL>grant sysdba to <this user account> ;

now this user is just as same as sys user...
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now