It is possible to allow the use of sqlplus at OS level to a certain user or group, but restrict the use of "sqlplus / as sysdba" to the same user o group?
Restrict user to use ‘conn /as sysdba’ from OS Level
2k Views Asked by MasterC At
2
There are 2 best solutions below
0
On
Normally anyone with an Oracle username assigned to them can use SQLPLus but only members of the Oracle owner OS group can use sqlplus as sysdba without needing a password. This privilege is normally assigned to OS group DBA, but can be different. I have worked on a system where members of the DBA group could not connect using as sysdba since Oracle as set up only in oinstall. This is configured at install time. The answer to your question as asked is, No. If you assign them to the privileged group then they have the privilege.
If I understood your question correctly the answer to the question is YES, as long as the user is not part of the
dbagroup. The execute flag is set for "others" by default, so any user can runsqlplusand connect with a username/password. You don't even have to setup a new user or group specifically, just make sure that the user is not part of thedbagroup:Default rights for
sqlplushave set the execution flag forothers:User
geraldis not part ofdbagroup and therefore not allowed to connect viasqlplus / as sysdba:However, the user
geraldcan still runsqlplusand connect via username/password:Obviously, if you don't want to give users
SYSaccess at all, don't share the SYS password with them!