grid赋予oracle磁盘权限,GI - GRID_HOME或grid用户$ORACLE_HOME权限被错误更改后如何恢复...

Red Hat Linux 6.5, Oracle 12.1.0.2 GI , Oracle 11.2.0.4 RAC DB

两个节点的RAC, 准备加入第三个节点,在操作中,错误的将第一个节点的 GRID_HOME 权限全被更改为了 grid:oinstall .

# cd /data01/app

# mkdir -p  12.1.0/grid

# chown -R  grid.oinstall  12.1.0/grid

# chmod -R 755  12.1.0/grid

通过如下的Oracle文档修复后,发现权限被修复正常了。

How to check and fix file permissions on Grid Infrastructure environment (文档 ID 1931142.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later

Information in this document applies to any platform.

GOAL

To provide ways how to check, find and correct permissions for Grid Infrastructure (GI)  $ORACLE_HOME or .

SOLUTION

1. Validate the by using cluvfy tool.

$ cluvfy comp software -n all -verbose

This though only validates the binary files and theirs permissions. This is mentioned in unpublished bug 18407533 (closed as not a bug).

2. Check the permissions from the following 2 files which are created during Grid Infrastructure installation.

In $GRID_HOME/crs/utl (for 11.2 and 12.1.0.1) and /crs/utl/ (for 12.1.0.2) directory:

- crsconfig_dirs which has all directories listed in and their permissions

- crsconfig_fileperms which has list of files and their permissions and locations in .

3. The permissions can be reverted back to original values with rootcrs.pl or roothas.pl.  For versions 11.2.0.3.6 and higher, there is an option -init:

Reset the permissions of all files and directories under Oracle . Please ensure CRS is not running while performing the followings:

For 11.2:

For clustered Grid Infrastructure, as root user

# cd /crs/install/

# ./rootcrs.pl -init

For Standalone Grid Infrastructure, as root user

# cd /crs/install/

# ./roothas.pl  -init

For 12c:

For clustered Grid Infrastructure, as root user

# cd /crs/install/

# ./rootcrs.sh -init

For Standalone Grid Infrastructure, as root user

# cd /crs/install/

# ./roothas.sh -init

4. If that does not work then permissions can be altered manually with information found from crsconfig_fileperms and crsconfig_dirs files.

Please note that changing the permissions manually is the last resort and shouldn't be used unless recommended by Oracle support or development.

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

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值