Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between SYS and SYSDBA 2

Status
Not open for further replies.

Jupbs

MIS
Jun 17, 2003
29
BD
Can anyone tell me what is the difference between SYS and SYSDBA user?
Thanks in advance
Jupbs
 
Jupbs,

This is a frequently asked questions. When an Oracle database is created say via Database Configuration Assistant DBCA tool, two accounts are always created. These are "sys" and "system" (not to be confused with sysdba). The "sys" user is the most powerfull users in the database . It owns all the of the internal objects that make up the database. In addition there is another account called "system" from which you as a dba do most of your object creation.
Now "SYSDBA" is NOT a user in Oracle database but a role. To connect to database as the most powerful user you need to connect as user "sys" with the phrase "as sysdba", or Oracle will issue an error message and not let you connect.
So you do

Code:
sqlplus "sys/xxxx@connect as sysdba"

In this case you are connecting as user sys as the database administrator. You cannot connect as "sys" user without issuing the phrase "as sysdba". There are no restrictions on what a user with SYSDBA can do in the database.

I hope this helps
 
sybaseguru
thank you so much. Now i really got it.
Jupbs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top