1

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?

asked Jun 10, 2015 at 10:00

3 Answers 3

1

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:

  1. set remote_login_passwordfile to EXCLUSIVE or SHARED, but not NONE
  2. create a password file for the database if it doesn't already exist:

$ orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID

After this you should be able to log in with SYS and the password you provided.

answered Jun 10, 2015 at 10:47
1
  • I tried creating orapwd file but not working Commented Jun 11, 2015 at 3:28
0

Log in to SQL*Plus using sys and change the password for sys. Then try logging in SQL Developer, it will work.

Alter user sys identified by new_password;
Andriy M
23.3k6 gold badges60 silver badges104 bronze badges
answered Sep 10, 2016 at 10:05
0

I had the same problem with Oracle 21c and I solved it by changing SYS password to Oracle default requirements. In my case at least 8 characters.

answered Aug 13, 2024 at 10:59

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.