opatch auto 安装11.2.0.4.20190115 PSU遇到 OUI-67133: Execution of PRE script failed,with returen value 1 报错

 

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

 

解决方法:

export user=grid
/u01/app/11.2.0/grid/opatch/opatch auto /soft/28813878 -oh /u01/app/11.2.0/grid

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

 

(0)
上一篇 2022年3月22日
下一篇 2022年3月22日

相关推荐