Saturday, May 21, 2016

Opatch Error libclntsh.so.11.1 executables are active

Cause: Opatch failed because of process active, find the process id and kill the process. You can find out the process which are currently active and stop the process using ps –ef |grep (process id)

                     Following executables are active :
                             /u01/app/oracle/product/11.2.4/db_1/lib/libclntsh.so.11.1
[May 20, 2016 1:27:58 PM]    OUI-67073:UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
[May 20, 2016 1:27:58 PM]    Finishing UtilSession at Fri May 20 13:27:58 EDT 2016
[May 20, 2016 1:27:58 PM]    Log file location: /u01/app/oracle/product/11.2.4/db_1/cfgtoollogs/opatch/22502456_May_20_2016_13_27_39/rollback                                                        2016-05-20_13-27-39PM_1.log
[May 20, 2016 1:27:58 PM]    Stack Description: java.lang.RuntimeException: Prerequisite check "CheckActiveFilesAndExecutables" failed.
[May 20, 2016 1:27:58 PM]    StackTrace: oracle.opatch.OPatchSessionHelper.runRollbackPrereqs(OPatchSessionHelper.java:4315)
[May 20, 2016 1:27:58 PM]    StackTrace: oracle.opatch.opatchutil.NRollback.process(NRollback.java:769)
[May 20, 2016 1:27:58 PM]    StackTrace: oracle.opatch.opatchutil.OUSession.nrollback(OUSession.java:1105)
[May 20, 2016 1:27:58 PM]    StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[May 20, 2016 1:27:58 PM]    StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[May 20, 2016 1:27:58 PM]    StackTrace: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[May 20, 2016 1:27:58 PM]    StackTrace: java.lang.reflect.Method.invoke(Method.java:592)
[May 20, 2016 1:27:58 PM]    StackTrace: oracle.opatch.UtilSession.process(UtilSession.java:317)
[May 20, 2016 1:27:58 PM]    StackTrace: oracle.opatch.OPatchSession.main(OPatchSession.java:2580)
[May 20, 2016 1:27:58 PM]    StackTrace: oracle.opatch.OPatch.main(OPatch.java:634)

Find the process id for /u01/app/oracle/product/11.2.4/db_1/lib/libclntsh.so.11.1

[root@racn1 oracle]# /sbin/fuser /u01/app/oracle/product/11.2.4/db_1/lib/libclntsh.so.11.1
/u01/app/oracle/product/11.2.4/db_1/lib/libclntsh.so.11.1: 22762m

Now kill the process 22762


[root@racn1 oracle]# kill -9 22762
[root@racn1 oracle]# Killed

No comments:

Post a Comment