1、执行#./opatch auto /u01/soft/p16083653_112030_Linux-x86-64-11020306-gi -oh /u01/app/oracle/product/11.2.0/db -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/ocm.rsp
2、查看日志发现
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Following executables are active :
/u01/app/oracle/product/11.2.0/db/lib/libclntsh.so.11.1
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2013-07-18_13-36-14PM_1.log
OPatch failed with error code 73
3、使用fuser查看
[17:32:22 root@david_dgp OPatch]# fuser /u01/app/oracle/product/11.2.0/db/lib/libclntsh.so.11.1
/u01/app/oracle/product/11.2.0/db/lib/libclntsh.so.11.1: 17979m
4、[17:35:49 root@david_dgp OPatch]# ps -ef|grep 17979
oracle 17979 17933 0 17:30 pts/1 00:00:00 sqlplus as sysdba
root 22313 4828 0 17:37 pts/0 00:00:00 grep 17979
5、杀掉改进程
6、继续opatch ,成功
# ./opatch auto /u01/soft/p16083653_112030_Linux-x86-64-11020306-gi -oh /u01/app/oracle/product/11.2.0/db -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/ocm.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl ./crs/patch11203.pl -patchdir /u01/soft -patchn p16083653_112030_Linux-x86-64-11020306-gi -oh /u01/app/oracle/product/11.2.0/db -ocmrf /u01/app/11.2.0/grid/OPatch/ocm/bin/ocm.rsp -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
/u01/app/11.2.0/grid/crs/install/crsconfig_params
/u01/app/11.2.0/grid/crs/install/s_crsconfig_defs
This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2013-07-18_17-17-30.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2013-07-18_17-17-30.report.log
2013-07-18 17:17:30: Starting Oracle Restart Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
patch /u01/soft/p16083653_112030_Linux-x86-64-11020306-gi/16315641/custom/server/16315641 apply successful for home /u01/app/oracle/product/11.2.0/db
patch /u01/soft/p16083653_112030_Linux-x86-64-11020306-gi/16056266 apply successful for home /u01/app/oracle/product/11.2.0/db