Prerequisite Check for 'Patch Oracle Database' is Failing at the Analyse Stage in Grid Control

(Doc ID 1447223.1)

Last updated on DECEMBER 02, 2017

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 /oracle/product/11.1.0/agent11g/EMStage/PAF/Job_fd4062cfc17f4b0e94d28ce23a64a771/properties
Input directiveScriptFilePath is /oracle/product/11.1.0/agent11g/EMStage/PAF/Job_fd4062cfc17f4b0e94d28ce23a64a771/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)

Changes

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms