问题解决过程:
1、查看OPatch所在路径:
ebdbpro:/soft> env | grep ORA
ORA_CRS_HOME=/eb_db/Oracle/product/10.2/crs
ORA_ASM_HOME=/eb_db/oracle/product/10.2/asm
ORA_NLS10=/eb_db/oracle/product/10.2/db/nls/data
ORACLE_SID=ebai
ORACLE_BASE=/opt/oracle
ORACLE_HOME=/eb_db/oracle/product/10.2/db
ebdbpro:/soft> cd $ORACLE_HOME/OPatch
ebdbpro:/eb_db/oracle/product/10.2/db/OPatch> ls
crs docs emdpatch.pl jlib ocm opatchopatch.iniopatch.plopatchprereqs
ebdbpro:/eb_db/oracle/product/10.2/db/OPatch> pwd
/eb_db/oracle/product/10.2/db/OPatch
ebdbpro:/eb_db/oracle/product/10.2/db/OPatch>
可执行文件opatch就再这个目录下面。
2、上传文件并进行解压:
ebdbpro:/soft> ls
10201_database_linux_x86_64.cpioDisk1README.htm
8350262 orarun-1.9-172.20.21.54.x86_64.rpm SUSE11_HA_64
8350262.bakp8202632_10205_Linux-x86-64.zip
database p8350262_10205_Generic.zip
ebdbpro:/soft>unzip p8350262_10205_Generic.zip
3、切换用户进行操作。opatch只允许oracle用户来进行操作。
ebdbpro:/soft/8350262 # su - oracle
ebdbpro:~> cd /soft
ebdbpro:/soft> ls
10201_database_linux_x86_64.cpio
8350262
8350262.bak
database
Disk1
orarun-1.9-172.20.21.54.x86_64.rpm
p8202632_10205_Linux-x86-64.zip
p8350262_10205_Generic.zip
README.htm
suse11_HA_64
ebdbpro:/soft> cd 8350262
ebdbpro:/soft/8350262> ls
etc files killDBConsole killDBConsole.pl README.txt
4、执行opatch小补丁安装操作:
ebdbpro:/soft/8350262> /eb_db/oracle/product/10.2/db/OPatch/opatch apply
Invoking OPatch 10.2.0.4.9
Oracle Interim Patch Installer version 10.2.0.4.9
Copyright (c) 2009, Oracle Corporation.All rights reserved.
Oracle Home: /eb_db/oracle/product/10.2/db
Central Inventory : /eb_db/oracle/oraInventory
from: /etc/oraInst.loc
OPatch version: 10.2.0.4.9
OUI version: 10.2.0.5.0
OUI location: /eb_db/oracle/product/10.2/db/oui
Log file location : /eb_db/oracle/product/10.2/db/cfgtoollogs/opatch/opatch2012-05-20_17-14-44PM.log
Patch history file: /eb_db/oracle/product/10.2/db/cfgtoollogs/opatch/opatch_history.txt
ApplySession applying interim patch '8350262' to OH '/eb_db/oracle/product/10.2/db'
Running prerequisite checks...
OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '8350262' for restore. This might take a while...
Backing up files affected by the patch '8350262' for rollback. This might take a while...
Patching component oracle.sysman.agent.core, 10.2.0.5.0a...
Updating jar file "/eb_db/oracle/product/10.2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"
Updating jar file "/eb_db/oracle/product/10.2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"
Updating jar file "/eb_db/oracle/product/10.2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/RootCert.class"
Updating jar file "/eb_db/oracle/product/10.2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/SecConstants.class"
Updating jar file "/eb_db/oracle/product/10.2/db/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"
Updating jar file "/eb_db/oracle/product/10.2/db/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"
Updating jar file "/eb_db/oracle/product/10.2/db/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/RootCert.class"
Updating jar file "/eb_db/oracle/product/10.2/db/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/SecConstants.class"
ApplySession adding interim patch '8350262' to inventory
Verifying the update...
Inventory check OK: Patch ID 8350262 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 8350262 are present in Oracle Home.
OPatch succeeded.
ebdbpro:/soft/8350262>
成功结束!
:) :) :)
