Oracle Database 11.2.0.3 打11.2.0.3.5 Patch Set Update(PSU)补丁

来源:互联网 发布:安卓多人对战游戏源码 编辑:程序博客网 时间:2024/06/05 17:41

下载11.2.0.3.5 PSU 和OPatch software


PSU



OPatch



关闭数据库和监听

  1. [oracle@zwc ~]$ sqlplus / as sysdba  
  2.   
  3. SQL*Plus: Release 11.2.0.3.0 Production on Mon Feb 18 15:36:10 2013  
  4.   
  5. Copyright (c) 1982, 2011, Oracle.  All rights reserved.  
  6.   
  7.   
  8. Connected to:  
  9. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production  
  10. With the Partitioning, OLAP, Data Mining and Real Application Testing options  
  11.   
  12. SQL> shutdown immediate  
  13. Database closed.  
  14. Database dismounted.  
  15. ORACLE instance shut down.  
  16. SQL> !lsnrctl stop  
  17.   
  18. LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 18-FEB-2013 15:36:24  
  19.   
  20. Copyright (c) 1991, 2011, Oracle.  All rights reserved.  
  21.   
  22. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=zwc.database.com)(PORT=1521)))  
  23. The command completed successfully  

开始打PSU补丁
  1. [oracle@zwc oracle]$ opatch version  
  2. OPatch Version: 11.2.0.3.3  
  3.   
  4. OPatch succeeded.  
  5. [oracle@zwc oracle]$ opatch napply -oh $ORACLE_HOME -local /u01/app/oracle/14727310  
  6. Oracle Interim Patch Installer version 11.2.0.3.3  
  7. Copyright (c) 2012, Oracle Corporation.  All rights reserved.  
  8.   
  9.   
  10. Oracle Home       : /u01/app/oracle/product/11.2.0/db_1  
  11. Central Inventory : /u01/app/oraInventory  
  12.    from           : /u01/app/oracle/product/11.2.0/db_1/oraInst.loc  
  13. OPatch version    : 11.2.0.3.3  
  14. OUI version       : 11.2.0.3.0  
  15. Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2013-02-18_15-40-51PM_1.log  
  16.   
  17. Verifying environment and performing prerequisite checks...  
  18. OPatch continues with these patches:   13343438  13696216  13923374  14275605  14727310    
  19.   
  20. Do you want to proceed? [y|n]  
  21. y  
  22. User Responded with: Y  
  23. All checks passed.  
  24. Provide your email address to be informed of security issues, install and  
  25. initiate Oracle Configuration Manager. Easier for you if you use your My  
  26. Oracle Support Email address/User Name.  
  27. Visit http://www.oracle.com/support/policies.html for details.  
  28. Email address/User Name:   
  29.   
  30. You have not provided an email address for notification of security issues.  
  31. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  Y  
  32.   
  33.   
  34.   
  35. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.  
  36. (Oracle Home = '/u01/app/oracle/product/11.2.0/db_1')  
  37.   
  38.   
  39. Is the local system ready for patching? [y|n]  
  40. y  
  41. User Responded with: Y  
  42. Backing up files...  
  43. Applying sub-patch '13343438' to OH '/u01/app/oracle/product/11.2.0/db_1'  
  44.   
  45. Patching component oracle.rdbms.rsf, 11.2.0.3.0...  
  46.   
  47. Patching component oracle.rdbms, 11.2.0.3.0...  
  48.   
  49. Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...  
  50.   
  51. Verifying the update...  
  52. Applying sub-patch '13696216' to OH '/u01/app/oracle/product/11.2.0/db_1'  
  53.   
  54. Patching component oracle.rdbms.rsf, 11.2.0.3.0...  
  55.   
  56. Patching component oracle.rdbms, 11.2.0.3.0...  
  57.   
  58. Patching component oracle.sdo.locator, 11.2.0.3.0...  
  59.   
  60. Patching component oracle.sysman.console.db, 11.2.0.3.0...  
  61.   
  62. Patching component oracle.sysman.oms.core, 10.2.0.4.4...  
  63.   
  64. Verifying the update...  
  65. Applying sub-patch '13923374' to OH '/u01/app/oracle/product/11.2.0/db_1'  
  66. ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ]  not present in the Oracle Home or a higher version is found.  
  67.   
  68. Patching component oracle.rdbms.rsf, 11.2.0.3.0...  
  69.   
  70. Patching component oracle.rdbms, 11.2.0.3.0...  
  71.   
  72. Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...  
  73.   
  74. Patching component oracle.network.rsf, 11.2.0.3.0...  
  75.   
  76. Patching component oracle.network.listener, 11.2.0.3.0...  
  77.   
  78. Patching component oracle.sysman.console.db, 11.2.0.3.0...  
  79.   
  80. Verifying the update...  
  81. Applying sub-patch '14275605' to OH '/u01/app/oracle/product/11.2.0/db_1'  
  82. ApplySession: Optional component(s) [ oracle.precomp.lang, 11.2.0.3.0 ]  not present in the Oracle Home or a higher version is found.  
  83.   
  84. Patching component oracle.network.client, 11.2.0.3.0...  
  85.   
  86. Patching component oracle.network.rsf, 11.2.0.3.0...  
  87.   
  88. Patching component oracle.precomp.common, 11.2.0.3.0...  
  89.   
  90. Patching component oracle.rdbms, 11.2.0.3.0...  
  91.   
  92. Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...  
  93.   
  94. Patching component oracle.rdbms.rman, 11.2.0.3.0...  
  95.   
  96. Patching component oracle.rdbms.rsf, 11.2.0.3.0...  
  97.   
  98. Patching component oracle.rdbms.util, 11.2.0.3.0...  
  99.   
  100. Verifying the update...  
  101. Applying sub-patch '14727310' to OH '/u01/app/oracle/product/11.2.0/db_1'  
  102.   
  103. Patching component oracle.rdbms, 11.2.0.3.0...  
  104.   
  105. Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...  
  106.   
  107. Patching component oracle.rdbms.deconfig, 11.2.0.3.0...  
  108.   
  109. Patching component oracle.rdbms.rsf, 11.2.0.3.0...  
  110.   
  111. Patching component oracle.sdo.locator, 11.2.0.3.0...  
  112.   
  113. Patching component oracle.sysman.console.db, 11.2.0.3.0...  
  114.   
  115. Patching component oracle.sysman.oms.core, 10.2.0.4.4...  
  116.   
  117. Verifying the update...  
  118.   
  119. OPatch found the word "warning" in the stderr of the make command.  
  120. Please look at this stderr. You can re-run this make command.  
  121. Stderr output:  
  122. ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'  
  123. /u01/app/oracle/product/11.2.0/db_1/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'  
  124. /u01/app/oracle/product/11.2.0/db_1/precomp/lib/ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'  
  125. /u01/app/oracle/product/11.2.0/db_1/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'  
  126.   
  127.   
  128. Composite patch 14727310 successfully applied.  
  129. OPatch Session completed with warnings.  
  130. Log file location: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2013-02-18_15-40-51PM_1.log  
  131.   
  132. OPatch completed with warnings.  

验证
  1. [oracle@zwc oracle]$ opatch lspatches  
  2. 14727310;Database Patch Set Update : 11.2.0.3.5 (14727310)  

11.2.0.3.5 PSU包括11.2.0.3.1,11.2.0.3.2,11.2.0.3.3,11.2.0.3.4
  1. [oracle@zwc oracle]$ opatch lsinventory  
  2. Oracle Interim Patch Installer version 11.2.0.3.3  
  3. Copyright (c) 2012, Oracle Corporation.  All rights reserved.  
  4.   
  5.   
  6. Oracle Home       : /u01/app/oracle/product/11.2.0/db_1  
  7. Central Inventory : /u01/app/oraInventory  
  8.    from           : /u01/app/oracle/product/11.2.0/db_1/oraInst.loc  
  9. OPatch version    : 11.2.0.3.3  
  10. OUI version       : 11.2.0.3.0  
  11. Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2013-02-18_15-46-39PM_1.log  
  12.   
  13. Lsinventory Output file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2013-02-18_15-46-39PM.txt  
  14.   
  15. --------------------------------------------------------------------------------  
  16. Installed Top-level Products (1):   
  17.   
  18. Oracle Database 11g                                                  11.2.0.3.0  
  19. There are 1 products installed in this Oracle Home.  
  20.   
  21.   
  22. Interim patches (1) :  
  23.   
  24. Patch  14727310     : applied on Mon Feb 18 15:43:18 CST 2013  
  25. Unique Patch ID:  15663328  
  26. Patch description:  "Database Patch Set Update : 11.2.0.3.5 (14727310)"  
  27.    Created on 27 Dec 2012, 00:06:30 hrs PST8PDT  
  28. Sub-patch  14275605; "Database Patch Set Update : 11.2.0.3.4 (14275605)"  
  29. Sub-patch  13923374; "Database Patch Set Update : 11.2.0.3.3 (13923374)"  
  30. Sub-patch  13696216; "Database Patch Set Update : 11.2.0.3.2 (13696216)"  
  31. Sub-patch  13343438; "Database Patch Set Update : 11.2.0.3.1 (13343438)"  
  32.    Bugs fixed:  
  33.      13566938, 13593999, 10350832, 14138130, 12919564, 13624984, 13588248  
  34.      13080778, 13804294, 14258925, 12873183, 13645875, 12880299, 14664355  
  35.      14409183, 12998795, 14469008, 13719081, 13492735, 12857027, 14263036  
  36.      14263073, 13742433, 13732226, 12905058, 13742434, 12849688, 12950644  
  37.      13742435, 13464002, 12879027, 13534412, 14613900, 12585543, 12535346  
  38.      12588744, 11877623, 12847466, 13649031, 13981051, 12582664, 12797765  
  39.      14262913, 12923168, 13612575, 13384182, 13466801, 13484963, 11063191  
  40.      13772618, 13070939, 12797420, 13041324, 12976376, 11708510, 13742437  
  41.      13026410, 13737746, 13742438, 13326736, 13001379, 13099577, 14275605  
  42.      13742436, 9873405, 9858539, 14040433, 12662040, 9703627, 12617123  
  43.      12845115, 12764337, 13354082, 13397104, 12964067, 13550185, 12780983  
  44.      12583611, 14546575, 13476583, 15862016, 11840910, 13903046, 15862017  
  45.      13572659, 13718279, 13657605, 13448206, 13419660, 14480676, 13632717  
  46.      14063281, 13430938, 13467683, 13420224, 14548763, 12646784, 14035825  
  47.      12861463, 12834027, 15862021, 13377816, 13036331, 14727310, 13685544  
  48.      13499128, 15862018, 12829021, 15862019, 12794305, 14546673, 12791981  
  49.      13503598, 13787482, 10133521, 12718090, 13399435, 14023636, 12401111  
  50.      13257247, 13362079, 12917230, 13923374, 14480675, 13524899, 13559697  
  51.      14480674, 13916709, 14076523, 13773133, 13340388, 13366202, 13528551  
  52.      12894807, 13343438, 13454210, 12748240, 14205448, 13385346, 15853081  
  53.      12971775, 13035804, 13544396, 13035360, 14062795, 12693626, 13332439  
  54.      14038787, 14062796, 12913474, 14841409, 14390252, 13370330, 14062797  
  55.      13059165, 14062794, 12959852, 13358781, 12345082, 12960925, 9659614  
  56.      13699124, 14546638, 13936424, 13338048, 12938841, 12658411, 12620823  
  57.      12656535, 14062793, 12678920, 13038684, 14062792, 13807411, 12594032  
  58.      13250244, 15862022, 9761357, 12612118, 13742464, 14052474, 13457582  
  59.      13527323, 15862020, 12780098, 13502183, 13705338, 13696216, 10263668  
  60.      15862023, 13554409, 15862024, 13103913, 13645917, 14063280, 13011409  
  61.   
  62.   
  63.   
  64. --------------------------------------------------------------------------------  
  65.   
  66. OPatch succeeded.  

执行PSU脚本
  1. [oracle@zwc ~]$ lsnrctl start  
  2.   
  3. LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 18-FEB-2013 15:55:17  
  4.   
  5. Copyright (c) 1991, 2011, Oracle.  All rights reserved.  
  6.   
  7. Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...  
  8.   
  9. TNSLSNR for Linux: Version 11.2.0.3.0 - Production  
  10. System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora  
  11. Log messages written to /u01/app/oracle/diag/tnslsnr/zwc/listener/alert/log.xml  
  12. Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=zwc.database.com)(PORT=1521)))  
  13.   
  14. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=zwc.database.com)(PORT=1521)))  
  15. STATUS of the LISTENER  
  16. ------------------------  
  17. Alias                     LISTENER  
  18. Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production  
  19. Start Date                18-FEB-2013 15:55:18  
  20. Uptime                    0 days 0 hr. 0 min. 0 sec  
  21. Trace Level               off  
  22. Security                  ON: Local OS Authentication  
  23. SNMP                      OFF  
  24. Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora  
  25. Listener Log File         /u01/app/oracle/diag/tnslsnr/zwc/listener/alert/log.xml  
  26. Listening Endpoints Summary...  
  27.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=zwc.database.com)(PORT=1521)))  
  28. Services Summary...  
  29. Service "ZWC" has 1 instance(s).  
  30.   Instance "ZWC", status UNKNOWN, has 1 handler(s) for this service...  
  31. The command completed successfully  
  32. [oracle@zwc ~]$ sqlplus / as sysdba  
  33.   
  34. SQL*Plus: Release 11.2.0.3.0 Production on Mon Feb 18 15:55:21 2013  
  35.   
  36. Copyright (c) 1982, 2011, Oracle.  All rights reserved.  
  37.   
  38. Connected to an idle instance.  
  39.   
  40. SQL> startup  
  41. ORACLE instance started.  
  42.   
  43. Total System Global Area 1653518336 bytes  
  44. Fixed Size          2228904 bytes  
  45. Variable Size        1191185752 bytes  
  46. Database Buffers      452984832 bytes  
  47. Redo Buffers            7118848 bytes  
  48. Database mounted.  
  49. Database opened.  
  1. cd $ORACLE_HOME/rdbms/admin  
  2. sqlplus /nolog  
  3. SQL> CONNECT / AS SYSDBA  
  4. SQL> STARTUP  
  5. SQL> @catbundle.sql psu apply  
  6. SQL> QUIT  

  1. SQL> select * from dba_registry_history;  
  2.   
  3. ACTION_TIME            ACTION  NAMESPACE  VERSION        ID BUNDLE_SERIES   COMMENTS  
  4. ------------------------------ ------- ---------- ---------- ---------- --------------- -------------------  
  5. 17-SEP-11 10.21.11.595816 AM   APPLY   SERVER     11.2.0.3        0 PSU     Patchset 11.2.0.2.0  
  6. 23-JAN-13 02.08.53.165848 PM   APPLY   SERVER     11.2.0.3        0 PSU     Patchset 11.2.0.2.0  
  7. 18-FEB-13 05.56.44.633809 PM   APPLY   SERVER     11.2.0.3        5 PSU     PSU 11.2.0.3.5 




From:http://blog.csdn.net/staricqxyz/article/details/8588022



原创粉丝点击