安装失败后,查看日志提示以下错误:
Stopping CRS...
Stopped CRS successfully
patch /oracle/soft/28813878/28729234 apply successful for home /oracle/app/11.2.0.4/grid
patch /oracle/soft/28813878/28729262 apply failed for home /oracle/app/11.2.0.4/grid
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
分析安装日志,提示 PRE 安装失败,详细日志如下所示:
+829 You must apply the patch with the install user
+830 Command invocation returned Error... '', Return Code = 1
+831 Execution of PRE script failed, with return value = 1
+832
+833 Do you want to proceed? [y|n]
+834 N (auto-answered by -silent)
+835 User Responded with: N
+836 ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'
+837
+838 Restoring "/oracle/app/11.2.0.4/grid" to the state prior to running NApply...
+839 Checking if OPatch needs to invoke 'make' to restore some binaries...
+840 OPatch was able to restore your system. Look at log file and timestamp of each file to make sure your system is i
n the state prior to applying the patch.
……
[May 30, 2019 8:54:44 AM] [SEVERE] OUI-67073:UtilSession failed: ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'
[May 30, 2019 8:54:44 AM] [INFO] --------------------------------------------------------------------------------
[May 30, 2019 8:54:44 AM] [INFO] The following warnings have occurred during OPatch execution:
[May 30, 2019 8:54:44 AM] [INFO] 1) OUI-67133:Execution of PRE script failed, with return value = 1
[May 30, 2019 8:54:44 AM] [INFO] 2) OUI-67124:ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'
[May 30, 2019 8:54:44 AM] [INFO] 3) OUI-67124:
NApply restored the home. Please check your ORACLE_HOME to make sure:
- files are restored properly.
- binaries are re-linked correctly.
(use restore.[sh,bat] and make.txt (Unix only) as a reference. They are located under
"/oracle/app/11.2.0.4/grid/.patch_storage/NApply/2019-05-30_08-48-06AM"
根据错误提示,显示该内容需要软件安装用户进行,猜测应该涉及用户相关问题,通过查询MOS信息获取到该问题在2018年10月GI PSU上,由于报错相关信息跟MOS是否吻合,同时使用root用户验证$USER信息和MOS一致,采取MOS提供解决方式尝试重新安装,安装成功。
[oracle@icdb1:/]#su grid -c "echo $USER"
root
根据MOS提示在安装补丁之前配置用户环境变量
# export USER=
# echo $USER
#
在安装grid和Oracle补丁时需使用不同的USER进行安装,否则容易引起补丁安装失败。该问题已在AIX 71和AIX 72上出现。
MOS 参考文档:
opatch auto Fails to Apply DBPSU With Error OUI-67133:Execution of PRE script failed and OUI-67124:ApplySession failed in system modification phase ( 文档 ID 2468874.1)