1.2.3 给RDBMS DB HOME 打补丁
1.2.3.1 用Oracle给GI打补丁
p class=MsoNormal style='word-break:break-all'>su - oracle
$ /psu/17076717/custom/server/17076717/custom/scripts/prepatch.sh-dbhome $ORACLE_HOME
显示下面的
/psu/17076717/custom/server/17076717/custom/scripts/prepatch.sh completed successfully.
$ cd $ORACLE_HOME/OPatch
$ ./opatch napply -oh $ORACLE_HOME -local /psu/17076717/custom/server/17076717/
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0.3
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0.3/oraInst.loc
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0.3/cfgtoollogs/opatch/opatch2014-04-24_00-33-56AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 17076717
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0.3')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '17076717' to OH '/u01/app/oracle/product/11.2.0.3'
Patching component oracle.rdbms, 11.2.0.3.0...
Verifying the update...
Patch 17076717 successfully applied.
Log file location: /u01/app/oracle/product/11.2.0.3/cfgtoollogs/opatch/opatch2014-04-24_00-33-56AM_1.log
OPatch succeeded.
1.2.3.2 用Oracle给RDBMS打补丁
$ ./opatch napply -oh $ORACLE_HOME -local /psu/16902043/
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0.3
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0.3/oraInst.loc
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0.3/cfgtoollogs/opatch/opatch2014-04-24_00-38-46AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 13343438 13696216 13923374 14275605 14727310 16056266 16619892 16902043
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0.3')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying sub-patch '13343438' to OH '/u01/app/oracle/product/11.2.0.3'
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '13696216' to OH '/u01/app/oracle/product/11.2.0.3'
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Patching component oracle.sysman.oms.core, 10.2.0.4.4...
Verifying the update...
Applying sub-patch '13923374' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.network.listener, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '14275605' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.precomp.lang, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.network.client, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.precomp.common, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.rdbms.util, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '14727310' to OH '/u01/app/oracle/product/11.2.0.3'
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Patching component oracle.sysman.oms.core, 10.2.0.4.4...
Verifying the update...
Applying sub-patch '16056266' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.network.listener, 11.2.0.3.0...
Patching component oracle.network.rsf, 11.2.0.3.0...
Patching component oracle.ovm, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sdo.locator, 11.2.0.3.0...
Patching component oracle.rdbms.deconfig, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '16619892' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.precomp.lang, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.marvel, 11.2.0.3.0...
Patching component oracle.precomp.common, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rman, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sysman.agent, 10.2.0.4.3...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Patching component oracle.sysman.repository.core, 10.2.0.4.4...
Patching component oracle.xdk, 11.2.0.3.0...
Patching component oracle.xdk.parser.Java, 11.2.0.3.0...
Patching component oracle.xdk.rsf, 11.2.0.3.0...
Verifying the update...
Applying sub-patch '16902043' to OH '/u01/app/oracle/product/11.2.0.3'
ApplySession: Optional component(s) [ oracle.idm.oid, 11.2.0.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.ldap.rsf, 11.2.0.3.0...
Patching component oracle.ldap.rsf.ic, 11.2.0.3.0...
Patching component oracle.owb.rsf, 11.2.0.3.0...
Patching component oracle.rdbms, 11.2.0.3.0...
Patching component oracle.rdbms.rsf, 11.2.0.3.0...
Patching component oracle.sysman.console.db, 11.2.0.3.0...
Verifying the update...
OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'
/u01/app/oracle/product/11.2.0.3/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'
/u01/app/oracle/product/11.2.0.3/precomp/lib/ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'
/u01/app/oracle/product/11.2.0.3/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'
OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
ins_emagent.mk:113: warning: overriding commands for target `nmosudo'
ins_emagent.mk:52: warning: ignoring old commands for target `nmosudo'
/u01/app/oracle/product/11.2.0.3/sysman/lib/ins_emagent.mk:113: warning: overriding commands for target `nmosudo'
/u01/app/oracle/product/11.2.0.3/sysman/lib/ins_emagent.mk:52: warning: ignoring old commands for target `nmosudo'
Composite patch 16902043 successfully applied.
OPatch Session completed with warnings.
Log file location: /u01/app/oracle/product/11.2.0.3/cfgtoollogs/opatch/opatch2014-04-24_00-38-46AM_1.log
OPatch completed with warnings.
$ /psu/17076717/custom/server/17076717/custom/scripts/postpatch.sh-dbhome $ORACLE_HOME
Reading /u01/app/oracle/product/11.2.0.3/install/params.ora..
Reading /u01/app/oracle/product/11.2.0.3/install/params.ora..
Parsing file /u01/app/oracle/product/11.2.0.3/bin/racgwrap
Parsing file /u01/app/oracle/product/11.2.0.3/bin/srvctl
Parsing file /u01/app/oracle/product/11.2.0.3/bin/srvconfig
Parsing file /u01/app/oracle/product/11.2.0.3/bin/cluvfy
Verifying file /u01/app/oracle/product/11.2.0.3/bin/racgwrap
Verifying file /u01/app/oracle/product/11.2.0.3/bin/srvctl
Verifying file /u01/app/oracle/product/11.2.0.3/bin/srvconfig
Verifying file /u01/app/oracle/product/11.2.0.3/bin/cluvfy
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/racgwrap
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/srvctl
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/srvconfig
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/cluvfy
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/diskmon.bin
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/lsnodes
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/osdbagrp
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/rawutl
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/srvm/admin/ractrans
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/srvm/admin/getcrshome
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/gnsd
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/bin/crsdiag.pl
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libhasgen11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libclsra11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libdbcfg11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libocr11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libocrb11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libocrutl11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libuini11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/librdjni11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libgns11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libgnsjni11.so
Reapplying file permissions on /u01/app/oracle/product/11.2.0.3/lib/libagfw11.so
