執行opatch apply 報錯 OPatch failed with error code 73


1.執行opatch apply 報錯 OPatch failed with error code 73

[oracle@ora_11g 14275605]$ /opt/oracle/product/db_1/OPatch/opatch apply ./
Oracle Interim Patch Installer version 11.2.0.3.0
Copyright (c) 2012, Oracle Corporation.  All rights reserved.


Oracle Home       : /opt/oracle/product/db_1
Central Inventory : /opt/oraInventory
   from           : /opt/oracle/product/db_1/oraInst.loc
OPatch version    : 11.2.0.3.0
OUI version       : 11.2.0.3.0
Log file location : /opt/oracle/product/db_1/cfgtoollogs/opatch/opatch2012-12-18_21-45-13PM_1.log

Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:


Following executables are active :
/opt/oracle/product/db_1/bin/oracle
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:


Following executables are active :
/opt/oracle/product/db_1/lib/libclntsh.so.11.1
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /opt/oracle/product/db_1/cfgtoollogs/opatch/opatch2012-12-18_21-45-13PM_1.log

OPatch failed with error code 73

仔細查看報錯提示“Check Active Files And Executables”可能是有些執行程序用到了
/opt/oracle/product/db_1/lib/目錄下的庫文件libclntsh.so.11.1

2.使用fuser查看
[oracle@ora_11g oinstall]$ /sbin/fuser   /opt/oracle/product/db_1/lib/libclntsh.so.11.1
/opt/oracle/product/db_1/lib/libclntsh.so.11.1: 12831m

3.查看12831號進程,12831號進程為sqlplus 程序,應該就是sqlplus正在使用libclntsh.so.11.1庫文件
[oracle@ora_11g oinstall]$ ps -ef | grep 12831
oracle   12831  6986  0 21:44 pts/3    00:00:00 sqlplus   as sysdba
oracle   12832 12831  0 21:44 ?        00:00:00 oracletest01 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   12993  9126  0 21:47 pts/1    00:00:00 grep 12831
[oracle@ora_11g oinstall]$ 

4.殺掉12831進程,查看結果
[oracle@ora_11g oinstall]$ kill -9 12831 
[oracle@ora_11g oinstall]$ ps -ef | grep 12831
oracle   13013  9126  0 21:55 pts/1    00:00:00 grep 12831

5.重新執行opatch 順利執行完成
--------------------- 
作者:灰帽DBA 
來源:CSDN 
原文:https://blog.csdn.net/evils798/article/details/8316458 
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM