Oracle 11.2.0.4 RAC安裝最新PSU補丁
Oracle 11.2.0.4 RAC安裝最新PSU補丁
環境:兩節點RAC(RHEL 6.4 + GI 11.2.0.4 + Oracle 11.2.0.4)
需求:安裝最新PSU補丁11.2.0.4.7
- 1.下載補丁和最新OPatch
- 2.檢查資料庫當前OPatch版本
- 3.更新OPatch
- 4.解壓補丁檔案
- 5.檢查補丁之間有無衝突
- 6.停止資料庫和本地crs服務
- 7.更新補丁
- 8.登入資料庫執行升級字典操作
- 9.驗證補丁更新結果
- Reference
1. 下載補丁和最新OPatch
MOS 補丁程式和更新程式搜尋到最新的PSU:截至目前最新是11.2.0.4.7
GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.4.7 (JUL2015) (補丁程式) p20996923_112040_Linux-x86-64.zip 635.8 MB
OPatch下載地址:
2. 檢查資料庫當前OPatch版本
RAC所有節點的GI home和DB home都需要檢查。
$ $ORACLE_HOME/OPatch/opatch version
3. 更新OPatch
RAC所有節點的GI home和DB home都需要更新。
$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch_bak $ unzip p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME $ $ORACLE_HOME/OPatch/opatch version
需要注意grid使用者$ORACLE_HOME 許可權。
$ echo $ORACLE_HOME
$ ls -lh $ORACLE_HOME/../ # chmod 775 /opt/app/11.2.0/grid
4. 解壓補丁檔案
$ unzip p20996923_112040_Linux-x86-64.zip
5. 檢查補丁之間有無衝突
檢查需要打的補丁與現有補丁有無衝突.
$ cd 20996923 $ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
grid使用者執行結果:
$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 11.2.0.3.12 Copyright (c) 2015, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /opt/app/11.2.0/grid
Central Inventory : /opt/app/oraInventory from : /opt/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.12 OUI version : 11.2.0.4.0 Log file location : /opt/app/11.2.0/grid/cfgtoollogs/opatch/opatch2015-10-23_11-53-52AM_1.log
Invoking prereq "checkconflictagainstohwithdetail" Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
oracle執行結果:
$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 11.2.0.3.12 Copyright (c) 2015, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /opt/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /opt/app/oraInventory from : /opt/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.12 OUI version : 11.2.0.4.0 Log file location : /opt/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2015-10-23_11-56-06AM_1.log
Invoking prereq "checkconflictagainstohwithdetail" Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.
6. 停止資料庫和本地crs服務
grid使用者登入節點1
su – oracle
$ $ORACLE_HOME/bin/srvctl stop database –d <db-unique-name>
su – root
# $GRID_HOME/crs/install/rootcrs.pl -unlock
7. 更新補丁
7.1 root使用者,指定不同ORACLE_HOME,自動打補丁(失敗)
# export ORACLE_HOME=/opt/app/11.2.0/grid
# $ORACLE_HOME/OPatch/opatch auto -oh $ORACLE_HOME/ -ocmrf $ORACLE_HOME/OPatch/ocm/bin/emocmrsp
# export ORACLE_HOME=/opt/app/oracle/product/11.2.0/dbhome_1
# $ORACLE_HOME/OPatch/opatch auto -oh $ORACLE_HOME/ -ocmrf $ORACLE_HOME/OPatch/ocm/bin/emocmrsp
7.2 嘗試手工打補丁
7.2.1 節點1 grid home
[grid@jyracdb1 ~]$ $GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local /opt/app/media/20996923/
Oracle Interim Patch Installer version 11.2.0.3.12
Copyright (c) 2015, Oracle Corporation. All rights reserved.
Oracle Home : /opt/app/11.2.0/grid
Central Inventory : /opt/app/oraInventory
from : /opt/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.12
OUI version : 11.2.0.4.0
Log file location : /opt/app/11.2.0/grid/cfgtoollogs/opatch/opatch2015-10-23_16-06-35PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 20299019 17478514 18031668 18522509 19121551 19769489 20299013 20760982 20831122 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]: yes
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/opt/app/11.2.0/grid') Is the local system ready for patching? [y|n]
y User Responded with: Y
Backing up files...
Applying interim patch '20299019' to OH '/opt/app/11.2.0/grid' Patching component oracle.usm, 11.2.0.4.0...
Applying sub-patch '17478514' to OH '/opt/app/11.2.0/grid' ApplySession: Optional component(s) [ oracle.sdo, 11.2.0.4.0 ] , [ oracle.sysman.agent, 10.2.0.4.5 ] , [ oracle.xdk, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.sdo.locator, 11.2.0.4.0...
Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...
Patching component oracle.xdk.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '18031668' to OH '/opt/app/11.2.0/grid' ApplySession: Optional component(s) [ oracle.precomp.common, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.ldap.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.crs, 11.2.0.4.0...
Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '18522509' to OH '/opt/app/11.2.0/grid' ApplySession: Optional component(s) [ oracle.precomp.common, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Applying sub-patch '19121551' to OH '/opt/app/11.2.0/grid' ApplySession: Optional component(s) [ oracle.precomp.common, 11.2.0.4.0 ] , [ oracle.sysman.console.db, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.ordim.client, 11.2.0.4.0...
Patching component oracle.ordim.jai, 11.2.0.4.0...
Applying sub-patch '19769489' to OH '/opt/app/11.2.0/grid' ApplySession: Optional component(s) [ oracle.precomp.common, 11.2.0.4.0 ] , [ oracle.ovm, 11.2.0.4.0 ] , [ oracle.xdk, 11.2.0.4.0 ] , [ oracle.oraolap, 11.2.0.4.0 ] , [ oracle.sysman.agent, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms.util, 11.2.0.4.0...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.xdk.parser.java, 11.2.0.4.0...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.xdk.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Applying sub-patch '20299013' to OH '/opt/app/11.2.0/grid' ApplySession: Optional component(s) [ oracle.rdbms.dv, 11.2.0.4.0 ] , [ oracle.rdbms.oci, 11.2.0.4.0 ] , [ oracle.precomp.common, 11.2.0.4.0 ] , [ oracle.sysman.agent, 10.2.0.4.5 ] , [ oracle.xdk, 11.2.0.4.0 ] , [ oracle.sysman.console.db, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.sysman.common, 10.2.0.4.5...
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Patching component oracle.xdk.parser.java, 11.2.0.4.0...
Patching component oracle.xdk.rsf, 11.2.0.4.0...
Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Patching component oracle.sysman.common.core, 10.2.0.4.5...
Patching component oracle.rdbms.rman, 11.2.0.4.0...
Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Applying sub-patch '20760982' to OH '/opt/app/11.2.0/grid' ApplySession: Optional component(s) [ oracle.sysman.console.db, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms, 11.2.0.4.0...
Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Applying interim patch '20831122' to OH '/opt/app/11.2.0/grid' Patching component oracle.crs, 11.2.0.4.0...
Composite patch 20760982 successfully applied.
Patches 20299019,20831122 successfully applied. Log file location: /opt/app/11.2.0/grid/cfgtoollogs/opatch/opatch2015-10-23_16-06-35PM_1.log OPatch succeeded.
7.2.2 節點1 oracle home
[oracle@jyracdb1 ~]$ $ORACLE_HOME/OPatch/opatch napply -oh $ORACLE_HOME -local /opt/app/media/20996923/20760982/ 輸出略..
7.2.3 執行rootcrs.pl -patch
su – root
[root@jyracdb1 20996923]# /opt/app/11.2.0/grid/rdbms/install/rootadd_rdbms.sh
[root@jyracdb1 20996923]# /opt/app/11.2.0/grid/crs/install/rootcrs.pl -patch Using configuration parameter file: /opt/app/11.2.0/grid/crs/install/crsconfig_params
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
7.3 然後在節點2重複以上節點1操作
su – oracle
[oracle@jyracdb2 ~]$ $ORACLE_HOME/bin/srvctl stop database –d <db-unique-name>
或者:
[oracle@jyracdb2 ~]$ $ORACLE_HOME/bin/srvctl stop instance -d racdb -i racdb2
su – root
# $GRID_HOME/crs/install/rootcrs.pl -unlock 節點2補丁檔案解壓到/tmp下了,當然,如果配置共享的NFS等服務,就不必在節點2再解壓補丁檔案了。
[grid@jyracdb2 ~]$ $GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local /tmp/20996923/
[oracle@jyracdb2 ~]$ $ORACLE_HOME/OPatch/opatch napply -oh $ORACLE_HOME -local /tmp/20996923/20760982/
執行rootcrs.pl -patch su – root
[root@jyracdb2 ~]# /opt/app/11.2.0/grid/rdbms/install/rootadd_rdbms.sh
[root@jyracdb2 ~]# /opt/app/11.2.0/grid/crs/install/rootcrs.pl -patch
8. 登入資料庫執行升級字典操作
由於RAC實際只有一個資料庫,因此任意節點登入資料庫執行1次即可。最後重啟資料庫。
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @utlrp.sql
SQL> shutdown immediate;
SQL> startup;
9. 驗證補丁更新結果
各節點的GI HOME和ORACLE HOME都執行驗證。
$ cd $ORACLE_HOME/OPatch $ ./opatch lsinventory
資料庫的驗證。
SQL> select * from dba_registry_history;
Reference
- 20996923/README.html
- rac如何打補丁9413827
- Oracle 11.2.0.4 RAC psu補丁升級至11.2.0.4.2
- Patching Oracle Software with OPatch - Oracle Real Application Clusters Patching
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28211342/viewspace-2134002/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【PSU】怎麼給RAC打PSU補丁
- Oracle 11g RAC自動打GI PSU補丁Oracle
- Solaris下Oracle RAC 11.2.0.4 安裝方法Oracle
- Oracle RAC更新補丁Oracle
- oracle最新補丁查詢Oracle
- CentOS 7.6 安裝11.2.0.4 RACCentOS
- Oracle RAC 19.3打19.5.1 RU補丁Oracle
- 【ASK_ORACLE】Oracle 19c RAC使用opatchauto安裝補丁報錯OPATCHAUTO-72083Oracle
- Oracle 補丁那些事兒(PS、PSU、CPU、SPU、BP、DBBP…)Oracle
- RAC安裝【AIX 7 + 11.2.0.4 + ASM】AIASM
- ORACLE windows和linux環境下 10g升級到11.2.0.4 並安裝11.2.0.4.19補丁OracleWindowsLinux
- 補丁psu、spu、cpu的意思
- 【PSU】Oracle打PSU及解除安裝PSU(單例項)Oracle單例
- 【UP_ORACLE】如何給Oracle DG打補丁(二)備庫安裝補丁步驟Oracle
- 【UP_ORACLE】如何給Oracle DG打補丁(三)主庫安裝補丁步驟Oracle
- oracle rac 打PSU補丁30805461兩個問題(Java版本及空間不足導致失敗)OracleJava
- HoudahSpot 破解補丁最新 HoudahSpot 中文 for Mac安裝教程Mac
- Windows 11.2.0.4 RAC安裝配置以及RAC新增節點Windows
- OJVM+GI PSU補丁升級JVM
- oracle之 11.2.0.4 bbed安裝Oracle
- Oracle 檢查當前資料庫CPU和PSU補丁資訊Oracle資料庫
- ORACLE 12.1.0.2 for linux7.6 應用PSU補丁31550110中的巨坑OracleLinux
- weblogic 12 補丁安裝Web
- ORACLE11.2.0.4 RAC+ ASM安裝方法 (作業系統CENTOS7.6)OracleASM作業系統CentOS
- oracle 19c rac打補丁常見錯誤Oracle
- oracle rac 11.2.0.3 升級到11.2.0.4Oracle
- Oracle 最新PSU (Doc ID 2118136.2)Oracle
- Oracle 19c RAC打補丁過程避坑指南Oracle
- ORACLE RAC的全自動 打補丁標準化文件Oracle
- Oracle:Oracle RAC 11.2.0.4 升級為 19cOracle
- 【kingsql分享】Oracle 18c RAC補丁升級實戰【DBRU】SQLOracle
- win10怎麼解除安裝補丁_解除安裝win10已安裝更新補丁的方法Win10
- 【補丁】Oracle補丁的知識及術語Oracle
- AIX Oracle 11.2.0.4打PSU crsconfig_lib.pm line 11821解決AIOracle
- Oracle 下載最新psu (Doc ID 2118136.2)Oracle
- 12. Oracle版本、補丁及升級——12.2. 補丁及補丁集Oracle
- redhat7.2靜默安裝Oracle11.2.0.4RedhatOracle
- 一次GI補丁安裝不完整導致的RAC心跳流量異常
- oracle 11.2.0.4 rac叢集等待事件enq: TM - contentionOracle事件ENQ