I am trying to connect to SQL developer as sys account. It is always giving the error invalid username/password
. When I try to connect it through SQLPLUS, it gets connect with any wrong password also.
How can I connect to SQL Developer using sys account?
Best Answer
sqlplus user/password as sysdba
uses OS authentication by default, and bypasses the username and password check, so as you said, you can provide any password or username.Logging in from SQL Developer requires a remote session. For a remote SYSDBA connection, you need the following:
remote_login_passwordfile
toEXCLUSIVE
orSHARED
, but notNONE
$ orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID
After this you should be able to log in with SYS and the password you provided.