本文共 1764 字,大约阅读时间需要 5 分钟。
官方文档
GI PSU Installation Fails With "ERROR: Prepatch Execution For DB Home ... Failed" (文档 ID 2236977.1)
GI 打补丁报错
tail -f /oracle/app/product/11.2.0/cfgtoollogs/opatchauto2018-03-06_16-25-12.log2018-03-06 16:15:24: Running as user oracle: /oracle/soft/27107360/26609929/custom/server/26609929/custom/scripts/prepatch.sh -dbhome /oracle/app/oracle/product/11.2.02018-03-06 16:15:24: s_run_as_user2: Running /bin/su oracle -c ' /oracle/soft/27107360/26609929/custom/server/26609929/custom/scripts/prepatch.sh -dbhome /oracle/app/oracle/product/11.2.0 '2018-03-06 16:15:24: Removing file /tmp/dbaXQ5Me42018-03-06 16:15:24: Successfully removed file: /tmp/dbaXQ5Me42018-03-06 16:15:24: /bin/su exited with rc=1262018-03-06 16:15:24: ERROR: prepatch execution for DB home ... failed
解决方法
# ls -ltotal 13102568drwxr-xr-x 5 root system 256 Dec 19 23:08 27107360drwxr-xr-x 15 root system 4096 Jan 22 14:10 OPatch-rw-r--r-- 1 root system 129753 Jan 16 04:01 PatchSearch.xmldrwxrwxrwx 8 oracle oinstall 4096 Oct 08 2013 databasedrwxrwxrwx 8 grid oinstall 4096 Oct 08 2013 grid-rwxrwxrwx 1 grid oinstall 1801653734 Feb 01 17:54 p13390677_112040_AIX64-5L_1of7.zip-rwxrwxrwx 1 grid oinstall 1170882875 Feb 01 17:57 p13390677_112040_AIX64-5L_2of7.zip-rwxrwxrwx 1 grid oinstall 2127071138 Feb 01 18:02 p13390677_112040_AIX64-5L_3of7.zip-rwxrwxrwx 1 root system 44329943 Feb 01 20:34 p26925532_112040_AIX64-5L.zip-rwxrwxrwx 1 grid oinstall 1403937842 Feb 01 20:38 p27107360_112040_AIX64-5L.zip-rw-r--r-- 1 root system 160483974 Feb 07 19:42 p6880880_112000_AIX64-5L.zip# chmod -R 775 27107360 ##添加可执行权限即可,重新执行打补丁命令即可#
转载于:https://blog.51cto.com/roidba/2083500