3

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

Say in a company 5 peoples are working and they are accessing the server with Admin userid and password to login the system and if some-one changes some modifications in the server using sqlplus / as sysdba it will affect the rest of the peoples right so in-order to avoid we need to restrict the login by setting password.

tinlyx
3,84014 gold badges50 silver badges79 bronze badges
asked Feb 14, 2013 at 12:02
2
  • 8
    "they are accessing the server with Admin userid and password to login the system" - that's your main problem. People who're not supposed to be able to administer the database shouldn't have access to the database OS user accounts. Commented Feb 14, 2013 at 12:25
  • 2
    Even if you change the password they can reset it when connected as the oracle OS user. I agree with @Mat, secure the OS user first. Commented Feb 14, 2013 at 12:34

2 Answers 2

2

You'll need to decide whether you want to use OS authentication or use a password file. See http://docs.oracle.com/cd/E11882_01/server.112/e25494/dba006.htm#i1006628 to help you decide.

Will users administer the database by first logging in to the database server using eg ssh? Then you can use OS authentication.

Best practice for OS authentication: No-one should be logging in as the oracle OS user. Each DBA should have their own OS account and login as that. Their OS account should be a member of the OS DBA group (remember that only members of the OS DBA group can login using sqlplus / as sysdba).

If you want to allow remote administration, then you'll either need a secure connection to the database (just like SSH provides that to the server when administering locally) or you'll need to use a password file.

answered Feb 14, 2013 at 13:08
0

To disable logging in using only "/" open up sqlnet.ora and change SQLNET.AUTHENTICATION_SERVICES= (NTS) to: SQLNET.AUTHENTICATION_SERVICES= (NONE)

Of course anyone with admin priviliges on the OS level can still login by changing this again or using the orapwd tool to set the SYS password.

answered Mar 1, 2013 at 23:07
1
  • NB NTS only applies to Windows servers. Commented May 24, 2023 at 14:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.