ora-15025 Permission denied


1.今天在用RMAN新搭建数据库的过程中,遇到如下错误


iqJUZp24QAAAAASUVORK5CYII=


 

    2.报权限错误,我紧接着去做了dd 看下是否有权限读写,结果报如下错误


2Q==


3.接着我查询了磁盘组属正常


 8P4y1iA3jFZNUAAAAASUVORK5CYII=


4.查询了ORACLE_HOME/bin/oracle可执行文件权限和组属


 2Q==


发现oracle可执行文件用户组不对,应该属于asmadmin


5.因此我做了如下处理


   su - grid


cd $GRID_HOME/bin


./setasmgidwrap o=<11.2 RDBMS>/bin/oracle


经过如上处理后,一切正常。后面我查看了moS 可以参考如下文档解决


1084186.11487475.1




CASE

GRID(oracle binary)

RDBMS(oracle binary)

ASM Devices permission

Impact

1. Wrong ASM device group permission

-rwsr-s--x 1 grid oinstall

-rwsr-s--x 1 oracle asmadmin 

brw-rw---- 1 grid dba ( or asmdba )

Database connections using oracle user does not have any issue as oracle user usually belong to dba as a secondary group who has read/write permission on ASM devices.

But any user who does not belong to dba group will cause the error described in the symptom.

2. Wrong oracle group permission from RDBMS 

 -rwsr-s--x 1 grid oinstall

 -rwsr-s--x 1 oracle oinstall 

 brw-rw---- 1 grid asmadmin

Database will not start up as even oracle user does not  have enough priviledge to read/write from/to ASM devices

3. Wrong oracle  binary group permission from RDBMS and wrong ASM device group permission   

 -rwsr-s--x 1 grid oinstall

-rwsr-s--x 1 oracle oinstall

 brw-rw---- 1 grid oinstall

Any user who doesn't belong to oinstall group will cause the error described in the symptom above.

And  this is not a real role separation between ASM ( SA - Storage team )  and RDBMS ( DBA team ) as all users belonged to oinstall group can destroy ASM devices using OS command such as "dd" etc.

4. No setuid bit for oracle binary from RDBMS Home 

  -rwsr-s--x 1 grid oinstall

-rwxr-x--x 1 oracle asmadmin

 brw-rw---- 1 grid asmadmin

Any user other than oracle will cause the error described in the symptom above

5. No setuid bit for oracle binary from GRID Home 

 -rwxr-x--x 1 grid oinstall

 rwsr-s--x 1 oracle asmadmin 

 brw-rw---- 1 grid asmadmin

Database will not start up with ORA-00205 and ORA-27123 error from RDBMS side. See Oracle Note 1487382.1

6. Correct Permission for role separation

 -rwsr-s--x 1 grid oinstall

-rwsr-s--x 1 oracle asmadmin  

 brw-rw---- 1 grid asmadmin

No issue.


 


Solution


1. Implement the correct permission for oracle binary from GRID and RDBMS Home and ASM devices.


 

GRID(oracle binary)

RDBMS(oracle binary)

ASM Devices permission

Correct Permission for role separation

-rwsr-s--x 1 grid oinstall

-rwsr-s--x 1 oracle asmadmin 

brw-rw---- 1 grid asmadmin



来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31134212/viewspace-2119242/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31134212/viewspace-2119242/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值