ORA-01994 故障一例

      在给用户授予sysdba权限时,收到ORA-01994错误,查看描述信息即是password file missing or disabled。也可以使用oerr ora <error_number>
来查看错误号具体的细节。从描述来看应该是密码文件丢失或REMOTE_LOGIN_PASSWORDFILE参数设置的问题。下面给出具体过程。
1、错误提示情况		
	sys@CNMMBO> grant sysdba to scott;
	grant sysdba to scott
	*
	ERROR at line 1:
	ORA-01994: GRANT failed: password file missing or disabled
	
	/**************************************************/                            
	/* Author: Robinson Cheng                         */                            
	/* Blog:   http://blog.csdn.net/robinson_0612     */                            
	/* MSN:    robinson_0612@hotmail.com              */                            
	/* QQ:     645746311                              */                            
	/**************************************************/   
						
	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.

总结:
  1、有关 Oracle 故障根据错误信息号来进行分析是最直接的办法
  2、注意sysdba,sysoper,dba不同权限之间的差异
  3、和安全相关的参数和文件
    参数:remote_login_passwordfile
           o7_dictionary_accessibility
           utl_file_dir
    文件:sqlnet.ora 

更多参考:
    Oracle 密码文件
    Oracle 用户、对象权限、系统权限 
    Oracle 角色、配置文件
    system sys,sysoper sysdba 的区别
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

清风智语

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值