How to set password for sqlplus / as sysdba

I am new to Oracle. I would like to know how to set login password for sqlplus / as sysdba in oracle 11g.

I want to set a password for my next login, I do not want to log in as sqlplus / as sysdba , since any user can log in using sqlplus / as sysdba and can easily access data or change the password for an existing user . I need to restrict login.

+8
oracle11g
source share
3 answers

To set a new password, you must (after connecting to the database):

alter user SYS identified by "newpassword"; 

But if you want to deny connection without a password - sqlplus / as sysdba , you need to add this:

 SQLNET.AUTHENTICATION_SERVICES=none 

in sqlnet.ora

+12
source share

Not everyone can log in using sqlplus / as sysdba . The OS user must be a member of the OS DBA group created to manage the database (this group may have a different name).

You should only assign a valid membership in this group. And, in my opinion, no one should log in as oracle (assuming a Unix (-like) system here).

+3
source share
 SQLPLUS username/password@identifier_name 
-one
source share

All Articles