Incorrect Ownership and Permission after Relinking or Patching 11gR2 Grid Infrastructure [ID 1083982
来源:互联网 发布:免费衣柜设计软件 编辑:程序博客网 时间:2024/05/19 01:07
To Bottom
Information in this document applies to any platform.
1. Prior to the change:
2. Unlock Grid Infrastructure home for patching or relinking, as root:
# $GRID_HOME/crs/install/rootcrs.pl -unlock -crshome $GRID_HOME
3. As grid user, relinking:
$ $GRID_HOME/bin/relink
Alternatively for RDS protocol:
$ cd $GRID_HOME/rdbms/lib
$ make -f ins_rdbms.mk ipc_rds ioracle
For UDP protocol:
$ cd $GRID_HOME/rdbms/lib
$ make -f ins_rdbms.mk ipc_g ioracle
or patching:
$ $GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local <patch_file location>
4. Lock down Grid home, as root:
# $GRID_HOME/crs/install/rootcrs.pl -patch
5. Verify ownership and permission:
6. In Job Role Separation environment, database may fail to start or stop:
cd $GRID_HOME/crs/install
cp -p crspatch.pm crspatch.pm.8797450
Edit crspatch.pm, locate and modify the following from:
to:
Once crspatch.pm is modified, unlock and relock $GRID_HOME:
As root:
# $GRID_HOME/crs/install/rootcrs.pl -unlock -crshome $GRID_HOME
# $GRID_HOME/crs/install/rootcrs.pl -patch
06-Dec-2011PROBLEMPUBLISHED3Comments (0)
In this Document
Symptoms
Cause
Solution
References
Applies to:
Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later [Release: 11.2 and later ]Information in this document applies to any platform.
Symptoms
After patching or relinking Grid Infrastructure home with proper procedure, ownership and permission of certain files were not restored to pre patch value. Steps to reproduce the problem:1. Prior to the change:
env|grep GRID_HOME
GRID_HOME=/ocw/grid
env|grep HOST
HOSTNAME=eyrac2f
cd $GRID_HOME/log/$HOST
ls -l
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:04 admin
drwxrwxr-t 4 root oinstall 4096 Mar 16 16:04 agent
-rwxr-xr-x 1 ogrid oinstall 198690 Apr 13 21:28 alerteyrac2f.log
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:06 client
drwxr-x--- 2 root oinstall 4096 Apr 12 13:20 crsd
drwxr-x--- 2 ogrid oinstall 4096 Apr 11 05:33 cssd
drwxr-x--- 2 root oinstall 4096 Apr 13 09:30 ctssd
drwxr-x--- 2 ogrid oinstall 4096 Apr 13 14:28 diskmon
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:06 evmd
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:04 gipcd
drwxr-x--- 2 root oinstall 4096 Mar 16 16:04 gnsd
drwxr-x--- 2 ogrid oinstall 4096 Apr 13 15:18 gpnpd
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:04 mdnsd
drwxr-x--- 2 root oinstall 4096 Apr 11 00:04 ohasd
drwxrwxr-t 5 ogrid oinstall 4096 Mar 16 16:04 racg
drwxr-x--- 2 ogrid oinstall 4096 Apr 13 15:19 srvm
GRID_HOME=/ocw/grid
env|grep HOST
HOSTNAME=eyrac2f
cd $GRID_HOME/log/$HOST
ls -l
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:04 admin
drwxrwxr-t 4 root oinstall 4096 Mar 16 16:04 agent
-rwxr-xr-x 1 ogrid oinstall 198690 Apr 13 21:28 alerteyrac2f.log
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:06 client
drwxr-x--- 2 root oinstall 4096 Apr 12 13:20 crsd
drwxr-x--- 2 ogrid oinstall 4096 Apr 11 05:33 cssd
drwxr-x--- 2 root oinstall 4096 Apr 13 09:30 ctssd
drwxr-x--- 2 ogrid oinstall 4096 Apr 13 14:28 diskmon
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:06 evmd
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:04 gipcd
drwxr-x--- 2 root oinstall 4096 Mar 16 16:04 gnsd
drwxr-x--- 2 ogrid oinstall 4096 Apr 13 15:18 gpnpd
drwxr-x--- 2 ogrid oinstall 4096 Mar 16 16:04 mdnsd
drwxr-x--- 2 root oinstall 4096 Apr 11 00:04 ohasd
drwxrwxr-t 5 ogrid oinstall 4096 Mar 16 16:04 racg
drwxr-x--- 2 ogrid oinstall 4096 Apr 13 15:19 srvm
2. Unlock Grid Infrastructure home for patching or relinking, as root:
# $GRID_HOME/crs/install/rootcrs.pl -unlock -crshome $GRID_HOME
3. As grid user, relinking:
$ $GRID_HOME/bin/relink
Alternatively for RDS protocol:
$ cd $GRID_HOME/rdbms/lib
$ make -f ins_rdbms.mk ipc_rds ioracle
For UDP protocol:
$ cd $GRID_HOME/rdbms/lib
$ make -f ins_rdbms.mk ipc_g ioracle
or patching:
$ $GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local <patch_file location>
4. Lock down Grid home, as root:
# $GRID_HOME/crs/install/rootcrs.pl -patch
5. Verify ownership and permission:
env|grep GRID_HOME
GRID_HOME=/ocw/grid
env|grep HOST
HOSTNAME=eyrac2f
cd $GRID_HOME/log/$HOST
ls -l
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:23 admin
drwxr-xr-x 4 ogrid oinstall 4096 Mar 16 14:23 agent
-rwxr-xr-x 1 ogrid oinstall 16393 Apr 13 22:25 alerteyrac2f.log
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:57 client
drwxr-xr-x 2 ogrid oinstall 4096 Apr 13 20:17 crsd
drwxr-xr-x 2 ogrid oinstall 4096 Apr 10 22:56 cssd
drwxr-xr-x 2 ogrid oinstall 4096 Apr 12 05:05 ctssd
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 15:38 diskmon
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:28 evmd
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:24 gipcd
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:23 gnsd
drwxr-xr-x 2 ogrid oinstall 4096 Apr 13 22:24 gpnpd
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:24 mdnsd
drwxr-xr-x 2 ogrid oinstall 4096 Apr 13 22:24 ohasd
drwxr-xr-x 5 ogrid oinstall 4096 Apr 13 15:07 racg
drwxr-xr-x 2 ogrid oinstall 4096 Apr 13 22:25 srvm
GRID_HOME=/ocw/grid
env|grep HOST
HOSTNAME=eyrac2f
cd $GRID_HOME/log/$HOST
ls -l
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:23 admin
drwxr-xr-x 4 ogrid oinstall 4096 Mar 16 14:23 agent
-rwxr-xr-x 1 ogrid oinstall 16393 Apr 13 22:25 alerteyrac2f.log
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:57 client
drwxr-xr-x 2 ogrid oinstall 4096 Apr 13 20:17 crsd
drwxr-xr-x 2 ogrid oinstall 4096 Apr 10 22:56 cssd
drwxr-xr-x 2 ogrid oinstall 4096 Apr 12 05:05 ctssd
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 15:38 diskmon
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:28 evmd
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:24 gipcd
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:23 gnsd
drwxr-xr-x 2 ogrid oinstall 4096 Apr 13 22:24 gpnpd
drwxr-xr-x 2 ogrid oinstall 4096 Mar 16 14:24 mdnsd
drwxr-xr-x 2 ogrid oinstall 4096 Apr 13 22:24 ohasd
drwxr-xr-x 5 ogrid oinstall 4096 Apr 13 15:07 racg
drwxr-xr-x 2 ogrid oinstall 4096 Apr 13 22:25 srvm
6. In Job Role Separation environment, database may fail to start or stop:
$GRID_HOME/bin/crsctl stat res -t
..
ora.db1.db
1 OFFLINE UNKNOWN node1
2 OFFLINE UNKNOWN node2
..srvctl stop database -d db1 -f
PRCR-1065 : Failed to stop resource ora.db1.db
CRS-2680: Clean of 'ora.db1.db' on 'node1' failed
CRS-5802: Unable to start the agent process
CRS-2680: Clean of 'ora.db1.db' on 'node2' failed
CRS-5802: Unable to start the agent processcrsctl stop res ora.testdbp.db
CRS-2679: Attempting to clean 'ora.db1.db' on 'node1'
CRS-2679: Attempting to clean 'ora.db2.db' on 'node2'
CRS-2680: Clean of 'ora.db1.db' on 'node1' failed
CRS-5802: Unable to start the agent process
CRS-2680: Clean of 'ora.db1.db' on 'node2' failed
CRS-5802: Unable to start the agent process
CRS-4000: Command Stop failed, or completed with errors.
Cause
The is due to unpublished bug 8797450Solution
Bug 8797450 is fixed in 11.2.0.2 and 11.2.0.1.2, before the fix is ready, please use the following workaround:cd $GRID_HOME/crs/install
cp -p crspatch.pm crspatch.pm.8797450
Edit crspatch.pm, locate and modify the following from:
instantiate_scripts ();
copy_wrapper_scripts ();
set_file_perms ();
to:
instantiate_scripts ();
copy_wrapper_scripts ();
create_dirs ();
set_file_perms ();
Once crspatch.pm is modified, unlock and relock $GRID_HOME:
As root:
# $GRID_HOME/crs/install/rootcrs.pl -unlock -crshome $GRID_HOME
# $GRID_HOME/crs/install/rootcrs.pl -patch
References
BUG:9095205 - ROOTCRS -PATCH DOES NOT CHANGE PERMISSIONS IN GRIDHOME- Incorrect Ownership and Permission after Relinking or Patching 11gR2 Grid Infrastructure [ID 1083982
- How to Delete or Add Resource in 11gR2 Grid Infrastructure [ID 1069369.1]
- How to Delete or Add Resource in 11gR2 Grid Infrastructure [ID 1069369.1]
- Srvctl Does Not Work After the Grid infrastructure upgrade from 11gr2 to 12c (文档 ID 2132856.1)
- 11gR2 Grid infrastructure fails to install
- How to Proceed from Failed Upgrade to 11gR2 Grid Infrastructure (CRS) [ID 969254.1]
- How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation [ID 942166.1]
- How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation [ID 942166.1]
- How to Proceed from Failed Upgrade to 11gR2 Grid Infrastructure (CRS) [ID 969254.1]
- How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation [ID 942166.1]
- 11gR2 Grid Infrastructure Single Client Access Name (SCAN) Explained [ID 887522.1]
- Pre 11.2 Database Issues in 11gR2 Grid Infrastructure Environment (文档 ID 948456.1)
- 在11gR2 Grid Infrastructure过程中出现 INS-40901 或 INS-40937 错误 (文档 ID 1056223.1)
- oracle 11gR2 grid infrastructure无法识别ASM disks
- 11gR2 Grid Infrastructure Installation prerequisites On Windows
- 11gR2 Grid Infrastructure Installation prerequisites On LINUX
- 重新配置与卸载 11gR2 Grid Infrastructure
- 重新配置与卸载 11gR2 Grid Infrastructure
- 效率源于方法之一例
- 关于VC工程的RC文件
- 在Windows下配置MinGW编译环境和Code::Blocks编辑器
- 国外网络开放课程遍地开花
- 大话存储系列3——磁盘原理
- Incorrect Ownership and Permission after Relinking or Patching 11gR2 Grid Infrastructure [ID 1083982
- java 实现jms的客户端(发送接收消息)
- 如何用VBA读取UTF编码的文本文件?
- POCO C++库学习和分析 -- 数据类型转换
- leetcode 104: Reverse Integer
- UDP发送和接收程序
- hdu 2187 悼念512汶川大地震遇难同胞——老人是真饿了 贪心
- java nio
- 一个的元器件管脚和线序