在打oracle补丁时候有时会报OPatch failed with error code 73错误
这里记录了两种常见的错误
第一种:
[oracle@odd-PROD1 14727310]$ $ORACLE_HOME/OPatch/opatch apply
。。。。。。。。
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2017-02-16_11-03-39AM_1.log
OPatch failed with error code 73
错误原因:没有把数据库实例和监听关闭
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
[oracle@odd-PROD1 ~]$ lsnrctl stop
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 16-FEB-2017 11:05:53
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=odd.oracle.com)(PORT=1521)))
The command completed successfully
再通过下面进程查看下,是否有别的oracle进程在运行
[oracle@odd-PROD2 ~]$ ps -ef|grep oracle
root 9306 9294 0 05:44 pts/2 00:00:00 su - oracle
oracle 9310 9306 0 05:44 pts/2 00:00:00 -bash
root 10123 9925 0 05:59 pts/0 00:00:00 su - oracle
oracle 10124 10123 0 05:59 pts/0 00:00:00 -bash
root 20654 20637 0 10:44 pts/4 00:00:00 su - oracle
oracle 20655 20654 0 10:44 pts/4 00:00:00 -bash
oracle 21851 10124 0 11:08 pts/0 00:00:00 ps -ef
oracle 21852 10124 0 11:08 pts/0 00:00:00 grep oracle
这里并没有,重新执行
[oracle@odd-PROD1 14727310]$ $ORACLE_HOME/OPatch/opatch apply
。。。。。
Verifying the update...
Composite patch 14727310 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2017-02-16_11-08-47AM_1.log
OPatch succeeded.
第二种:
也是一种比较低级的错误
[oracle@odd-PROD1 stage]$ $ORACLE_HOME/OPatch/opatch apply
。。。。。
Following executables are active :
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2017-02-14_16-02-05PM_1.log
OPatch failed with error code 73
原因:没有在补丁目录14727310下进行安装
[oracle@odd-PROD1 stage]$ cd /stage/14727310
[oracle@odd-PROD1 stage]$ $ORACLE_HOME/OPatch/opatch apply
进入补丁目录,再安装即可
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31386161/viewspace-2133636/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/31386161/viewspace-2133636/