{"id":285,"date":"2013-01-12T16:13:33","date_gmt":"2013-01-12T08:13:33","guid":{"rendered":"http:\/\/www.yallonking.com\/?p=285"},"modified":"2013-01-23T00:04:01","modified_gmt":"2013-01-22T16:04:01","slug":"oracle-10grac%e5%8d%87%e7%ba%a7%e5%b9%b6%e6%89%93%e8%a1%a5%e4%b8%81%e4%b8%80%e4%be%8b","status":"publish","type":"post","link":"http:\/\/www.yallonking.com\/?p=285","title":{"rendered":"ORACLE 10gRAC\u5347\u7ea7\u5e76\u6253\u8865\u4e01\u4e00\u4f8b"},"content":{"rendered":"<p>\uff08\u96f6\uff09 RAC\u6570\u636e\u5e93\u5347\u7ea7\uff0810.2.0.1.0-&gt;10.2.0.5.0\uff09\u5e76\u6253\u8865\u4e01\uff08P12880299\uff09<\/p>\n<p>--\u539f\u59cb\u5e93\u4fe1\u606f<br \/>\nSQL&gt; select * from v$version where rownum&lt;5;<\/p>\n<p>BANNER<br \/>\n----------------------------------------------------------------<br \/>\nOracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod<br \/>\nPL\/SQL Release 10.2.0.1.0 - Production<br \/>\nCORE 10.2.0.1.0 Production<br \/>\nTNS for Linux: Version 10.2.0.1.0 - Production<\/p>\n<p>[oracle@rac1 ~]$ crs_stat -t<br \/>\nName Type Target State Host<br \/>\n------------------------------------------------------------<br \/>\nora....SM1.asm application ONLINE ONLINE rac1<br \/>\nora....C1.lsnr application ONLINE ONLINE rac1<br \/>\nora.rac1.gsd application ONLINE ONLINE rac1<br \/>\nora.rac1.ons application ONLINE ONLINE rac1<br \/>\nora.rac1.vip application ONLINE ONLINE rac1<br \/>\nora....SM2.asm application ONLINE ONLINE rac2<br \/>\nora....C2.lsnr application ONLINE ONLINE rac2<br \/>\nora.rac2.gsd application ONLINE ONLINE rac2<br \/>\nora.rac2.ons application ONLINE ONLINE rac2<br \/>\nora.rac2.vip application ONLINE ONLINE rac2<br \/>\nora.racdb.db application ONLINE ONLINE rac1<br \/>\nora....b1.inst application ONLINE ONLINE rac1<br \/>\nora....b2.inst application ONLINE ONLINE rac2<\/p>\n<p>\/*\uff08\u4e00\uff09\u5347\u7ea7 CRS*\/<br \/>\n--\u505c\u6b62\u6240\u6709\u8d44\u6e90<br \/>\n[oracle@rac1 ~]$ crs_stop -all<br \/>\nAttempting to stop `ora.rac1.gsd` on member `rac1`<br \/>\nAttempting to stop `ora.rac1.ons` on member `rac1`<br \/>\nAttempting to stop `ora.racdb.db` on member `rac1`<br \/>\nAttempting to stop `ora.rac2.ons` on member `rac2`<br \/>\nAttempting to stop `ora.rac2.gsd` on member `rac2`<br \/>\nStop of `ora.rac2.ons` on member `rac2` succeeded.<br \/>\nStop of `ora.rac2.gsd` on member `rac2` succeeded.<br \/>\nStop of `ora.rac1.gsd` on member `rac1` succeeded.<br \/>\nStop of `ora.rac1.ons` on member `rac1` succeeded.<br \/>\nStop of `ora.racdb.db` on member `rac1` succeeded.<br \/>\n`ora.racdb.racdb1.inst` is already OFFLINE.<br \/>\n`ora.racdb.racdb2.inst` is already OFFLINE.<br \/>\nAttempting to stop `ora.rac1.ASM1.asm` on member `rac1`<br \/>\nAttempting to stop `ora.rac2.ASM2.asm` on member `rac2`<br \/>\nStop of `ora.rac1.ASM1.asm` on member `rac1` succeeded.<br \/>\nStop of `ora.rac2.ASM2.asm` on member `rac2` succeeded.<br \/>\nAttempting to stop `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1`<br \/>\nAttempting to stop `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2`<br \/>\nStop of `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` succeeded.<br \/>\nAttempting to stop `ora.rac2.vip` on member `rac2`<br \/>\nStop of `ora.rac2.vip` on member `rac2` succeeded.<br \/>\nStop of `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` succeeded.<br \/>\nAttempting to stop `ora.rac1.vip` on member `rac1`<br \/>\nStop of `ora.rac1.vip` on member `rac1` succeeded.<br \/>\nCRS-0216: Could not stop resource 'ora.racdb.racdb1.inst'.<\/p>\n<p>CRS-0216: Could not stop resource 'ora.racdb.racdb2.inst'.<\/p>\n<p>[oracle@rac1 ~]$ crs_stat -t<br \/>\nName Type Target State Host<br \/>\n------------------------------------------------------------<br \/>\nora....SM1.asm application OFFLINE OFFLINE<br \/>\nora....C1.lsnr application OFFLINE OFFLINE<br \/>\nora.rac1.gsd application OFFLINE OFFLINE<br \/>\nora.rac1.ons application OFFLINE OFFLINE<br \/>\nora.rac1.vip application OFFLINE OFFLINE<br \/>\nora....SM2.asm application OFFLINE OFFLINE<br \/>\nora....C2.lsnr application OFFLINE OFFLINE<br \/>\nora.rac2.gsd application OFFLINE OFFLINE<br \/>\nora.rac2.ons application OFFLINE OFFLINE<br \/>\nora.rac2.vip application OFFLINE OFFLINE<br \/>\nora.racdb.db application OFFLINE OFFLINE<br \/>\nora....b1.inst application OFFLINE OFFLINE<br \/>\nora....b2.inst application OFFLINE OFFLINE<\/p>\n<p>--\u505c\u6b62\u6240\u6709\u8282\u70b9\u7684CRS<br \/>\n[oracle@rac1 ~]$ su -<br \/>\nPassword:<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl stop crs<br \/>\nStopping resources.<br \/>\nSuccessfully stopped CRS resources<br \/>\nStopping CSSD.<br \/>\nShutting down CSS daemon.<br \/>\nShutdown request successfully issued.<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl check crs<br \/>\nFailure 1 contacting CSS daemon<br \/>\nCannot communicate with CRS<br \/>\nCannot communicate with EVM<\/p>\n<p>[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl stop crs<br \/>\nStopping resources.<br \/>\nSuccessfully stopped CRS resources<br \/>\nStopping CSSD.<br \/>\nShutting down CSS daemon.<br \/>\nShutdown request successfully issued.<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl check crs<br \/>\nFailure 1 contacting CSS daemon<br \/>\nCannot communicate with CRS<br \/>\nCannot communicate with EVM<\/p>\n<p>--\u786e\u8ba4\u53c2\u6570\uff082\u4e2a\u8282\u70b9\u9700\u8981\u4fee\u6539\u90e8\u5206\u53c2\u6570\uff09<br \/>\n[root@rac2 ~]# vi \/etc\/sysctl.conf<br \/>\n#oracle set<br \/>\nkernel.shmall = 2097152<br \/>\n#kernel.shmmax = 536870912<br \/>\nkernel.shmmax = 1073741824<br \/>\nkernel.shmmni = 4096<br \/>\nkernel.sem = 250 32000 100 128<br \/>\n#fs.file-max = 65536<br \/>\nfs.file-max = 101365<br \/>\n#net.ipv4.ip_local_port_range = 1024 65000<br \/>\nnet.ipv4.ip_local_port_range = 9000 65500<br \/>\nnet.core.rmem_default = 1048576<br \/>\nnet.core.rmem_max = 1048576<br \/>\nnet.core.wmem_default = 262144<br \/>\nnet.core.wmem_max = 262144<\/p>\n<p>--\u6267\u884crunInstaller\u5347\u7ea7CRS<br \/>\n[oracle@rac1 ~]$ cd \/tmp\/p8202632_10205_LINUX\/Disk1\/<br \/>\n[oracle@rac1 Disk1]$ pwd<br \/>\n\/tmp\/p8202632_10205_LINUX\/Disk1<br \/>\n[oracle@rac1 Disk1]$ export DISPLAY=192.168.137.1:0.0<br \/>\n[oracle@rac1 Disk1]$ .\/runInstaller<\/p>\n<p>Starting Oracle Universal Installer...<\/p>\n<p>Checking installer requirements...<\/p>\n<p>Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, redhat-6, UnitedLinux-1.0, asianux-1, asianux-2, asianux-3, enterprise-4, enterprise-5 or SuSE-11<br \/>\nPassed<\/p>\n<p>All installer requirements met.<\/p>\n<p>Preparing to launch Oracle Universal Installer from \/tmp\/OraInstall2012-09-11_04-47-48PM. Please wait ...<\/p>\n<p>--\u6309\u63d0\u793a\u6267\u884c\u811a\u672c<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl stop crs<br \/>\nStopping resources.<br \/>\nError while stopping resources. Possible cause: CRSD is down.<br \/>\nStopping CSSD.<br \/>\nUnable to communicate with the CSS daemon.<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/install\/root102.sh<br \/>\nCreating pre-patch directory for saving pre-patch clusterware files<br \/>\nCompleted patching clusterware files to \/opt\/ora10g\/product\/crs<br \/>\nRelinking some shared libraries.<br \/>\nRelinking of patched files is complete.<br \/>\nWARNING: directory '\/opt\/ora10g\/product' is not owned by root<br \/>\nWARNING: directory '\/opt\/ora10g' is not owned by root<br \/>\nPreparing to recopy patched init and RC scripts.<br \/>\nRecopying init and RC scripts.<br \/>\nStartup will be queued to init within 30 seconds.<br \/>\nStarting up the CRS daemons.<br \/>\nWaiting for the patched CRS daemons to start.<br \/>\nThis may take a while on some systems.<br \/>\n.<br \/>\n.<br \/>\n10205 patch successfully applied.<br \/>\nclscfg: EXISTING configuration version 3 detected.<br \/>\nclscfg: version 3 is 10G Release 2.<br \/>\nSuccessfully deleted 1 values from OCR.<br \/>\nSuccessfully deleted 1 keys from OCR.<br \/>\nSuccessfully accumulated necessary OCR keys.<br \/>\nUsing ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.<br \/>\nnode :<br \/>\nnode 1: rac1 rac1-priv rac1<br \/>\nCreating OCR keys for user 'root', privgrp 'root'..<br \/>\nOperation successful.<br \/>\nclscfg -upgrade completed successfully<br \/>\nCreating '\/opt\/ora10g\/product\/crs\/install\/paramfile.crs' with data used for CRS configuration<br \/>\nSetting CRS configuration values in \/opt\/ora10g\/product\/crs\/install\/paramfile.crs<\/p>\n<p>[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl stop crs<br \/>\nStopping resources.<br \/>\nError while stopping resources. Possible cause: CRSD is down.<br \/>\nStopping CSSD.<br \/>\nUnable to communicate with the CSS daemon.<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/install\/root102.sh<br \/>\nCreating pre-patch directory for saving pre-patch clusterware files<br \/>\nCompleted patching clusterware files to \/opt\/ora10g\/product\/crs<br \/>\nRelinking some shared libraries.<br \/>\nRelinking of patched files is complete.<br \/>\nWARNING: directory '\/opt\/ora10g\/product' is not owned by root<br \/>\nWARNING: directory '\/opt\/ora10g' is not owned by root<br \/>\nPreparing to recopy patched init and RC scripts.<br \/>\nRecopying init and RC scripts.<br \/>\nStartup will be queued to init within 30 seconds.<br \/>\nStarting up the CRS daemons.<br \/>\nWaiting for the patched CRS daemons to start.<br \/>\nThis may take a while on some systems.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n10205 patch successfully applied.<br \/>\nclscfg: EXISTING configuration version 3 detected.<br \/>\nclscfg: version 3 is 10G Release 2.<br \/>\nSuccessfully deleted 1 values from OCR.<br \/>\nSuccessfully deleted 1 keys from OCR.<br \/>\nSuccessfully accumulated necessary OCR keys.<br \/>\nUsing ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.<br \/>\nnode :<br \/>\nnode 2: rac2 rac2-priv rac2<br \/>\nCreating OCR keys for user 'root', privgrp 'root'..<br \/>\nOperation successful.<br \/>\nclscfg -upgrade completed successfully<br \/>\nCreating '\/opt\/ora10g\/product\/crs\/install\/paramfile.crs' with data used for CRS configuration<br \/>\nSetting CRS configuration values in \/opt\/ora10g\/product\/crs\/install\/paramfile.crs<\/p>\n<p>--CRS\u5347\u7ea7\u5b8c\u6bd5\uff0c\u67e5\u770bCRS\u5f53\u524d\u7248\u672c<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl query crs softwareversion<br \/>\nCRS software version on node [rac2] is [10.2.0.5.0]<\/p>\n<p>\/*\uff08\u4e8c\uff09\u5347\u7ea7DB software*\/<br \/>\n--\u9700\u8981\u5173\u95ed\u76f8\u5173\u8fdb\u7a0b\uff08\u5982\u4e0b\u6240\u793a\uff09<br \/>\n--\u6ce8\uff1a\u9700\u8981\u5173\u95ed\u6240\u6709\u8282\u70b9\u7684\u8d44\u6e90\u548cCRS\uff0c\u5e76\u4e14\u8981\u4fdd\u8bc1\u6570\u636e\u5e93\u6240\u6709\u8282\u70b9\u7528\u6237\u7b49\u6548\u548c\u65f6\u95f4\u540c\u6b65<br \/>\n[root@rac1 ~]# ps -ef | grep sqlplus<br \/>\noracle 12149 7832 0 18:45 pts\/0 00:00:00 rlwrap sqlplus \/nolog<br \/>\noracle 12152 12149 0 18:45 pts\/2 00:00:00 sqlplus<br \/>\nroot 14731 7723 0 18:51 pts\/1 00:00:00 grep sqlplus<br \/>\n[root@rac1 ~]# kill -9 12149 12152<\/p>\n<p>--\u6267\u884crunInstaller\u5347\u7ea7DB software<br \/>\n[oracle@rac1 ~]$ crs_stat -t<br \/>\nName Type Target State Host<br \/>\n------------------------------------------------------------<br \/>\nora....SM1.asm application OFFLINE OFFLINE<br \/>\nora....C1.lsnr application OFFLINE OFFLINE<br \/>\nora.rac1.gsd application OFFLINE OFFLINE<br \/>\nora.rac1.ons application OFFLINE OFFLINE<br \/>\nora.rac1.vip application OFFLINE OFFLINE<br \/>\nora....SM2.asm application OFFLINE OFFLINE<br \/>\nora....C2.lsnr application OFFLINE OFFLINE<br \/>\nora.rac2.gsd application OFFLINE OFFLINE<br \/>\nora.rac2.ons application OFFLINE OFFLINE<br \/>\nora.rac2.vip application OFFLINE OFFLINE<br \/>\nora.racdb.db application OFFLINE OFFLINE<br \/>\nora....b1.inst application OFFLINE OFFLINE<br \/>\nora....b2.inst application OFFLINE OFFLINE<\/p>\n<p>[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl stop crs<br \/>\nStopping resources. This could take several minutes.<br \/>\nSuccessfully stopped CRS resources.<br \/>\nStopping CSSD.<br \/>\nShutting down CSS daemon.<br \/>\nShutdown request successfully issued.<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl stop crs<br \/>\nStopping resources. This could take several minutes.<br \/>\nSuccessfully stopped CRS resources.<br \/>\nStopping CSSD.<br \/>\nShutting down CSS daemon.<br \/>\nShutdown request successfully issued.<\/p>\n<p>[oracle@rac1 ~]$ cd \/tmp\/p8202632_10205_LINUX\/Disk1\/<br \/>\n[oracle@rac1 Disk1]$ pwd<br \/>\n\/tmp\/p8202632_10205_LINUX\/Disk1<br \/>\n[oracle@rac1 Disk1]$ export DISPLAY=192.168.137.1:0.0<br \/>\n[oracle@rac1 Disk1]$ .\/runInstaller<\/p>\n<p>Starting Oracle Universal Installer...<\/p>\n<p>Checking installer requirements...<\/p>\n<p>Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, redhat-6, UnitedLinux-1.0, asianux-1, asianux-2, asianux-3, enterprise-4, enterprise-5 or SuSE-11<br \/>\nPassed<\/p>\n<p>All installer requirements met.<\/p>\n<p>Preparing to launch Oracle Universal Installer from \/tmp\/OraInstall2012-09-11_06-49-28PM. Please wait ...[oracle@rac1 Disk1]$ Oracle Universal Installer, Version 10.2.0.5.0 Production<br \/>\nCopyright (C) 1999, 2010, Oracle. All rights reserved.<\/p>\n<p>--\u5728\u5404\u8282\u70b9\u6267\u884c\u6307\u5b9a\u811a\u672c<br \/>\n\u6ce8\uff1a\u5728\u5404\u4e2a\u8282\u70b9\u6267\u884c\u5b8c\u811a\u672c\u540e\uff0c\u9700\u8981\u6267\u884c\u6570\u636e\u5e93\u6570\u636e\u5b57\u5178\u548c\u76f8\u5173\u5305\u7684\u5347\u7ea7\u811a\u672c\uff0c\u6b64\u5904\u5fd8\u8bb0\u6309\u7167readme\u4e2d\u7684\u63d0\u793a\u8fdb\u884c2\u4e2asql\u811a\u672c\u7684\u6267\u884c\uff0c\u5bfc\u81f4\u540e\u8fb9\u6570\u636e\u5e93\u6b63\u5e38startup\u65f6\u7684\u62a5\u9519\u3002\u5177\u4f53\u89e3\u51b3\u53ca\u5904\u7406\u8fc7\u7a0b\u89c1\u540e\u8fb9\u3002\uff08\u4e5f\u662f\u540e\u8865\u811a\u672c\u7684\u6267\u884c\uff09<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/database\/root.sh<br \/>\nRunning Oracle 10g root.sh script...<\/p>\n<p>The following environment variables are set as:<br \/>\nORACLE_OWNER= oracle<br \/>\nORACLE_HOME= \/opt\/ora10g\/product\/database<\/p>\n<p>Enter the full pathname of the local bin directory: [\/usr\/local\/bin]:<br \/>\nThe file \"dbhome\" already exists in \/usr\/local\/bin. Overwrite it? (y\/n)<br \/>\n[n]: y<br \/>\nCopying dbhome to \/usr\/local\/bin ...<br \/>\nThe file \"oraenv\" already exists in \/usr\/local\/bin. Overwrite it? (y\/n)<br \/>\n[n]: y<br \/>\nCopying oraenv to \/usr\/local\/bin ...<br \/>\nThe file \"coraenv\" already exists in \/usr\/local\/bin. Overwrite it? (y\/n)<br \/>\n[n]: y<br \/>\nCopying coraenv to \/usr\/local\/bin ...<\/p>\n<p>Entries will be added to the \/etc\/oratab file as needed by<br \/>\nDatabase Configuration Assistant when a database is created<br \/>\nFinished running generic part of root.sh script.<br \/>\nNow product-specific root actions will be performed.<\/p>\n<p>[root@rac2 ~]# \/opt\/ora10g\/product\/database\/root.sh<br \/>\nRunning Oracle 10g root.sh script...<\/p>\n<p>The following environment variables are set as:<br \/>\nORACLE_OWNER= oracle<br \/>\nORACLE_HOME= \/opt\/ora10g\/product\/database<\/p>\n<p>Enter the full pathname of the local bin directory: [\/usr\/local\/bin]:<br \/>\nThe file \"dbhome\" already exists in \/usr\/local\/bin. Overwrite it? (y\/n)<br \/>\n[n]: y<br \/>\nCopying dbhome to \/usr\/local\/bin ...<br \/>\nThe file \"oraenv\" already exists in \/usr\/local\/bin. Overwrite it? (y\/n)<br \/>\n[n]: y<br \/>\nCopying oraenv to \/usr\/local\/bin ...<br \/>\nThe file \"coraenv\" already exists in \/usr\/local\/bin. Overwrite it? (y\/n)<br \/>\n[n]: y<br \/>\nCopying coraenv to \/usr\/local\/bin ...<\/p>\n<p>Entries will be added to the \/etc\/oratab file as needed by<br \/>\nDatabase Configuration Assistant when a database is created<br \/>\nFinished running generic part of root.sh script.<br \/>\nNow product-specific root actions will be performed.<\/p>\n<p>\/*\uff08\u4e09\uff09\u5b89\u88c5\u8865\u4e01p12880299_10205_LINUX.zip*\/<br \/>\n--\u67e5\u770b\u5f53\u524d\u8865\u4e01\u60c5\u51b5<br \/>\n[oracle@rac1 OPatch]$ .\/opatch lsinventory<br \/>\nInvoking OPatch 10.2.0.4.9<\/p>\n<p>Oracle Interim Patch Installer version 10.2.0.4.9<br \/>\nCopyright (c) 2009, Oracle Corporation. All rights reserved.<\/p>\n<p>Oracle Home : \/opt\/ora10g\/product\/database<br \/>\nCentral Inventory : \/opt\/ora10g\/oraInventory<br \/>\nfrom : \/etc\/oraInst.loc<br \/>\nOPatch version : 10.2.0.4.9<br \/>\nOUI version : 10.2.0.5.0<br \/>\nOUI location : \/opt\/ora10g\/product\/database\/oui<br \/>\nLog file location : \/opt\/ora10g\/product\/database\/cfgtoollogs\/opatch\/opatch2012-09-12_01-12-58AM.log<\/p>\n<p>Patch history file: \/opt\/ora10g\/product\/database\/cfgtoollogs\/opatch\/opatch_history.txt<\/p>\n<p>Lsinventory Output file location : \/opt\/ora10g\/product\/database\/cfgtoollogs\/opatch\/lsinv\/lsinventory2012-09-12_01-12-58AM.txt<\/p>\n<p>--------------------------------------------------------------------------------<br \/>\nInstalled Top-level Products (2):<\/p>\n<p>Oracle Database 10g 10.2.0.1.0<br \/>\nOracle Database 10g Release 2 Patch Set 4 10.2.0.5.0a<br \/>\nThere are 2 products installed in this Oracle Home.<\/p>\n<p>There are no Interim patches installed in this Oracle Home.<\/p>\n<p>Rac system comprising of multiple nodes<br \/>\nLocal node = rac1<br \/>\nRemote node = rac2<\/p>\n<p>--------------------------------------------------------------------------------<\/p>\n<p>OPatch succeeded.<\/p>\n<p>--\u5b89\u88c5\u8865\u4e01<br \/>\n[oracle@rac1 12880299]$ pwd<br \/>\n\/tmp\/12880299<br \/>\n[oracle@rac1 12880299]$ \/opt\/ora10g\/product\/database\/OPatch\/opatch apply<br \/>\nInvoking OPatch 10.2.0.4.9<\/p>\n<p>Oracle Interim Patch Installer version 10.2.0.4.9<br \/>\nCopyright (c) 2009, Oracle Corporation. All rights reserved.<\/p>\n<p>Oracle Home : \/opt\/ora10g\/product\/database<br \/>\nCentral Inventory : \/opt\/ora10g\/oraInventory<br \/>\nfrom : \/etc\/oraInst.loc<br \/>\nOPatch version : 10.2.0.4.9<br \/>\nOUI version : 10.2.0.5.0<br \/>\nOUI location : \/opt\/ora10g\/product\/database\/oui<br \/>\nLog file location : \/opt\/ora10g\/product\/database\/cfgtoollogs\/opatch\/opatch2012-09-12_01-15-11AM.log<\/p>\n<p>Patch history file: \/opt\/ora10g\/product\/database\/cfgtoollogs\/opatch\/opatch_history.txt<\/p>\n<p>ApplySession applying interim patch '12880299' to OH '\/opt\/ora10g\/product\/database'<\/p>\n<p>Running prerequisite checks...<\/p>\n<p>OPatch detected the node list and the local node from the inventory. OPatch will patch the local system then propagate the patch to the remote nodes.<\/p>\n<p>Backing up files and inventory (not for auto-rollback) for the Oracle Home<br \/>\nBacking up files affected by the patch '12880299' for restore. This might take a while...<br \/>\nBacking up files affected by the patch '12880299' for rollback. This might take a while...<\/p>\n<p>Patching component oracle.network.listener, 10.2.0.5.0...<\/p>\n<p>Patching component oracle.network.rsf, 10.2.0.5.0...<br \/>\nUpdating archive file \"\/opt\/ora10g\/product\/database\/network\/lib\/libnlsnr10.a\" with \"network\/lib\/libnlsnr10.a\/nsglsn.o\"<br \/>\nRunning make for target itnslsnr<br \/>\nRunning make for target tnslsnr<br \/>\nRunning make for target client_sharedlib<br \/>\nApplySession adding interim patch '12880299' to inventory<\/p>\n<p>Verifying the update...<br \/>\nInventory check OK: Patch ID 12880299 is registered in Oracle Home inventory with proper meta-data.<br \/>\nFiles check OK: Files from Patch ID 12880299 are present in Oracle Home.<\/p>\n<p>Patching in rolling mode.<\/p>\n<p>Updating nodes 'rac2'<br \/>\nApply-related files are:<br \/>\nFP = \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/copy_files.txt\"<br \/>\nDP = \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/copy_dirs.txt\"<br \/>\nMP = \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/make_cmds.txt\"<br \/>\nRC = \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/remote_cmds.txt\"<\/p>\n<p>Instantiating the file \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/copy_files.txt.instantiated\" by replacing $ORACLE_HOME in \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/copy_files.txt\" with actual path.<br \/>\nPropagating files to remote nodes...<br \/>\nInstantiating the file \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/copy_dirs.txt.instantiated\" by replacing $ORACLE_HOME in \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/copy_dirs.txt\" with actual path.<br \/>\nPropagating directories to remote nodes...<br \/>\nInstantiating the file \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/make_cmds.txt.instantiated\" by replacing $ORACLE_HOME in \"\/opt\/ora10g\/product\/database\/.patch_storage\/12880299_May_3_2012_20_16_10\/rac\/make_cmds.txt\" with actual path.<br \/>\nRunning command on remote node 'rac2':<br \/>\ncd \/opt\/ora10g\/product\/database\/network\/lib; \/usr\/bin\/make -f ins_net_server.mk itnslsnr ORACLE_HOME=\/opt\/ora10g\/product\/database || echo REMOTE_MAKE_FAILED::&gt;&amp;2<\/p>\n<p>Running command on remote node 'rac2':<br \/>\ncd \/opt\/ora10g\/product\/database\/network\/lib; \/usr\/bin\/make -f ins_net_server.mk tnslsnr ORACLE_HOME=\/opt\/ora10g\/product\/database || echo REMOTE_MAKE_FAILED::&gt;&amp;2<\/p>\n<p>Running command on remote node 'rac2':<br \/>\ncd \/opt\/ora10g\/product\/database\/network\/lib; \/usr\/bin\/make -f ins_net_client.mk client_sharedlib ORACLE_HOME=\/opt\/ora10g\/product\/database || echo REMOTE_MAKE_FAILED::&gt;&amp;2<\/p>\n<p>There were relinks on remote nodes. Remember to check the binary size and timestamp on the nodes 'rac2' .<br \/>\nThe following make commands were invoked on remote nodes:<br \/>\n'cd \/opt\/ora10g\/product\/database\/network\/lib; \/usr\/bin\/make -f ins_net_server.mk itnslsnr ORACLE_HOME=\/opt\/ora10g\/product\/database<br \/>\ncd \/opt\/ora10g\/product\/database\/network\/lib; \/usr\/bin\/make -f ins_net_server.mk tnslsnr ORACLE_HOME=\/opt\/ora10g\/product\/database<br \/>\ncd \/opt\/ora10g\/product\/database\/network\/lib; \/usr\/bin\/make -f ins_net_client.mk client_sharedlib ORACLE_HOME=\/opt\/ora10g\/product\/database<br \/>\n'<\/p>\n<p>OPatch succeeded.<\/p>\n<p>--\u67e5\u770b\u5b89\u88c5\u540e\u8865\u4e01\u60c5\u51b5<br \/>\n[oracle@rac1 12880299]$ \/opt\/ora10g\/product\/database\/OPatch\/opatch lsinventory<br \/>\nInvoking OPatch 10.2.0.4.9<\/p>\n<p>Oracle Interim Patch Installer version 10.2.0.4.9<br \/>\nCopyright (c) 2009, Oracle Corporation. All rights reserved.<\/p>\n<p>Oracle Home : \/opt\/ora10g\/product\/database<br \/>\nCentral Inventory : \/opt\/ora10g\/oraInventory<br \/>\nfrom : \/etc\/oraInst.loc<br \/>\nOPatch version : 10.2.0.4.9<br \/>\nOUI version : 10.2.0.5.0<br \/>\nOUI location : \/opt\/ora10g\/product\/database\/oui<br \/>\nLog file location : \/opt\/ora10g\/product\/database\/cfgtoollogs\/opatch\/opatch2012-09-12_01-16-58AM.log<\/p>\n<p>Patch history file: \/opt\/ora10g\/product\/database\/cfgtoollogs\/opatch\/opatch_history.txt<\/p>\n<p>Lsinventory Output file location : \/opt\/ora10g\/product\/database\/cfgtoollogs\/opatch\/lsinv\/lsinventory2012-09-12_01-16-58AM.txt<\/p>\n<p>--------------------------------------------------------------------------------<br \/>\nInstalled Top-level Products (2):<\/p>\n<p>Oracle Database 10g 10.2.0.1.0<br \/>\nOracle Database 10g Release 2 Patch Set 4 10.2.0.5.0a<br \/>\nThere are 2 products installed in this Oracle Home.<\/p>\n<p>Interim patches (1) :<\/p>\n<p>Patch 12880299 : applied on Wed Sep 12 01:15:39 CST 2012<br \/>\nUnique Patch ID: 14803344<br \/>\nCreated on 3 May 2012, 20:16:10 hrs PST8PDT<br \/>\nBugs fixed:<br \/>\n12880299<\/p>\n<p>Rac system comprising of multiple nodes<br \/>\nLocal node = rac1<br \/>\nRemote node = rac2<\/p>\n<p>--------------------------------------------------------------------------------<\/p>\n<p>OPatch succeeded.<\/p>\n<p>\/*\uff08\u9644\uff09\u68c0\u67e5\u6570\u636e\u5e93\u72b6\u6001*\/<br \/>\n--\u542f\u52a8RAC\u76f8\u5173\u8d44\u6e90\uff0c\u9a8c\u8bc1\u7ed3\u679c<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl start crs<br \/>\nAttempting to start CRS stack<br \/>\nThe CRS stack will be started shortly<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl start crs<br \/>\nAttempting to start CRS stack<br \/>\nThe CRS stack will be started shortly<\/p>\n<p>SQL&gt; conn \/as sysdba<br \/>\nConnected to an idle instance.<br \/>\nSQL&gt; startup<br \/>\nORACLE instance started.<\/p>\n<p>Total System Global Area 536870912 bytes<br \/>\nFixed Size 1274716 bytes<br \/>\nVariable Size 272632996 bytes<br \/>\nDatabase Buffers 260046848 bytes<br \/>\nRedo Buffers 2916352 bytes<br \/>\nDatabase mounted.<br \/>\nORA-01092: ORACLE instance terminated. Disconnection forced<\/p>\n<p>--\u544a\u8b66\u65e5\u5fd7\u5982\u4e0b\uff08\u90e8\u5206\uff09<br \/>\nWed Sep 12 10:20:11 CST 2012<br \/>\nErrors in file \/opt\/ora10g\/admin\/racdb\/udump\/racdb1_ora_12504.trc:<br \/>\nORA-00704: bootstrap process failure<br \/>\nORA-39700: database must be opened with UPGRADE option<br \/>\nWed Sep 12 10:20:11 CST 2012<br \/>\nError 704 happened during db open, shutting down database<br \/>\nUSER: terminating instance due to error 704<br \/>\nInstance terminated by USER, pid = 12504<br \/>\nORA-1092 signalled during: ALTER DATABASE OPEN...<\/p>\n<p>--trace\u5982\u4e0b\uff08\u90e8\u5206\uff09<br \/>\nValidate domain 0<br \/>\nValidated domain 0, flags = 0x0<br \/>\nORA-00704: bootstrap process failure<br \/>\nORA-39700: database must be opened with UPGRADE option<\/p>\n<p>--\u6267\u884c\u811a\u672c<br \/>\n[oracle@rac1 ~]$ sqlplus \/nolog<\/p>\n<p>SQL*Plus: Release 10.2.0.5.0 - Production on Wed Sep 12 10:27:35 2012<\/p>\n<p>Copyright (c) 1982, 2010, Oracle. All Rights Reserved.<\/p>\n<p>SQL&gt; connect \/as sysdba<br \/>\nConnected to an idle instance.<br \/>\nSQL&gt; startup nomount<br \/>\nORACLE instance started.<\/p>\n<p>Total System Global Area 536870912 bytes<br \/>\nFixed Size 1274716 bytes<br \/>\nVariable Size 272632996 bytes<br \/>\nDatabase Buffers 260046848 bytes<br \/>\nRedo Buffers 2916352 bytes<br \/>\nSQL&gt; alter system set cluster_database=false scope=spfile;<\/p>\n<p>System altered.<\/p>\n<p>SQL&gt; shutdown immediate<br \/>\nORA-01507: database not mounted<\/p>\n<p>ORACLE instance shut down.<br \/>\nSQL&gt; startup upgrade<br \/>\nORACLE instance started.<\/p>\n<p>Total System Global Area 536870912 bytes<br \/>\nFixed Size 1274716 bytes<br \/>\nVariable Size 272632996 bytes<br \/>\nDatabase Buffers 260046848 bytes<br \/>\nRedo Buffers 2916352 bytes<br \/>\nDatabase mounted.<br \/>\nDatabase opened.<br \/>\nSQL&gt; spool \/tmp\/patch.log append<br \/>\nSQL&gt; @?\/rdbms\/admin\/catupgrd.sql<br \/>\n... ...<br \/>\nSQL&gt; spool off<br \/>\nSQL&gt; shutdown immediate<br \/>\nDatabase closed.<br \/>\nDatabase dismounted.<br \/>\nORACLE instance shut down.<br \/>\nSQL&gt; startup<br \/>\nORACLE instance started.<\/p>\n<p>Total System Global Area 536870912 bytes<br \/>\nFixed Size 1274716 bytes<br \/>\nVariable Size 293604516 bytes<br \/>\nDatabase Buffers 239075328 bytes<br \/>\nRedo Buffers 2916352 bytes<br \/>\nDatabase mounted.<br \/>\nDatabase opened.<br \/>\nSQL&gt; spool \/tmp\/plsql_paks.log append<br \/>\nSQL&gt; @?\/rdbms\/admin\/utlrp.sql<br \/>\n... ...<br \/>\nSQL&gt; spool off<br \/>\nSQL&gt; alter system set cluster_database=true scope=spfile;<\/p>\n<p>System altered.<\/p>\n<p>SQL&gt; shutdown immediate<br \/>\nDatabase closed.<br \/>\nDatabase dismounted.<br \/>\nORACLE instance shut down.<br \/>\nSQL&gt; startup<br \/>\nORACLE instance started.<\/p>\n<p>Total System Global Area 536870912 bytes<br \/>\nFixed Size 1274716 bytes<br \/>\nVariable Size 293604516 bytes<br \/>\nDatabase Buffers 239075328 bytes<br \/>\nRedo Buffers 2916352 bytes<br \/>\nDatabase mounted.<br \/>\nDatabase opened.<br \/>\nSQL&gt; !<br \/>\n[oracle@rac1 ~]$ crs_stat -t<br \/>\nName Type Target State Host<br \/>\n------------------------------------------------------------<br \/>\nora....SM1.asm application ONLINE ONLINE rac1<br \/>\nora....C1.lsnr application ONLINE ONLINE rac1<br \/>\nora.rac1.gsd application ONLINE ONLINE rac1<br \/>\nora.rac1.ons application ONLINE ONLINE rac1<br \/>\nora.rac1.vip application ONLINE ONLINE rac1<br \/>\nora....SM2.asm application ONLINE ONLINE rac2<br \/>\nora....C2.lsnr application ONLINE ONLINE rac2<br \/>\nora.rac2.gsd application ONLINE ONLINE rac2<br \/>\nora.rac2.ons application ONLINE ONLINE rac2<br \/>\nora.rac2.vip application ONLINE ONLINE rac2<br \/>\nora.racdb.db application ONLINE ONLINE rac2<br \/>\nora....b1.inst application ONLINE ONLINE rac1<br \/>\nora....b2.inst application OFFLINE OFFLINE<br \/>\n[oracle@rac1 ~]$ srvctl start instance -d racdb -i racdb2<br \/>\n[oracle@rac1 ~]$ crs_stat -t<br \/>\nName Type Target State Host<br \/>\n------------------------------------------------------------<br \/>\nora....SM1.asm application ONLINE ONLINE rac1<br \/>\nora....C1.lsnr application ONLINE ONLINE rac1<br \/>\nora.rac1.gsd application ONLINE ONLINE rac1<br \/>\nora.rac1.ons application ONLINE ONLINE rac1<br \/>\nora.rac1.vip application ONLINE ONLINE rac1<br \/>\nora....SM2.asm application ONLINE ONLINE rac2<br \/>\nora....C2.lsnr application ONLINE ONLINE rac2<br \/>\nora.rac2.gsd application ONLINE ONLINE rac2<br \/>\nora.rac2.ons application ONLINE ONLINE rac2<br \/>\nora.rac2.vip application ONLINE ONLINE rac2<br \/>\nora.racdb.db application ONLINE ONLINE rac2<br \/>\nora....b1.inst application ONLINE ONLINE rac1<br \/>\nora....b2.inst application ONLINE ONLINE rac2<br \/>\n[oracle@rac1 ~]$ sqlplus \/nolog<\/p>\n<p>SQL*Plus: Release 10.2.0.5.0 - Production on Wed Sep 12 14:10:23 2012<\/p>\n<p>Copyright (c) 1982, 2010, Oracle. All Rights Reserved.<\/p>\n<p>SQL&gt; conn \/as sysdba<br \/>\nConnected.<br \/>\nSQL&gt; select * from gv$version where rownum<\/p>\n<p>INST_ID BANNER<br \/>\n---------- ----------------------------------------------------------------<br \/>\n1 Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod<br \/>\n1 PL\/SQL Release 10.2.0.5.0 - Production<br \/>\n1 CORE 10.2.0.5.0 Production<br \/>\n1 TNS for Linux: Version 10.2.0.5.0 - Production<br \/>\n1 NLSRTL Version 10.2.0.5.0 - Production<br \/>\n2 Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod<br \/>\n2 PL\/SQL Release 10.2.0.5.0 - Production<br \/>\n2 CORE 10.2.0.5.0 Production<br \/>\n2 TNS for Linux: Version 10.2.0.5.0 - Production<\/p>\n<p>SQL&gt; select * from test;<\/p>\n<p>ID NAME<br \/>\n---------- ----------<br \/>\n1 YALLONKING<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uff08\u96f6\uff09 RAC\u6570\u636e\u5e93\u5347\u7ea7\uff0810.2.0.1.0-&gt;10.2.0.5.0\uff09\u5e76\u6253\u8865\u4e01\uff08P12880299\uff09  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"_links":{"self":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/285"}],"collection":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=285"}],"version-history":[{"count":8,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/285\/revisions"}],"predecessor-version":[{"id":653,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/285\/revisions\/653"}],"wp:attachment":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}