2840
drwxr-xr-x. 4 oracle oinstall? ? ? 4096 Oct 20? 2014 19852360
drwxrwxr-x. 8 oracle oinstall? ? ? 4096 Mar? 4 18:30 20299013
补丁20299013_112040是一个补丁集合,多个经过验证的安全补丁集合防止,是可以统一进行补丁操作的。
[oracle@XXX-PROD-DB 20299013]$ ls -l
total 88
drwxr-xr-x. 4 oracle oinstall? 4096 Mar? 4 18:30 17478514
drwxr-xr-x. 4 oracle oinstall? 4096 Mar? 4 18:30 18031668
drwxr-xr-x. 4 oracle oinstall? 4096 Mar? 4 18:30 18522509
drwxr-xr-x. 4 oracle oinstall? 4096 Mar? 4 18:30 19121551
drwxrwxr-x. 4 oracle oinstall? 4096 Mar? 4 18:30 19769489
drwxrwxr-x. 4 oracle oinstall? 4096 Mar? 4 18:30 20299013
-rw-r--r--. 1 oracle oinstall? 3068 Mar? 4 18:30 patchmd.xml
-rw-rw-r--. 1 oracle oinstall 54747 Apr 12 10:40 README.html
-rw-r--r--. 1 oracle oinstall? ? 21 Mar? 4 18:30 README.txt
进行先决性检查。
[oracle@XXX-PROD-DB 20299013]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 11.2.0.3.10
Copyright (c) 2015, Oracle Corporation.? All rights reserved.
PREREQ session
Oracle Home? ? ? : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
? from? ? ? ? ? : /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
OPatch version? ? : 11.2.0.3.10
OUI version? ? ? : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2015-08-04_10-28-53AM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
验证通过,说明当前系统安装补丁和将要安装补丁之间没有冲突。但是,执行apply的时候就有问题。
[oracle@XXX-PROD-DB 20299013]$ opatch apply
Oracle Interim Patch Installer version 11.2.0.3.10
Copyright (c) 2015, Oracle Corporation.? All rights reserved.
Oracle Home? ? ? : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
? from? ? ? ? ? : /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
OPatch version? ? : 11.2.0.3.10
OUI version? ? ? : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2015-08-04_10-29-25AM_1.log
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Following executables are active :
/u01/app/oracle/product/11.2.0/dbhome_1/bin/oracle
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2015-08-04_10-29-25AM_1.log
OPatch failed with error code 73
报错信息中包括了日志内容,一旦出现Oracle错误,各种日志是进行诊断的最好方法。
[root@XXX-PROD-DB patch]# cd /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/
[root@XXX-PROD-DB opatch]# ls -l?
total 36
drwxr-xr-x. 2 oracle oinstall? 4096 Aug? 4 10:21 19852360_Aug_04_2015_10_21_09
drwxr-xr-x. 2 oracle oinstall? 4096 Aug? 4 10:06 lsinv
-rw-r--r--. 1 oracle oinstall? 2050 Aug? 4 10:06 opatch2015-08-04_10-06-22AM_1.log
-rw-r--r--. 1 oracle oinstall? 1665 Aug? 4 10:22 opatch2015-08-04_10-22-39AM_1.log
-rw-r--r--. 1 oracle oinstall? 2021 Aug? 4 10:28 opatch2015-08-04_10-28-53AM_1.log
-rw-r--r--. 1 oracle oinstall 10540 Aug? 4 10:29 opatch2015-08-04_10-29-25AM_1.log
-rw-r--r--. 1 oracle oinstall? 1872 Aug? 4 10:29 opatch_history.txt
[root@INTCTL-PROD-DB opatch]# ls -l | grep 2015-08-04_10-29-25
-rw-r--r--. 1 oracle oinstall 10540 Aug? 4 10:29 opatch2015-08-04_10-29-25AM_