|
rhel6.3 x86-64
oracle 11g r2 11.2.0.4
执行psu 11.2.0.4.8,
一执行:
/u01/app/grid/product/11.2.0/grid/OPatch/opatch auto /u01/setup/patch/21523375 -ocmrf /home/grid/ocm.rsp
执行一会,就报错了:
2015-11-05 17:38:12: Status of component/conflict check for /u01/app/grid/product/11.2.0/grid is 1
2015-11-05 17:38:12: Conflict check passes for oracle home /u01/app/grid/product/11.2.0/grid
2015-11-05 17:38:12: Conflict check failed
2015-11-05 17:38:12: ERROR: Conflict-Check has failed . Please refer to /u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto2015-11-05_17-37-31.log for details
检查:/u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto2015-11-05_17-37-31.log ,发现以下错误:
2015-11-05 17:38:01: Running as user oracle: /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch prereq CheckComponents -ph /u01/setup/patch/21523375/21352649/custom
/server/21352649 -oh /u01/app/oracle/product/11.2.0/db_1 -customLogDir /u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto/core
2015-11-05 17:38:01: s_run_as_user2: Running /bin/su oracle -c ' /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch prereq CheckComponents -ph /u01/setup/patch/2152
3375/21352649/custom/server/21352649 -oh /u01/app/oracle/product/11.2.0/db_1 -customLogDir /u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto/core '
2015-11-05 17:38:01: Removing file /tmp/filelkZPUi
2015-11-05 17:38:01: Successfully removed file: /tmp/filelkZPUi
2015-11-05 17:38:01: /bin/su exited with rc=1
2015-11-05 17:38:01: The opatch Component check failed. This patch is not applicable for /u01/app/oracle/product/11.2.0/db_1
2015-11-05 17:38:01: The component check failed with following error
2015-11-05 17:38:01: Input custom log directory "/u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto/core" does not exists or not a valid directory.
OPatch failed with error code 1
明明是root用户执行的,这里却是用 oracle用户来执行,通过oracle用户,检查 "/u01/app/grid/product/11.2.0/grid/cfgtoollogs/opatchauto/core" ,确实会报权限不够
检查发现,ls -ld /u01/app/grid/product/11.2.0/grid/cfgtoollogs 权限为 700,修改为775 后,再去执行psu,问题解决。
chmod 775 /u01/app/grid/product/11.2.0/grid/cfgtoollogs
|
|