Using opatch auto to apply patch 18706472, it failed with error code 135:

opatchauto2017-09-23_04-21-57.log shows:

2017-09-23 04:24:41: s_run_as_user2: Running /bin/su oracle -c ' /oracle/product/11.2.0/db/OPatch/opatch napply /software_dump/latestpatch/18706472/18522509 -local -silent -ocmrf /home/grid/responsefile/file.rsp -oh /oracle/product/11.2.0/db -invPtrLoc /oracle/product/11.2.0/db/oraInst.loc '
2017-09-23 04:24:42: Removing file /tmp/filexagz0g
2017-09-23 04:24:42: Successfully removed file: /tmp/filexagz0g
2014-09-23 04:24:42: /bin/su exited with rc=135

2017-09-23 04:24:42: status of apply patch is 34560
2017-09-23 04:24:42: The apply patch output is Oracle Interim Patch Installer version
Copyright (c) 2013, Oracle Corporation. All rights reserved.

Argument(s) Error... Given 'ocmrf' file does not exists.

Please check the arguments and try again.

OPatch failed with error code 135


[oracle@racnode1 ~]$ ls -l /home/grid/responsefile/file.rsp
ls: cannot access /home/grid/responsefile/file.rsp: Permission denied

[grid@racnode1 ~]$ ls -l /home |grep grid
drwx------ 20 grid oinstall 4096 Sep 1 10:46 agrid


Either open the permission of /home/grid path to be 755, eg:

$ chmod 755 /home/grid

The permission looks like:

drwxr-xr-x 20 grid oinstall 4096 Sep 1 10:46 grid

Or create a response file under a directory accessible by both grid user and oracle user, for example: /tmp/file.rsp

Retry opatch auto command, it works fine after the change.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Skant Gupta’s LinkedIn:

Joel Perez’s LinkedIn: Joel Perez’s Profile

Anuradha’s LinkedIn: Anuradha’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.