Oracle sys用户数据库与Oracle_SID的连接不工作。dev是我的ORACLE_SID。
sqlplus sys/manager@dev as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Thu Nov 25 01:25:33 2021
Copyright (c) 1982, 2014, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
但如果没有ORACLE_SID连接,正在工作
sqlplus sys/manager as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Thu Nov 25 01:34:05 2021
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL>
此连接似乎正在使用操作系统身份验证。因为如果我为系统用户提供了错误的密码,连接仍然有效。
为什么ORACLE_SID sys用户连接不起作用,有什么帮助吗?
在我的数据库中,sec_case_sensitive_logon参数设置为false。
SQL> show parameter sec_case_sensitive_logon
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sec_case_sensitive_logon boolean FALSE
以下是根本原因:
remote_login_passwordfile参数设置为EXCLUSIVE
SQL> show parameter remote_login_passwordfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE
REMOTE_LOGIN_PASSWORDFILE指定Oracle是否检查密码文件。
对我来说,密码文件丢失了。
已创建密码文件
orapwd file=$ORACLE_HOME/dbs/orapw<sid> password=<password> force=y ignorecase=n
反弹数据库。
然后,与Oracle_SID的Oracle系统用户数据库连接正在工作。
sqlplus sys/manager@dev as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Thu Nov 25 03:35:47 2021
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options