ORA-01994: GRANT failed: password file missing or disabled
来源:互联网 发布:举报淘宝卖家售假 编辑:程序博客网 时间:2024/05/16 01:07
1、错误提示情况
sys@CNMMBO> grant sysdba to scott;
grant sysdba to scott
*
ERROR at line 1:
ORA-01994: GRANT failed: password file missing or disabled
sys@CNMMBO> ho oerr ora 01994
01994, 00000, "GRANT failed: password file missing or disabled"
// *Cause: The operation failed either because the INIT.ORA parameter
// REMOTE_LOGIN_PASSWORDFILE was set to NONE or else because the
// password file was missing.
// *Action: Create the password file using the orapwd tool and set the
// INIT.ORA parameter REMOTE_LOGIN_PASSWORDFILE to EXCLUSIVE.
sys@CNMMBO> grant sysdba to scott;
grant sysdba to scott
*
ERROR at line 1:
ORA-01994: GRANT failed: password file missing or disabled
sys@CNMMBO> ho oerr ora 01994
01994, 00000, "GRANT failed: password file missing or disabled"
// *Cause: The operation failed either because the INIT.ORA parameter
// REMOTE_LOGIN_PASSWORDFILE was set to NONE or else because the
// password file was missing.
// *Action: Create the password file using the orapwd tool and set the
// INIT.ORA parameter REMOTE_LOGIN_PASSWORDFILE to EXCLUSIVE.
2、根据提示分析解决
sys@CNMMBO> show parameter remote_login -->查看参数remote_login_passwordfile的值已经是EXCLUSIVE
-->EXCLUSIVE表示登陆时要密码文件认证,且自己使用独占模式(此为默认值)
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE
sys@CNMMBO> ho ls $ORACLE_HOME/dbs/orapw* -->查看密码文件,有一个秘密文件存在,但非当前数据库
/users/oracle/OraHome10g/dbs/orapwCNBO1
sys@CNMMBO> ho orapwd file=$ORACLE_HOME/dbs/orapwCNMMBO password=oracle entries=10 -->使用orapwd重建当前数据库密码文件
sys@CNMMBO> ho ls $ORACLE_HOME/dbs/orapw*
/users/oracle/OraHome10g/dbs/orapwCNBO1 /users/oracle/OraHome10g/dbs/orapwCNMMBO
sys@CNMMBO> grant sysdba to scott; -->重建密码文件后再次授予sysdba权限成功
Grant succeeded.
sys@CNMMBO> show parameter remote_login -->查看参数remote_login_passwordfile的值已经是EXCLUSIVE
-->EXCLUSIVE表示登陆时要密码文件认证,且自己使用独占模式(此为默认值)
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE
sys@CNMMBO> ho ls $ORACLE_HOME/dbs/orapw* -->查看密码文件,有一个秘密文件存在,但非当前数据库
/users/oracle/OraHome10g/dbs/orapwCNBO1
sys@CNMMBO> ho orapwd file=$ORACLE_HOME/dbs/orapwCNMMBO password=oracle entries=10 -->使用orapwd重建当前数据库密码文件
sys@CNMMBO> ho ls $ORACLE_HOME/dbs/orapw*
/users/oracle/OraHome10g/dbs/orapwCNBO1 /users/oracle/OraHome10g/dbs/orapwCNMMBO
sys@CNMMBO> grant sysdba to scott; -->重建密码文件后再次授予sysdba权限成功
Grant succeeded.
0 0
- ORA-01994: GRANT failed: password file missing or disabled
- ORA-01994: GRANT failed: password file missing or disabled
- ORA-00988:missing or invalid password (口令缺失或无效)
- ORA-01991 invalid password file
- ORA-28003: password verification for the specified password failed
- ORA-01506: missing or illegal database name
- ORA-01506: missing or illegal database name
- ORA-01506: missing or illegal database name
- ORA-01506: missing or illegal database name
- Xcode missing file or .png is missing from working copy
- adpatch failed with error: "Missing file format id in file"
- Oracle: failed to parse tnsnames.ora file
- ORA-28759: Failed to open file
- ORA-00245: control file backup operation failed
- ORA-00245: control file backup operation failed
- ORA-17503 ksfdopn2 Failed to open file .....
- ORA-02142: missing or invalid ALTER TABLESPACE option
- ORA-00922:missing or i…
- 中国的信息产业注定要落后美国吗?
- xcode构建iOS app时为什么分version和build两个版本号
- java内部类
- 出租车“跑断腿”马路堵成一锅粥
- scala运算符的几点说明
- ORA-01994: GRANT failed: password file missing or disabled
- java_时区与时间问题总结
- Python文件练习
- 【讲师版本】CSDN学院套餐新功能操作说明
- 如何消除VeraCode检测中的CRLF Injection Issue(CWE ID 117)
- 黑马程序员——7K面试题思路分析
- 又有小车路上自燃,所幸无人伤
- Java概述
- shell script 入门