AIX 7.2 下Oracle 11.2.0.4 RAC数据库root用户在使用 /u01/app/11.2.0/grid/OPatch/opatch auto /soft/28813878 -ocmrf /soft/ocm.rsp 安装11.2.0.4.20190115 PSU时,遇到
patch /soft/28813878/28729262 apply failed for home /u01/app/11.2.0/grid
查看日志显示:
ApplySession failed in system modification phas
OUI-67133: Execution of PRE script failed,with returen value 1
OPatch failed with error code 73
具体相关日志:
[Mar 29, 2019 5:23:13 PM] [INFO] Start the Apply preScript at Wed Mar 29 17:23:13 GMT 2019
[Mar 29, 2019 5:23:13 PM] [INFO] Execution of 'sh /soft/28813878/28729262/28204707/custom/scripts/pre -apply 28204707 ':
[Mar 29, 2019 5:23:13 PM] [INFO] Return Code = 1
[Mar 29, 2019 5:23:13 PM] [INFO] Execution of ' Command and arguments of pre/post scripts is restricted to be viewed in log file ':
You must apply the patch with the install user
Return Code = 1
[Mar 29, 2019 5:23:13 PM] [INFO] Command invocation returned Error... '', Return Code = 1
[Mar 29, 2019 5:23:13 PM] [INFO] Finish the Apply preScript at Wed Mar 29 17:23:13 GMT 2019
[Mar 29, 2019 5:23:13 PM] [WARNING] OUI-67133:Execution of PRE script failed, with return value = 1
[Mar 29, 2019 5:23:13 PM] [INFO] Do you want to proceed? [y|n]
[Mar 29, 2019 5:23:13 PM] [INFO] N (auto-answered by -silent)
[Mar 29, 2019 5:23:13 PM] [INFO] User Responded with: N
[Mar 29, 2019 5:23:13 PM] [WARNING] OUI-67124:ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'
[Mar 29, 2019 5:23:13 PM] [INFO] Restoring "/u01/app/11.2.0/grid" to the state prior to running NApply...
原因: 在使用root用户进行opatch auto 打补丁的时候,需要su - grid -c ' ...'去进行补丁安装,故执行pre 的身份仍是root,身份不正确。
可以用如下命令来验证: 'su <db-user> -c "echo $USER" ' ,例如
[root@rac1 ~]# su - grid -c "echo $USER"
root
解决方法:
以root用户执行下面命令安装PSU:
给GI安装PSU:
export USER=grid
/u01/app/11.2.0/grid/OPatch/opatch auto /soft/28813878 -oh /u01/app/11.2.0/grid
给Database安装PSU:
export USER=oracle
/u01/app/oracle/product/11.2.0/db_1/OPatch/opatch auto /soft/28813878 -oh /u01/app/oracle/product/11.2.0/db_1
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
2018-04-03 利用DBMS_REDEFINITION包将非分区表转化成分区表