My Oracle Support Banner

opatch auto Fails to Apply DBPSU With Error OUI-67133:Execution of PRE script failed and OUI-67124:ApplySession failed in system modification phase (Doc ID 2468874.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.

Symptoms

While applying October 2018 DBPSU (patch # 28204707) using "opatch auto", the execution fails with the following error:

ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'

...

OPatch failed with error code 73

When invoking "opatch auto" to apply October 2018 PSU as root user, one may hit the above error.

 
The below messages will be logged in the <ORACLE_HOME>/cfgtoollogs/opatch/opatch<TIMESTAMP>.log:

  
[Oct 24, 2018 6:10:41 PM] [INFO] Start the Apply preScript at Wed Oct 24 18:10:41 GMT 2018
[Oct 24, 2018 6:10:41 PM] [INFO] Execution of 'sh <UNZIPPED_PATCH_LOCATION>/28429134/28204707/28204707/custom/scripts/pre -apply 28204707 ':
[Oct 24, 2018 6:10:41 PM] [INFO] Return Code = 1
[Oct 24, 2018 6:10:41 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
[Oct 24, 2018 6:10:41 PM] [INFO] Command invocation returned Error... '', Return Code = 1
[Oct 24, 2018 6:10:41 PM] [INFO] Finish the Apply preScript at Wed Oct 24 18:10:41 GMT 2018
[Oct 24, 2018 6:10:41 PM] [WARNING] OUI-67133:Execution of PRE script failed, with return value = 1
[Oct 24, 2018 6:10:41 PM] [INFO] Do you want to proceed? [y|n]
[Oct 24, 2018 6:10:41 PM] [INFO] N (auto-answered by -silent)
[Oct 24, 2018 6:10:41 PM] [INFO] User Responded with: N
[Oct 24, 2018 6:10:41 PM] [WARNING] OUI-67124:ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'
[Oct 24, 2018 6:10:41 PM] [INFO] Restoring "/refresh/asmsupt/app/oracle/product/rdbms" to the state prior to running NApply...

  

 

 

To verify the issue, run the below command. If it returns "root" the workaround can be followed:

 

 

Changes

 Applying October 2018 PSU as root user by using "opatch auto" command

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.