My Oracle Support Banner

Prerequisite Check for 'Patch Oracle Database' is Failing at the Analyse Stage in Grid Control (Doc ID 1447223.1)

Last updated on NOVEMBER 16, 2022

Applies to:

Enterprise Manager for Oracle Database - Version 10.2.0.5 to 11.1.0.1 [Release 10.2 to 11.1]
IBM AIX on POWER Systems (64-bit)

Symptoms

Trying to apply Patch to Database in AIX, using 'Patch Oracle Database' Deployment Procedure of Enterprise Manager (EM) 11g Grid Control is failing at 'Run Prerequisite Checks' step with following errors:

This is Provisioning Executor Script


Input PropertyFilePath is <Agent Base>/agent11g/EMStage/PAF/Job_<JOB_ID>/properties
Input directiveScriptFilePath is <Agent Base>/agent11g/EMStage/PAF/Job_<JOB_ID>/runPrereq.pl
Input directiveTypeProperty is NAME_Executor
Input componentPath is null
Input directivePath is Directive
Input componentFilename is null
............
Starting execution of Prerequisites...
Total No of checks: 20

Performing check for CheckUserAdminPrivilege
Is the user ADMIN?
Check complete. The overall result of this check is: Not executed <<<<


Check complete: Not executed <<<<
OUI-15038: Unable to execute rule 'CheckUserAdminPrivilege' from ruleset 'OPatchChecks'. The underlying test 'oracle.opatch.opatchprereq.OPatchChecks.checkUserAdminPrivilege' has thrown an unhandled exception [null]. If the exception results in a failure of the test and the exception needs to be propagated, then encapsulate the exception in the result object and return the result.
Recommendation: OPatch cannot be invoked as root. Run OPatch as a different user.

========================================================
Performing check for CheckOracleHome
Is Oracle Home valid?
Check complete. The overall result of this check is: Not executed <<<<


Check complete: Not executed <<<<
OUI-15038: Unable to execute rule 'CheckOracleHome' from ruleset 'OPatchChecks'. The underlying test 'oracle.opatch.opatchprereq.OPatchChecks.checkOracleHome' has thrown an unhandled exception [oracle.opatch.GenericInventory]. If the exception results in a failure of the test and the exception needs to be propagated, then encapsulate the exception in the result object and return the result.
Recommendation: Provide proper permissions for the required files or specify the correct location of the Oracle Home.

========================================================
Performing check for CheckIfOHLockedForPatching
Is the Oracle Home locked?
Check complete. The overall result of this check is: Not executed <<<<


Check complete: Not executed <<<<
OUI-15038: Unable to execute rule 'CheckIfOHLockedForPatching' from ruleset 'OPatchChecks'. The underlying test 'oracle.opatch.opatchprereq.OPatchChecks.checkIfOHLockedForPatching' has thrown an unhandled exception [oracle.opatch.GenericInventory]. If the exception results in a failure of the test and the exception needs to be propagated, then encapsulate the exception in the result object and return the result.
Recommendation: Delete the file ORACLE_HOME/.patch_storage/patch_locked if you are sure that Oracle Home is in proper state.

========================================================
............
Performing check for CheckSystemCommandAvailable
Are all system commands available?
oracle.sysman.oip.oipc.oipcr.OipcrExecuteRuleException: Unable to execute rule 'CheckSystemCommandAvailable' from ruleset 'OPatchChecks'. The underlying test 'oracle.opatch.opatchprereq.OPatchChecks.checkSystemCommandAvailable' has thrown an unhandled exception [oracle.opatch.GenericInventory]. If the exception results in a failure of the test and the exception needs to be propagated, then encapsulate the exception in the result object and return the result.
at oracle.sysman.oip.oipc.oipcr.OipcrRulesEngine.executeRule(OipcrRulesEngine.java:375)
at oracle.sysman.oip.oipc.oipcp.OipcpPrereqChecker.executeCheck(OipcpPrereqChecker.java:581)
at oracle.sysman.oip.oipc.oipcp.OipcpPrereqChecker.runChecks(OipcpPrereqChecker.java:536)
at oracle.sysman.oip.oipc.oipcp.OipcpPrereqChecker.executePrereqs(OipcpPrereqChecker.java:437)
at oracle.sysman.oip.oipc.oipcc.OipccPreReqSession$1.run(OipccPreReqSession.java:408)
at java.lang.Thread.run(Thread.java:803)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at oracle.sysman.oip.oipc.oipcr.OipcrRulesEngine.executeRule(OipcrRulesEngine.java:325)
... 5 more
Caused by: java.lang.LinkageError: oracle.opatch.GenericInventory
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:223)
at java.lang.ClassLoader.defineClass(ClassLoader.java:162)
at oracle.sysman.oii.oiix.OiixJarClassLoader.loadClassCurrent(OiixJarClassLoader.java:584)
at oracle.sysman.oii.oiix.OiixJarClassLoader.getClass(OiixJarClassLoader.java:505)
at oracle.sysman.oii.oiix.OiixJarClassLoader.loadClass(OiixJarClassLoader.java:663)
at oracle.sysman.oii.oiix.OiixJarClassLoader.loadClass(OiixJarClassLoader.java:731)
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:63)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:124)
at oracle.opatch.opatchprereq.OPatchChecks.checkSystemCommandAvailable(OPatchChecks.java:2071)

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
Cause
Solution


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