Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Password for sqlplus /as sysdba

Tags:

oracle11g

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 the password for my next login, i dont want to login as sqlplus / as sysdba since anyone can log in using sqlplus / as sysdba and can easily access the data or change password for the existing user.I need to restrict the login.

like image 440
user2064110 Avatar asked Feb 12 '13 09:02

user2064110


1 Answers

To set a new password you should (after connecting to the DB):

alter user SYS identified by "newpassword";

But if you want to prevent connecting without a password - sqlplus / as sysdba, then you need to add this:

SQLNET.AUTHENTICATION_SERVICES=none

in sqlnet.ora

like image 161
A.B.Cade Avatar answered Sep 28 '22 12:09

A.B.Cade



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!