Prerequisite Check - CheckActiveFilesAndExecutables - Failed DBACLASS

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Search.....

ORACLE
 DBA  DBA SCRIPTS POSTGRES POSTGRES SCRIPTS DEVOPS

HOME / TROUBLESHOOTING / PREREQUISITE CHECK “CHECKACTIVEFILESANDEXECUTABLES” FAILED


Search

Prerequisite Check
Custom Search

“CheckActiveFilesAndExecutables” Failed ansible 3

BACKUP & RECOVERY 47

 40905 views  4 min , 35 sec read 3


CLOUD 16

DATABASE 57

PROBLEM:
DATABASE SCRIPTS 40
While applying a patch to oracle binary using opatch utility, got below error.

$ORACLE_HOME/OPatch/opatch apply
Database-Wiki 10

Oracle Interim Patch Installer version 12.1.0.1.10


Copyright (c) 2017, Oracle Corporation. All rights reserved. DATAGUARD 24

DB TOOLS 9

Oracle Home : /oracle/app/oracle/product/12.1.0/dbtest


Central Inventory : /oracle/app/oraInventory
GOLDENGATE 18

from : /oracle/app/oracle/product/12.1.0/dbtest/oraInst.loc
OPatch version : 12.1.0.1.10
OUI version : 12.1.0.2.0 HADOOP 3

Log file location : /oracle/app/oracle/product/12.1.0/dbtest/cfgtoollogs/opatch/opatch2017-02-16_15-30-33PM_1.log


HOW TO 43

Verifying environment and performing prerequisite checks...


Prerequisite check "CheckActiveFilesAndExecutables" failed. ORACLE 12C 61

The details are:

ORACLE 18C 4

Following executables are active :


/oracle/app/oracle/product/12.1.0/dbtest/lib/libclntsh.so.12.1 ORACLE 19C 4

Prerequisite check "CheckActiveFilesAndExecutables" failed.


The details are: ORACLE RAC 46

ORACLE SECURITY 13

Following executables are active :


/oracle/app/oracle/product/12.1.0/dbtest/lib/libsqlplus.so
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndE
xecutables" failed.
PERFORMANCE TUNING

30

Log file location: /oracle/app/oracle/product/12.1.0/dbtest/cfgtoollogs/opatch/opatch2017-02-16_15-30-33PM_1.log POSTGRES 10

OPatch failed with error code 73 R-STUDIO 4

SHELL SCRIPT 13

SOLUTION:
TROUBLESHOOTING 147
While applying patch using opatch, all processes using that ORACLE_HOME should be done. If any of the processes are still using
the ORACLE_HOME, It will fail with above error. WEBLOGIC 3

The error message clearly shows the active executables.

Following executables are active : Upgrade database from 11g to 12c


/oracle/app/oracle/product/12.1.0/dbtest/lib/libclntsh.so.12.1 –> manually

Prerequisite check “CheckActiveFilesAndExecutables” failed.  80487  16

The details are:


install oracle goldengate 12c on linux 7
Following executables are active :  64969 0

/oracle/app/oracle/product/12.1.0/dbtest/lib/libsqlplus.so –>
How to run SQL tuning advisor for a sql_id
Now find the process id using below command.  61801 6

Find which process are using the active executables  mentioned in the above error.
Upgrade database from 12.1.0.2 to 12.2.0.1
/sbin/fuser /oracle/app/oracle/product/12.1.0/dbtest/lib/libclntsh.so.12.1  53065 9

/oracle/app/oracle/product/12.1.0/dbtest/lib/libclntsh.so.12.1: 29275m 29785m


Transparent Data Encryption (TDE) in oracle
ps -ef | grep 29785 12c
oracle 29785 1 0 Feb 15 ? 0:25 /oracle/app/oracle/product/12.1.0/dbtest/bin/tnslsnr LISTENER_TEST -  52555 2

inherit
How to drop and recreate temp tablespace
oracle 13640 27442 0 15:32:51 pts/1 0:00 grep 29785
in oracle

ps -ef | grep 29275  52017 8

oracle 29275 29255 0 15:02:33 pts/2 0:00 sqlplus / as sysdba


ORA-04036: PGA memory used by the
oracle 13802 27442 0 15:33:16 pts/1 0:00 grep 29275 instance exceeds PGA_AGGREGATE_LIMIT

Kill both the process  50986 2

kill -9 29785 29275 Steps to Apply PSU patch on oracle 11g


database
2.
 47547 3
/sbin/fuser /oracle/app/oracle/product/12.1.0/dbtest/lib/libsqlplus.so
/oracle/app/oracle/product/12.1.0/dbtest/lib/libsqlplus.so: Prerequisite check
“CheckActiveFilesAndExecutables” failed
If this shows any process id , then those need to be killed also.
 40905 3

Now retry the opatch.


How to generate AWR report in oracle
# $ORACLE_HOME/OPatch/opatch apply  39527 4
Oracle Interim Patch Installer version 12.1.0.1.10
Copyright (c) 2017, Oracle Corporation. All rights reserved.
Tags
Oracle Home : /oracle/app/oracle/product/12.1.0/dbtest
Central Inventory : /oracle/app/oraInventory 12c Archive Archivelog ASM
from : /oracle/app/oracle/product/12.1.0/dbtest/oraInst.loc
OPatch version : 12.1.0.1.10 Audit AWR Backup Cloud
OUI version : 12.1.0.2.0
Log file location : /oracle/app/oracle/product/12.1.0/dbtest/cfgtoollogs/opatch/opatch2017-02-16_15-33-59PM_1.log
Database Dataguard Datapatch
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 19769480 20299023 20831110 21359755 21948354 22291127 23054246 24006101 24732082 Datapump Dgmgrl DISKGROUP

Do you want to proceed? [y|n] ENCRYPTION EXPDP Flashback


y
User Responded with: Y
Goldengate Grid Impdp
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My Installation Multitenant OGG-
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details. OPATCH ORA- Oracle 12.2.
Email address/User Name:

Oracle 12c Partition Patch


You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y
Patching PDB Pluggable

Postgres RAC Redolog


Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/oracle/app/oracle/product/12.1.0/dbtest')
Rman SCRIPT Security

Is the local system ready for patching? [y|n] SHELL Script Standby Statistics
y
User Responded with: Y Tablespace Temp Undo
Backing up files...
Applying sub-patch '19769480' to OH '/oracle/app/oracle/product/12.1.0/dbtest'
Upgrade
Patching component oracle.rdbms.deconfig, 12.1.0.2.0...

Patching component oracle.xdk, 12.1.0.2.0...

Patching component oracle.tfa, 12.1.0.2.0...

Patching component oracle.rdbms.util, 12.1.0.2.0...

Patching component oracle.rdbms, 12.1.0.2.0...

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...

Patching component oracle.xdk.parser.java, 12.1.0.2.0...

Patching component oracle.oraolap, 12.1.0.2.0...

Patching component oracle.xdk.rsf, 12.1.0.2.0...

Patching component oracle.rdbms.rsf, 12.1.0.2.0...

Patching component oracle.rdbms.rman, 12.1.0.2.0...

Patching component oracle.ldap.rsf, 12.1.0.2.0...

Patching component oracle.ldap.rsf.ic, 12.1.0.2.0...


Applying sub-patch '20299023' to OH '/oracle/app/oracle/product/12.1.0/dbtest'
ApplySession: Optional component(s) [ oracle.has.crs, 12.1.0.2.0 ] not present in the Oracle Home or a higher version i
s found.

Patching component oracle.tfa, 12.1.0.2.0...

Patching component oracle.rdbms.deconfig, 12.1.0.2.0...

Patching component oracle.rdbms.rsf, 12.1.0.2.0...

Patching component oracle.rdbms, 12.1.0.2.0...

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...

Patching component oracle.rdbms.rsf.ic, 12.1.0.2.0...

Patching component oracle.ldap.rsf, 12.1.0.2.0...

Patching component oracle.ldap.rsf.ic, 12.1.0.2.0...


Applying sub-patch '20831110' to OH '/oracle/app/oracle/product/12.1.0/dbtest'

Patching component oracle.rdbms, 12.1.0.2.0...

Patching component oracle.oraolap.dbscripts, 12.1.0.2.0...

Patching component oracle.ldap.rsf, 12.1.0.2.0...

Patching component oracle.tfa, 12.1.0.2.0...

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...

Patching component oracle.rdbms.rsf, 12.1.0.2.0...


Applying sub-patch '21359755' to OH '/oracle/app/oracle/product/12.1.0/dbtest'

Patching component oracle.assistants.server, 12.1.0.2.0...

Patching component oracle.rdbms.rsf, 12.1.0.2.0...

Patching component oracle.rdbms, 12.1.0.2.0...

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...

Patching component oracle.tfa, 12.1.0.2.0...


Applying sub-patch '21948354' to OH '/oracle/app/oracle/product/12.1.0/dbtest'

Patching component oracle.rdbms.deconfig, 12.1.0.2.0...

Patching component oracle.xdk, 12.1.0.2.0...

Patching component oracle.tfa, 12.1.0.2.0...

Patching component oracle.rdbms, 12.1.0.2.0...

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...

Patching component oracle.xdk.parser.java, 12.1.0.2.0...

Patching component oracle.rdbms.rsf, 12.1.0.2.0...

Patching component oracle.xdk.rsf, 12.1.0.2.0...


Applying sub-patch '22291127' to OH '/oracle/app/oracle/product/12.1.0/dbtest'
ApplySession: Optional component(s) [ oracle.oid.client, 12.1.0.2.0 ] not present in the Oracle Home or a higher versio
n is found.

Patching component oracle.ldap.rsf, 12.1.0.2.0...

Patching component oracle.ldap.client, 12.1.0.2.0...

Patching component oracle.tfa, 12.1.0.2.0...

Patching component oracle.rdbms, 12.1.0.2.0...

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...

Patching component oracle.rdbms.rsf, 12.1.0.2.0...

Patching component oracle.oraolap, 12.1.0.2.0...

Patching component oracle.rdbms.rman, 12.1.0.2.0...

Patching component oracle.oraolap.dbscripts, 12.1.0.2.0...


Applying sub-patch '23054246' to OH '/oracle/app/oracle/product/12.1.0/dbtest'

Patching component oracle.rdbms.dv, 12.1.0.2.0...

Patching component oracle.rdbms.rsf, 12.1.0.2.0...

Patching component oracle.rdbms.rman, 12.1.0.2.0...

Patching component oracle.rdbms, 12.1.0.2.0...

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...

Patching component oracle.ldap.rsf, 12.1.0.2.0...

Patching component oracle.install.deinstalltool, 12.1.0.2.0...

Patching component oracle.ldap.rsf.ic, 12.1.0.2.0...

Patching component oracle.oracore.rsf, 12.1.0.2.0...

Patching component oracle.ctx, 12.1.0.2.0...

Patching component oracle.xdk, 12.1.0.2.0...

Patching component oracle.nlsrtl.rsf, 12.1.0.2.0...

Patching component oracle.xdk.parser.java, 12.1.0.2.0...

Patching component oracle.ctx.atg, 12.1.0.2.0...


Applying sub-patch '24006101' to OH '/oracle/app/oracle/product/12.1.0/dbtest'

Patching component oracle.sqlplus, 12.1.0.2.0...

Patching component oracle.rdbms, 12.1.0.2.0...

Patching component oracle.network.listener, 12.1.0.2.0...

Patching component oracle.network.rsf, 12.1.0.2.0...

Patching component oracle.rdbms.dv, 12.1.0.2.0...

Patching component oracle.rdbms.rman, 12.1.0.2.0...

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...

Patching component oracle.sqlplus.ic, 12.1.0.2.0...

Patching component oracle.rdbms.rsf, 12.1.0.2.0...


Applying sub-patch '24732082' to OH '/oracle/app/oracle/product/12.1.0/dbtest'

Patching component oracle.rdbms.install.plugins, 12.1.0.2.0...

Patching component oracle.rdbms.rsf, 12.1.0.2.0...

Patching component oracle.tfa, 12.1.0.2.0...

Patching component oracle.rdbms.rman, 12.1.0.2.0...

Patching component oracle.rdbms, 12.1.0.2.0...

Patching component oracle.rdbms.dbscripts, 12.1.0.2.0...

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
+ PATH=/bin:/usr/bin:/usr/ccs/bin
+ export PATH
+ lib=/oracle/app/oracle/product/12.1.0/dbtest/sqlplus/lib/libsqlplus.so
+ makefile=/oracle/app/oracle/product/12.1.0/dbtest/sqlplus/lib/ins_sqlplus.mk
+ so_ext=so
+ target=dlopenlib
+ basename /oracle/app/oracle/product/12.1.0/dbtest/sqlplus/lib/libsqlplus.so .so
+ libname=libsqlplus
+ dirname /oracle/app/oracle/product/12.1.0/dbtest/sqlplus/lib/libsqlplus.so
+ sodir=/oracle/app/oracle/product/12.1.0/dbtest/sqlplus/lib
+ ardir=/oracle/app/oracle/product/12.1.0/dbtest/lib/
+ [ var '=' dlopenlib ]
+ suffix=LIBS
+ var=''
+ [ ! -f /oracle/app/oracle/product/12.1.0/dbtest/lib/libsqlplus.a ]
+ [ '' '!=' '' ]
+ make -f /oracle/app/oracle/product/12.1.0/dbtest/sqlplus/lib/ins_sqlplus.mk dlopenlib _FULL_LIBNAME=/oracle/app/oracl
e/product/12.1.0/dbtest/sqlplus/lib/libsqlplus.so _LIBNAME=libsqlplus _LIBDIR=/oracle/app/oracle/product/12.1.0/dbtest/
lib/ _LIBNAME_LIBS='$(libsqlplusLIBS)' _LIBNAME_EXTRALIBS='$(libsqlplusEXTRALIBS)'
ld: warning: symbol '_init' not found, but .init section exists - possible link-edit without using the compiler driver
ld: warning: symbol '_fini' not found, but .fini section exists - possible link-edit without using the compiler driver

Composite patch 24732082 successfully applied.

We have applied the patch successfully.

NOTE:
So before running the opatch apply command directly, it is better to run the below command, to check whether any process using
the oracle binary or not.

[oracle@eaidb3 27072683]$ $ORACLE_HOME/OPatch/opatch prereq CheckActiveFilesAndExecutables -ph ./


Oracle Interim Patch Installer version 12.2.0.1.8
Copyright (c) 2017, Oracle Corporation. All rights reserved.

PREREQ session

Oracle Home : /u01/app/oracle/product/12.1.0.2/dbhome_1


Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/12.1.0.2/dbhome_1/oraInst.loc
OPatch version : 12.2.0.1.8
OUI version : 12.1.0.2.0
Log file location : /u01/app/oracle/product/12.1.0.2/dbhome_1/cfgtoollogs/opatch/opatch2017-11-12_11-58-03AM_1.log

Invoking prereq "checkactivefilesandexecutables"

Prereq "checkActiveFilesAndExecutables" for patch 27072683 failed.

The details are:

Following executables are active :


/u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle

OPatch succeeded.

 OPATCH

 TROUBLESHOOTING

 
 

About Admin
View all posts by Admin →

Related Articles

 LsInventorySession failed: RawInventory gets null OracleHomeInfo

 ORA-01442: column to be modified to NOT NULL is already

 ORA-14024: number of partitions of LOCAL index must equal that of the

 ORA-16855: transport lag has exceeded specified threshold

 ORA-20101: TABLESPACE is not a ASSM (Automatic Segment Space Management) tablespace

 ORA-30034: Undo tablespace cannot be specified as temporary tablespace

 ORA-32771: cannot add file to bigfile tablespace

 ORA-32774: more than one file was specified for bigfile tablespace

4 thoughts on “Prerequisite check “CheckActiveFilesAndExecutables” failed”


Chris
APRIL 12, 2019 AT 1:09 PM
This worked for me. Thanks for the easy solution and sharing of knowledge.

 REPLY

Petra
AUGUST 28, 2019 AT 10:00 AM
Worked after killing the process. Now opatch is working fine.

 REPLY

Arumugaraj
NOVEMBER 20, 2019 AT 11:45 AM
Thanks a lot I have resolved my Opatch issue using the above steps.

 REPLY

tao
NOVEMBER 21, 2019 AT 7:01 AM
I failed to update database with grid patch. Your article gave me a good solution. Thank you very much

 REPLY

Leave a Reply
Your email address will not be published. Required fields are marked *

Name *

Email *

Website

Save my name, email, and website in this browser for the next time I comment.

Post Comment

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

@TwitterDBA https://t.co/iMfhff4h6d Privacy policy


  
Friday Oct 28 - 8:28am
Terms & Conditions
@TwitterDBA https://t.co/xBWFtD3lga
Friday Oct 28 - 8:27am Contact us
About DBACLASS
Follow @supportdbaclass on Twitter About Us
DBACLASS.COM is a knowledgebase for Oracle Database
administrators Write for us

Q&A Forum

You might also like