ORA-01994: GRANT failed: password file missing or disabled

ORA-01994: GRANT failed: password file missing or disabled
Symptoms of The Error:
-------------------------
In unix system whenever you tried to grant sysdba privilege to a user it returns with error.


ORA-01994: GRANT failed: password file missing or disabled.


Cause of The Problem:
------------------------
The oracle software owner is not the owner of the passwordfile.


Solutions of The Problem:
----------------------------
1)Log on to Unix box as the same user who owns the file $ORACLE_HOME and create the password file as follows.


$orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=password entries=4 force=y
(注意文件名:应该为orapw$ORACLE_SID,否则无法识别。我就犯了这个错误)


2)Now grant sysdba privilege to the users that you need. Check V$PWFILE_USERS about the entry.


SQL>GRANT SYSDBA to SYSTEM;


3)Check the owner of $ORACLE_HOME/dbs/orapw$ORACLE_SID


This would typically,


SQL> !ls -l $ORACLE_HOME/dbs/orapw$ORACLE_SID
-rw-r----- 1 oracle oinstall 1536 Apr 23 16:31 /oracle/app/oracle/product/10.2.0/db_1/dbs/orapwdata1


4)If it is not to dba then change the ownership by


$chown oracle:dba $ORACLE_HOME/dbs/orapw$ORACLE_SID


Also change permission by,


$chmod 4640 $ORACLE_HOME/dbs/orapw$ORACLE_SID


本篇文章转自:http://blog.sina.com.cn/s/blog_6ade57e10100rrld.html


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值