Unable to log in to database as SYS with Oracle SQL Developer

ε祈祈猫儿з 提交于 2019-12-03 05:35:36
Witold Kaczurba

From the The SYSDBA System Privilege and (Logging In and Connecting to the Database as SYSDBA:

1--Connecting AS SYSDBA invokes the SYSDBA privilege. If you omit the AS SYSDBA clause when logging in as user SYS, the SQL Command Line rejects the login attempt.

2--Using SQL Developer, open a database connection to the SYS user AS SYSDBA.

So - if this works for you:

sqlplus sys/Oracle_1@pdborcl as sysdba;

Try: "SYS AS SYSDBA" as below:

Alternatively:

you can type in: "SYS" and select from dropdown-menu ROLE: SYSDBA.

j.b.

If I understand correctly the database is on the same host as the SQL Developer installation? Are you fully qualifying the connection when testing with SQLPlus:

sqlplus "sys/password@database as sysdba"

It may be the case that the error is correct. Make sure you've created a password file.

mehdi

The sys password that you are using is not valid.

But because you are connecting to oracle by command on an Oracle machine, Oracle does not check your password even though your password is not right.

Just change the sys password and try again.

su - oracle

orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=Euro2016 entries=5

which means: write to a file $ORACLE_HOME/dbs/orapw$ORACLE_SID a password Euro2016 which is used by SYSDBA

Now you can connect with sqldeveloper: username sys, password Euro2016 with chosen SYSDBA , hostname, port, sid from $ORACLE_SID

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!