• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Sys user as sysdba

 
Ranch Hand
Posts: 8953
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Normal users log as

scott/tiger

But sys logs as

sys/xxx as sysdba

I understand that Sys is a user ,right? What is sysdba ? Is it a privilege?

I can also log as sys/xxx as sysoper ?

Is the password same for sysoper and sysdba? Or they both sys(logging with sysdba ) and sys (logging as sysoper) the same user?
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I understand that Sys is a user ,right?


YES.


What is sysdba ? Is it a privilege?


It is a role with DBA privilege.


I can also log as sys/xxx as sysoper ?


YES, but the access right is different. If I am correct, SYSDBA can do anything, but SYSOPER cannot perform startup and shutdown.


Is the password same for sysoper and sysdba? Or they both sys(logging with sysdba ) and sys (logging as sysoper) the same user?


NOPE. They are just 2 roles. Depending on the user, they might have different password.

Nick
 
Pradeep bhatt
Ranch Hand
Posts: 8953
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

NOPE. They are just 2 roles. Depending on the user, they might have different password



Does this mean that a single user "sys" has 2 passwords depending on privilege used to login?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nope, "sys" only has 1 password, however, if he has multiple roles, he can login as he wants, by using "as sysdba", "as sysoper" or other valid roles.

Nick
 
author & internet detective
Posts: 42173
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pradeep,
This article expands on what Nicholas has said.
 
Pradeep bhatt
Ranch Hand
Posts: 8953
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jeanne
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sqlplus / nolog
>connect /as sysdba
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jeanne.


sqlplus / nolog
>connect /as sysdba


This is just for login with verification by OS, and seems not really related to the discussion.

Nick
 
pie. tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic