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

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
dba
group. The execute flag is set for "others" by default, so any user can runsqlplus
and 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 thedba
group:Default rights for
sqlplus
have set the ex
ecution flag forothers
:User
gerald
is not part ofdba
group and therefore not allowed to connect viasqlplus / as sysdba
:However, the user
gerald
can still runsqlplus
and connect via username/password:Obviously, if you don't want to give users
SYS
access at all, don't share the SYS password with them!