【RAC】oracle11g_rac_auto_update_opatch

xysoul_雲龍發表於2015-08-03
前段時間測試單機資料庫升級補丁,那麼在RAC中怎麼自動為叢集軟體、資料庫升級補丁呢,下面讓我們來看看。

環境:redhat6.3_x64+Oracle11g RAC (11.2.0.4.0)

所需補丁包:p6880880_112000_Linux-x86-64.zip  p20996923_112040_Linux-x86-64.zip

補丁資訊:p20996923_112040_Linux-x86-64.zip==> GI PSUs are cumulative and include the Database PSU and associated CPU program security content
              p6880880_112000_Linux-x86-64.zip==> You must use the OPatch utility version 11.2.0.3.6 or later to apply this patch. (11.2.0.3.10)

將兩個包上傳至RAC各節點,解壓。

                    unzip  p6880880_112000_Linux-x86-64.zip   | unzip p20996923_112040_Linux-x86-64.zip

溫馨提示:在做資料庫的任何操作,都建議在操作前備份資料庫,以免造成不必要損失。


將新的目錄 OPatch 分別複製到各個節點的GRID、Oracle主目錄中,cp -rf OPatch $GRID_HOME、$ORACLE_HOME(建議提前備份)
檢視opatch 資訊:

點選(此處)摺疊或開啟

  1. [grid@rac01 OPatch]$ ./opatch lsinventory
  2. Oracle Interim Patch Installer version 11.2.0.3.10
  3. Copyright (c) 2015, Oracle Corporation. All rights reserved.


  4. Oracle Home : /grid/crs_home/product/11.2.0
  5. Central Inventory : /grid/oraInventory
  6.    from : /grid/crs_home/product/11.2.0/oraInst.loc
  7. OPatch version : 11.2.0.3.10
  8. OUI version : 11.2.0.4.0
  9. Log file location : /grid/crs_home/product/11.2.0/cfgtoollogs/opatch/opatch2015-07-31_14-31-35PM_1.log

  10. Lsinventory Output file location : /grid/crs_home/product/11.2.0/cfgtoollogs/opatch/lsinv/lsinventory2015-07-31_14-31-35PM.txt

  11. --------------------------------------------------------------------------------
  12. Local Machine Information::
  13. Hostname: rac01
  14. ARU platform id: 226
  15. ARU platform description:: Linux x86-64

  16. Installed Top-level Products (1):

  17. Oracle Grid Infrastructure 11g 11.2.0.4.0
  18. There are 1 products installed in this Oracle Home.


  19. There are no Interim patches installed in this Oracle Home.


  20. Rac system comprising of multiple nodes
  21.   Local node = rac01
  22.   Remote node = rac02

  23. --------------------------------------------------------------------------------

  24. OPatch succeeded.
透過grid使用者建立ocm配置檔案,各個節點都需要(也可以複製到其他節點):

點選(此處)摺疊或開啟

  1. [grid@rac01 bin]$ pwd
  2. /grid/crs_home/product/11.2.0/OPatch/ocm/bin
  3. [grid@rac01 bin]$ ./emocmrsp -no_banner -output /grid/soft/ocm.rsp

檢查每個節點grid、oracle的patch的相容性。例如

點選(此處)摺疊或開啟

  1. [grid@rac01 ~]$ cd /grid/crs_home/product/11.2.0/OPatch/
  2. [grid@rac01 OPatch]$ ./opatch lsinventory -detail -oh $ORACLE_HOME
  3. Oracle Interim Patch Installer version 11.2.0.3.10
  4. Copyright (c) 2015, Oracle Corporation. All rights reserved.


  5. Oracle Home : /grid/crs_home/product/11.2.0
  6. Central Inventory : /grid/oraInventory
  7.    from : /grid/crs_home/product/11.2.0/oraInst.loc
  8. OPatch version : 11.2.0.3.10
  9. OUI version : 11.2.0.4.0
  10. Log file location : /grid/crs_home/product/11.2.0/cfgtoollogs/opatch/opatch2015-07-31_15-05-07PM_1.log

  11. Lsinventory Output file location : /grid/crs_home/product/11.2.0/cfgtoollogs/opatch/lsinv/lsinventory2015-07-31_15-05-07PM.txt

  12. --------------------------------------------------------------------------------
  13. Local Machine Information::
  14. Hostname: rac01
  15. ARU platform id: 226
  16. ARU platform description:: Linux x86-64

  17. Installed Top-level Products (1):

  18. Oracle Grid Infrastructure 11g 11.2.0.4.0
  19. There are 1 products installed in this Oracle Home.


  20. Installed Products (89):

  21. Agent Required Support Files 10.2.0.4.5
  22. Assistant Common Files 11.2.0.4.0
  23. Automatic Storage Management Assistant 11.2.0.4.0
  24. Bali Share 1.1.18.0.0
  25. Buildtools Common Files 11.2.0.4.0
  26. Character Set Migration Utility 11.2.0.4.0
  27. Cluster Ready Services Files 11.2.0.4.0
  28. Cluster Verification Utility Common Files 11.2.0.4.0
  29. Cluster Verification Utility Files 11.2.0.4.0
  30. Database SQL Scripts 11.2.0.4.0
  31. Deinstallation Tool 11.2.0.4.0
  32. Enterprise Manager Common Core Files 10.2.0.4.5
  33. Enterprise Manager Common Files 10.2.0.4.5
  34. Enterprise Manager plugin Common Files 11.2.0.4.0
  35. Expat libraries 2.0.1.0.1
  36. HAS Common Files 11.2.0.4.0
  37. HAS Files for DB 11.2.0.4.0
  38. Installation Common Files 11.2.0.4.0
  39. Installation Plugin Files 11.2.0.4.0
  40. Installer SDK Component 11.2.0.4.0
  41. Java Development Kit 1.5.0.51.10
  42. LDAP Required Support Files 11.2.0.4.0
  43. OLAP SQL Scripts 11.2.0.4.0
  44. Oracle Advanced Security 11.2.0.4.0
  45. Oracle Clusterware RDBMS Files 11.2.0.4.0
  46. Oracle Configuration Manager Deconfiguration 10.3.1.0.0
  47. Oracle Containers for Java 11.2.0.4.0
  48. Oracle Core Required Support Files 11.2.0.4.0
  49. Oracle Database 11g 11.2.0.4.0
  50. Oracle Database 11g Multimedia Files 11.2.0.4.0
  51. Oracle Database Deconfiguration 11.2.0.4.0
  52. Oracle Database User Interface 2.2.13.0.0
  53. Oracle Database Utilities 11.2.0.4.0
  54. Oracle DBCA Deconfiguration 11.2.0.4.0
  55. Oracle Extended Windowing Toolkit 3.4.47.0.0
  56. Oracle Globalization Support 11.2.0.4.0
  57. Oracle Globalization Support 11.2.0.4.0
  58. Oracle Grid Infrastructure 11g 11.2.0.4.0
  59. Oracle Help For Java 4.2.9.0.0
  60. Oracle Ice Browser 5.2.3.6.0
  61. Oracle Internet Directory Client 11.2.0.4.0
  62. Oracle Java Client 11.2.0.4.0
  63. Oracle JDBC/OCI Instant Client 11.2.0.4.0
  64. Oracle JDBC/THIN Interfaces 11.2.0.4.0
  65. Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
  66. Oracle JVM 11.2.0.4.0
  67. Oracle LDAP administration 11.2.0.4.0
  68. Oracle Locale Builder 11.2.0.4.0
  69. Oracle Multimedia 11.2.0.4.0
  70. Oracle Multimedia Client Option 11.2.0.4.0
  71. Oracle Multimedia Java Advanced Imaging 11.2.0.4.0
  72. Oracle Multimedia Locator 11.2.0.4.0
  73. Oracle Multimedia Locator RDBMS Files 11.2.0.4.0
  74. Oracle Net 11.2.0.4.0
  75. Oracle Net Listener 11.2.0.4.0
  76. Oracle Net Required Support Files 11.2.0.4.0
  77. Oracle Netca Client 11.2.0.4.0
  78. Oracle Notification Service 11.2.0.3.0
  79. Oracle Notification Service (eONS) 11.2.0.4.0
  80. Oracle One-Off Patch Installer 11.2.0.3.4
  81. Oracle Quality of Service Management (Client) 11.2.0.4.0
  82. Oracle Quality of Service Management (Server) 11.2.0.4.0
  83. Oracle RAC Deconfiguration 11.2.0.4.0
  84. Oracle RAC Required Support Files-HAS 11.2.0.4.0
  85. Oracle Recovery Manager 11.2.0.4.0
  86. Oracle Security Developer Tools 11.2.0.4.0
  87. Oracle Text Required Support Files 11.2.0.4.0
  88. Oracle Universal Installer 11.2.0.4.0
  89. Oracle USM Deconfiguration 11.2.0.4.0
  90. Oracle Wallet Manager 11.2.0.4.0
  91. Parser Generator Required Support Files 11.2.0.4.0
  92. Perl Interpreter 5.10.0.0.2
  93. Perl Modules 5.10.0.0.1
  94. PL/SQL 11.2.0.4.0
  95. PL/SQL Embedded Gateway 11.2.0.4.0
  96. Platform Required Support Files 11.2.0.4.0
  97. Precompiler Required Support Files 11.2.0.4.0
  98. RDBMS Required Support Files 11.2.0.4.0
  99. RDBMS Required Support Files for Instant Client 11.2.0.4.0
  100. RDBMS Required Support Files Runtime 11.2.0.4.0
  101. Required Support Files 11.2.0.4.0
  102. Secure Socket Layer 11.2.0.4.0
  103. SQL*Plus 11.2.0.4.0
  104. SQL*Plus Files for Instant Client 11.2.0.4.0
  105. SQL*Plus Required Support Files 11.2.0.4.0
  106. SSL Required Support Files for InstantClient 11.2.0.4.0
  107. Universal Storage Manager Files 11.2.0.4.0
  108. XDK Required Support Files 11.2.0.4.0
  109. XML Parser for Java 11.2.0.4.0
  110. There are 89 products installed in this Oracle Home.


  111. There are no Interim patches installed in this Oracle Home.


  112. Rac system comprising of multiple nodes
  113.   Local node = rac01
  114.   Remote node = rac02

  115. --------------------------------------------------------------------------------

  116. OPatch succeeded.
  117. [grid@rac01 OPatch]$
檢查透過後,停止資料庫: srvctl stop database -d racdb

以root使用者開始執行下面語句,每個節點都需要執行(依次):

點選(此處)摺疊或開啟

  1. [root@rac01 ~]# export GI_HOME=/grid/crs_home/product/11.2.0
  2. [root@rac01 ~]# $GI_HOME/OPatch/opatch auto /grid/soft/20996923 -ocmrf /grid/soft/ocm.rsp
  3. Executing /grid/crs_home/product/11.2.0/perl/bin/perl /grid/crs_home/product/11.2.0/OPatch/crs/patch11203.pl -patchdir /grid/soft -patchn 20996923 -ocmrf /grid/soft/ocm.rsp -paramfile /grid/crs_home/product/11.2.0/crs/install/crsconfig_params

  4. This is the main log file: /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto2015-08-03_09-20-46.log

  5. This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
  6. /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto2015-08-03_09-20-46.report.log

  7. 2015-08-03 09:20:46: Starting Clusterware Patch Setup
  8. Using configuration parameter file: /grid/crs_home/product/11.2.0/crs/install/crsconfig_params

  9. Stopping RAC /oracle/app/oracle/product/11.2.0 ...
  10. Stopped RAC /oracle/app/oracle/product/11.2.0 successfully

  11. patch /grid/soft/20996923/20760982 apply successful for home /oracle/app/oracle/product/11.2.0
  12. patch /grid/soft/20996923/20831122/custom/server/20831122 apply successful for home /oracle/app/oracle/product/11.2.0

  13. Stopping CRS...
  14. Stopped CRS successfully

  15. patch /grid/soft/20996923/20760982 apply successful for home /grid/crs_home/product/11.2.0
  16. patch /grid/soft/20996923/20831122 apply successful for home /grid/crs_home/product/11.2.0
  17. patch /grid/soft/20996923/20299019 apply successful for home /grid/crs_home/product/11.2.0

  18. Starting CRS...
  19. Installing Trace File Analyzer
  20. CRS-4123: Oracle High Availability Services has been started.

  21. Starting RAC /oracle/app/oracle/product/11.2.0 ...
  22. Started RAC /oracle/app/oracle/product/11.2.0 successfully

  23. opatch auto succeeded.
  24. [root@rac01 ~]#
下面是後臺輸出日誌,由於日誌太多,擷取部分日誌資訊:

點選(此處)摺疊或開啟

  1. ...................
  2. Verifying environment and performing prerequisite checks...
  3.  OPatch continues with these patches: 17478514 18031668 18522509 19121551 19769489 20299013 20760982
  4.  
  5.  Do you want to proceed? [y|n]
  6.  Y (auto-answered by -silent)
  7.  User Responded with: Y
  8.  All checks passed.
  9.  
  10.  Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
  11.  (Oracle Home = '/oracle/app/oracle/product/11.2.0')
  12.  Is the local system ready for patching? [y|n]
  13.  Y (auto-answered by -silent)
  14.  User Responded with: Y
  15.  Backing up files...
  16.  Applying sub-patch '17478514' to OH '/oracle/app/oracle/product/11.2.0'
  17.  
  18.  Patching component oracle.rdbms, 11.2.0.4.0...
  19. ...........
  20. ..........
  21. 2015-08-03 09:30:30: Unlock crshome...
  22. 2015-08-03 09:30:30: crshome passed is
  23. 2015-08-03 09:30:30: Exclude file used is /grid/crs_home/product/11.2.0/OPatch/crs/installPatch.excl
  24. 2015-08-03 09:30:30: Home location in olr.loc is /grid/crs_home/product/11.2.0
  25. 2015-08-03 09:30:30: unlock crs home is /grid/crs_home/product/11.2.0
  26. 2015-08-03 09:30:30: Executing /grid/crs_home/product/11.2.0/bin/crsctl stop crs -f
  27. 2015-08-03 09:30:30: Executing cmd: /grid/crs_home/product/11.2.0/bin/crsctl stop crs -f
  28. 2015-08-03 09:34:05: Command output:
  29. > CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac01'
  30. > CRS-2673: Attempting to stop 'ora.crsd' on 'rac01'
  31. > CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac01'
  32. > CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'rac01'
  33. .............

下面是後臺執行具體操作

點選(此處)摺疊或開啟

  1. [grid@rac01 opatch]$ tail -f /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto2015-08-03_09-20-46.report.log
  2. crs_home=/grid/crs_home/product/11.2.0 version=11.2.0.4.0 owner=grid opatch_ver=11.2.0.3.10
  3. rac_home=/oracle/app/oracle/product/11.2.0 version=11.2.0.4.0 owner=oracle opatch_ver=11.2.0.3.10

  4. *********** Steps to be executed as owner unless specified as root ***********


  5. 1: /oracle/app/oracle/product/11.2.0/OPatch/opatch prereq CheckComponents -ph /grid/soft/20996923/20760982 -oh /oracle/app/oracle/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  6. 2: /oracle/app/oracle/product/11.2.0/OPatch/opatch prereq CheckComponents -ph /grid/soft/20996923/20831122/custom/server/20831122 -oh /oracle/app/oracle/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  7. 3: /oracle/app/oracle/product/11.2.0/OPatch/opatch prereq CheckConflictAgainstOH -ph /grid/soft/20996923/20760982 -oh /oracle/app/oracle/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  8. 4: /oracle/app/oracle/product/11.2.0/OPatch/opatch prereq CheckConflictAgainstOH -ph /grid/soft/20996923/20831122/custom/server/20831122 -oh /oracle/app/oracle/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  9. 5: /grid/crs_home/product/11.2.0/OPatch/opatch prereq CheckComponents -ph /grid/soft/20996923/20760982 -oh /grid/crs_home/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  10. 6: /grid/crs_home/product/11.2.0/OPatch/opatch prereq CheckComponents -ph /grid/soft/20996923/20831122 -oh /grid/crs_home/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  11. 7: /grid/crs_home/product/11.2.0/OPatch/opatch prereq CheckComponents -ph /grid/soft/20996923/20299019 -oh /grid/crs_home/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  12. 8: /grid/crs_home/product/11.2.0/OPatch/opatch prereq CheckConflictAgainstOH -ph /grid/soft/20996923/20760982 -oh /grid/crs_home/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  13. 9: /grid/crs_home/product/11.2.0/OPatch/opatch prereq CheckConflictAgainstOH -ph /grid/soft/20996923/20831122 -oh /grid/crs_home/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  14. 10: /grid/crs_home/product/11.2.0/OPatch/opatch prereq CheckConflictAgainstOH -ph /grid/soft/20996923/20299019 -oh /grid/crs_home/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  15. 11: /oracle/app/oracle/product/11.2.0/bin/emctl stop dbconsole

  16. 12: /oracle/app/oracle/product/11.2.0/bin/emctl stop agent

  17. 13: /oracle/app/oracle/product/11.2.0/OPatch/opatch prereq CheckApplicable -ph /grid/soft/20996923/20760982 -oh /oracle/app/oracle/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  18. 14: /oracle/app/oracle/product/11.2.0/OPatch/opatch prereq CheckApplicable -ph /grid/soft/20996923/20831122/custom/server/20831122 -oh /oracle/app/oracle/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  19. 15: /oracle/app/oracle/product/11.2.0/bin/srvctl stop home -o /oracle/app/oracle/product/11.2.0 -s /oracle/app/oracle/product/11.2.0/srvm/admin/stophome.txt -n rac01 -f

  20. 16: /grid/soft/20996923/20831122/custom/server/20831122/custom/scripts/prepatch.sh -dbhome /oracle/app/oracle/product/11.2.0

  21. 17: /oracle/app/oracle/product/11.2.0/OPatch/opatch napply /grid/soft/20996923/20760982 -local -silent -ocmrf /grid/soft/ocm.rsp -oh /oracle/app/oracle/product/11.2.0 -invPtrLoc /oracle/app/oracle/product/11.2.0/oraInst.loc

  22. 18: /oracle/app/oracle/product/11.2.0/OPatch/opatch napply /grid/soft/20996923/20831122/custom/server/20831122 -local -silent -ocmrf /grid/soft/ocm.rsp -oh /oracle/app/oracle/product/11.2.0 -invPtrLoc /oracle/app/oracle/product/11.2.0/oraInst.loc

  23. 19: /grid/soft/20996923/20831122/custom/server/20831122/custom/scripts/postpatch.sh -dbhome /oracle/app/oracle/product/11.2.0

  24. 20: /grid/crs_home/product/11.2.0/crs/install/rootcrs.pl -unlock : run as root

  25. 21: /sbin/fuser -k /grid/crs_home/product/11.2.0/bin/crsctl.bin : run as root

  26. 22: /grid/crs_home/product/11.2.0/OPatch/opatch prereq CheckApplicable -ph /grid/soft/20996923/20760982 -oh /grid/crs_home/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  27. 23: /grid/crs_home/product/11.2.0/OPatch/opatch prereq CheckApplicable -ph /grid/soft/20996923/20831122 -oh /grid/crs_home/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  28. 24: /grid/crs_home/product/11.2.0/OPatch/opatch prereq CheckApplicable -ph /grid/soft/20996923/20299019 -oh /grid/crs_home/product/11.2.0 -customLogDir /grid/crs_home/product/11.2.0/cfgtoollogs/opatchauto/core

  29. 25: /grid/crs_home/product/11.2.0/OPatch/opatch napply /grid/soft/20996923/20760982 -local -silent -ocmrf /grid/soft/ocm.rsp -oh /grid/crs_home/product/11.2.0 -invPtrLoc /grid/crs_home/product/11.2.0/oraInst.loc

  30. 26: /grid/crs_home/product/11.2.0/OPatch/opatch napply /grid/soft/20996923/20831122 -local -silent -ocmrf /grid/soft/ocm.rsp -oh /grid/crs_home/product/11.2.0 -invPtrLoc /grid/crs_home/product/11.2.0/oraInst.loc

  31. 27: /grid/crs_home/product/11.2.0/OPatch/opatch napply /grid/soft/20996923/20299019 -local -silent -ocmrf /grid/soft/ocm.rsp -oh /grid/crs_home/product/11.2.0 -invPtrLoc /grid/crs_home/product/11.2.0/oraInst.loc

  32. 28: /grid/crs_home/product/11.2.0/bin/emctl start dbconsole

  33. 29: /grid/crs_home/product/11.2.0/rdbms/install/rootadd_rdbms.sh : run as root

  34. 30: /grid/crs_home/product/11.2.0/crs/install/rootcrs.pl -patch : run as root

  35. 31: /oracle/app/oracle/product/11.2.0/bin/emctl start dbconsole

  36. 32: /oracle/app/oracle/product/11.2.0/bin/emctl start agent

  37. 33: /oracle/app/oracle/product/11.2.0/bin/srvctl start home -o /oracle/app/oracle/product/11.2.0 -s /oracle/app/oracle/product/11.2.0/srvm/admin/stophome.txt -n rac01

再各個節點執行完自動升級後,啟動資料庫:srvctl start database -d racdb

執行下面語句,在每個節點

點選(此處)摺疊或開啟

  1. SQL> @?/rdbms/admin/catbundle.sql psu apply

  2. PL/SQL procedure successfully completed.


  3. Function created.


  4. Function created.


  5. PL/SQL procedure successfully completed.
  6. ..............
  7. SQL> INSERT INTO registry$history
  8.   2 (action_time, action,
  9.   3 namespace, version, id,
  10.   4 bundle_series, comments)
  11.   5 VALUES
  12.   6 (SYSTIMESTAMP, 'APPLY',
  13.   7 SYS_CONTEXT('REGISTRY$CTX','NAMESPACE'),
  14.   8 '11.2.0.4',
  15.   9 7,
  16.  10 'PSU',
  17.  11 'PSU 11.2.0.4.7');

  18. 1 row created.

  19. SQL> COMMIT;

  20. Commit complete.

  21. SQL> SPOOL off
  22. SQL> SET echo off
  23. Check the following log file for errors:
  24. /oracle/app/oracle/cfgtoollogs/catbundle/catbundle_PSU_RACDB_APPLY_2015Aug03_09_58_09.log

檢查資料庫資訊:

點選(此處)摺疊或開啟

  1. SQL> select * from dba_registry_history;

  2. ACTION_TIME ACTION NAMESPACE VERSION ID BUNDLE_SERIES COMMENTS
  3. ------------------------------ ---------------- ---------- ---------- ---------- --------------- --------------------------
  4. 2014-09-28 05:52:58.357412 APPLY SERVER 11.2.0.4 0 PSU Patchset 11.2.0.2.0
  5. 2015-08-03 09:59:48.521212 APPLY SERVER 11.2.0.4 7 PSU PSU 11.2.0.4.7
  6. 2015-08-03 10:00:11.433233 APPLY SERVER 11.2.0.4 7 PSU PSU 11.2.0.4.7

檢視grid 版本資訊

點選(此處)摺疊或開啟

  1. [grid@rac01 OPatch]$ ./opatch lsinventory -detail -oh $ORACLE_HOME | grep -i patch
  2. Oracle Interim Patch Installer version 11.2.0.3.10
  3. OPatch version : 11.2.0.3.10
  4. Log file location : /grid/crs_home/product/11.2.0/cfgtoollogs/opatch/opatch2015-08-03_10-49-36AM_1.log
  5. Lsinventory Output file location : /grid/crs_home/product/11.2.0/cfgtoollogs/opatch/lsinv/lsinventory2015-08-03_10-49-36AM.txt
  6. Oracle One-Off Patch Installer 11.2.0.3.4
  7. Interim patches (3) :
  8. Patch 20299019 : applied on Mon Aug 03 09:43:14 CST 2015
  9. Unique Patch ID: 18573450
  10. Patch description: "ACFS Patch set update : 11.2.0.4.6 (20299019)"
  11.    Patch Location in Inventory:
  12.    Patch Location in Storage area:
  13.      /grid/crs_home/product/11.2.0/.patch_storage/20299019_Mar_27_2015_15_26_30
  14. Patch 20831122 : applied on Mon Aug 03 09:41:03 CST 2015
  15. Unique Patch ID: 18923533
  16. Patch description: "OCW Patch Set Update : 11.2.0.4.7 (20831122)"
  17.      crspatch.pm --> ORACLE_HOME/crs/install/crspatch.pm
  18.    Patch Location in Inventory:
  19.    Patch Location in Storage area:
  20.      /grid/crs_home/product/11.2.0/.patch_storage/20831122_Jul_1_2015_06_26_45
  21. Patch 20760982 : applied on Mon Aug 03 09:39:05 CST 2015
  22. Unique Patch ID: 18908105
  23. Patch description: "Database Patch Set Update : 11.2.0.4.7 (20760982)"
  24. Sub-patch 20299013; "Database Patch Set Update : 11.2.0.4.6 (20299013)"
  25. Sub-patch 19769489; "Database Patch Set Update : 11.2.0.4.5 (19769489)"
  26. Sub-patch 19121551; "Database Patch Set Update : 11.2.0.4.4 (19121551)"
  27. Sub-patch 18522509; "Database Patch Set Update : 11.2.0.4.3 (18522509)"
  28. Sub-patch 18031668; "Database Patch Set Update : 11.2.0.4.2 (18031668)"
  29. Sub-patch 17478514; "Database Patch Set Update : 11.2.0.4.1 (17478514)"
  30.      bug16595641.sql --> ORACLE_HOME/patch/scripts/bug16595641.sql
  31.      bug17088068.sql --> ORACLE_HOME/patch/scripts/bug17088068.sql
  32.      bug17381384.sql --> ORACLE_HOME/patch/scripts/bug17381384.sql
  33.      bug19289642.sql --> ORACLE_HOME/patch/scripts/bug19289642.sql
  34.      sdopatch.sql --> ORACLE_HOME/md/admin/sdopatch.sql
  35.    Patch Location in Inventory:
  36.    Patch Location in Storage area:
  37.      /grid/crs_home/product/11.2.0/.patch_storage/20760982_Jun_4_2015_00_23_20
  38. OPatch succeeded.
  39. [grid@rac01 OPatch]$
至此,oracle11g rac 打補丁完成,透過一條命令,我們就可以為gird、database升級,方面高效,透過後臺日志,我們可以看到,它的每一步操作,能夠讓我們更好的掌握升級、瞭解其過程。

文盲筱燁,2015年8月3日

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29487349/viewspace-1760397/,如需轉載,請註明出處,否則將追究法律責任。

相關文章