Oracle10.2.0.1RAC 升級 Oracle10.2.0.5案例分享 -CRS篇
Oracle10.2.0.1RAC 升級 Oracle10.2.0.5案例分享 -CRS篇
這是一次資料庫升級的案例。原有的資料庫是Oracle9i 9.2.0.7 雙節點RAC,執行在AIX5.3.0.0作業系統上。由於應用程式的限制,只能升級到Oracle10g 10.2.0.5。 Oracle10g 10.2.0.5沒有獨立的安裝包,需要先安裝Oracle10.2.0.1在透過升級包來升級到該版本。在新伺服器上安裝和升級的好處是不需要升級資料字典,在完成叢集軟體和資料庫軟體的升級後直接使用dbca建立資料庫就可以了,省去一些步驟。
oracle10.2.0.5升級包解壓縮後是一個Disk1資料夾,並沒有區分叢集軟體和資料庫軟體。在我們手動安裝時根據輸入CRS_HOME和ORACLE_HOME來區分所升級的專案。
本次採用的介質如下
叢集軟體 : 10gr2_aix5l64_cluster.cpio.gz,
資料庫軟體:10gr2_aix5l64_database.cpio.gz,
升級包: p8202632_10205_AIX64-5L_1of2.zip, p8202632_10205_AIX64-5L_2of2.zip
實施環境
Oracle10g RAC+ASM
AIX:5.3_X86_64
SQL> sqlplus / as sysdba
DB version:10.2.0.1
$ crsctl query crs softwareversion
CRS version:10.2.0.1
節點1:scgl1
Instance:PROD1
$ORACLE_HOME:/u01/app/oracle/product/10.2.0/db_1
$CRS_HOME:/u01/app/oracle/product/10.2.0/crs_1
節點2:scgl2
Instance:PROD2
$ORACLE_HOME:/u01/app/oracle/product/10.2.0/db_1
$CRS_HOME:/u01/app/oracle/product/10.2.0/crs_1
叢集軟體升級(10.2.0.1 - 10.2.0.5)
PATCH: p8202632_10205_AIX64-5L_1of2.zip, p8202632_10205_AIX64-5L_2of2.zip
1. 關閉crs資源
$ crs_stop -all
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.scgl1.gsd application OFFLINE OFFLINE
ora.scgl1.ons application OFFLINE OFFLINE
ora.scgl1.vip application OFFLINE OFFLINE
ora.scgl2.gsd application OFFLINE OFFLINE
ora.scgl2.ons application OFFLINE OFFLINE
ora.scgl2.vip application OFFLINE OFFLINE
2. 解壓升級檔案
$ pwd
/backup/install/10205
unzip p8202632_10205_AIX64-5L_1of2.zip
unzip p8202632_10205_AIX64-5L_2of2.zip
3. 確保影像化正常啟動
cd Disk1
$ export DISKPLAY=10.67.224.26:0.0
4. 啟動升級
$ ./runInstaller
5. 開始影像介面升級
6. 先開始CRS的升級,注意Patch路徑選擇$ORA_CRS_HOME
可以點選Installed Products按鈕來檢視Name與Path的對應關係
7. 點選Next
8. 完成環境檢查,Next
9. 點選Install,開始真正的安裝
10. 等待進度條滿後,Next
11. 根據要求執行1. 2.兩步操作
節點scgl1
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
#
# /u01/app/oracle/product/10.2.0/crs_1/install/root102.sh
Error : Please change the CRS_ORACLE_USER id to have the following OS capabilities :
< CAP_PROPAGATE CAP_BYPASS_RAC_VMM CAP_NUMA_ATTACH >
by running command then 'crsctl stop crs' and 'crsctl start crs'.
The CSS daemon, ocssd.bin, will not run in realtime without this change
Oracle strongly recommends that the CSS daemon run realtime
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /u01/app/oracle/product/10.2.0/crs_1
Relinking some shared libraries.
Relinking of patched files is complete.
Copying opriproc to /etc/oracle/bin for AIX
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
Startup will be queued to init within 30 seconds.
Starting up the CRS daemons.
Adding daemons to inittab
Waiting for the patched CRS daemons to start.
This may take a while on some systems.
.
10205 patch successfully applied.
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 1 values from OCR.
Successfully deleted 1 keys from OCR.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node:
node 1: scgl1 scgl1_priv scgl1
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
clscfg -upgrade completed successfully
Creating '/u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs' with data used for CRS configuration
Setting CRS configuration values in /u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs
節點scgl2
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
#
# /u01/app/oracle/product/10.2.0/crs_1/install/root102.sh
Error : Please change the CRS_ORACLE_USER id to have the following OS capabilities :
< CAP_PROPAGATE CAP_BYPASS_RAC_VMM CAP_NUMA_ATTACH >
by running command then 'crsctl stop crs' and 'crsctl start crs'.
The CSS daemon, ocssd.bin, will not run in realtime without this change
Oracle strongly recommends that the CSS daemon run realtime
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /u01/app/oracle/product/10.2.0/crs_1
Relinking some shared libraries.
Relinking of patched files is complete.
Copying opriproc to /etc/oracle/bin for AIX
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
Startup will be queued to init within 30 seconds.
Starting up the CRS daemons.
Adding daemons to inittab
Waiting for the patched CRS daemons to start.
This may take a while on some systems.
.
10205 patch successfully applied.
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 1 values from OCR.
Successfully deleted 1 keys from OCR.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node:
node 2: scgl2 scgl2_priv scgl2
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
clscfg -upgrade completed successfully
Creating '/u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs' with data used for CRS configuration
Setting CRS configuration values in /u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs
指令碼執行結束後,crs及各項服務已經自動啟動了
12. 驗證版本資訊
節點scgl1
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl query crs softwareversion scgl1
CRS software version on node [scgl1] is [10.2.0.5.0]
節點scgl2
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl query crs softwareversion scgl2
CRS software version on node [scgl2] is [10.2.0.5.0]
節點scgl1
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
節點scgl2
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
# su - oracle
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.scgl1.gsd application ONLINE ONLINE scgl1
ora.scgl1.ons application ONLINE ONLINE scgl1
ora.scgl1.vip application ONLINE ONLINE scgl1
ora.scgl2.gsd application ONLINE ONLINE scgl2
ora.scgl2.ons application ONLINE ONLINE scgl2
ora.scgl2.vip application ONLINE ONLINE scgl2
到此位置叢集軟體的升級結束,由於篇幅圖片編輯等限制資料庫升級再下一篇部落格中介紹。
這是一次資料庫升級的案例。原有的資料庫是Oracle9i 9.2.0.7 雙節點RAC,執行在AIX5.3.0.0作業系統上。由於應用程式的限制,只能升級到Oracle10g 10.2.0.5。 Oracle10g 10.2.0.5沒有獨立的安裝包,需要先安裝Oracle10.2.0.1在透過升級包來升級到該版本。在新伺服器上安裝和升級的好處是不需要升級資料字典,在完成叢集軟體和資料庫軟體的升級後直接使用dbca建立資料庫就可以了,省去一些步驟。
oracle10.2.0.5升級包解壓縮後是一個Disk1資料夾,並沒有區分叢集軟體和資料庫軟體。在我們手動安裝時根據輸入CRS_HOME和ORACLE_HOME來區分所升級的專案。
本次採用的介質如下
叢集軟體 : 10gr2_aix5l64_cluster.cpio.gz,
資料庫軟體:10gr2_aix5l64_database.cpio.gz,
升級包: p8202632_10205_AIX64-5L_1of2.zip, p8202632_10205_AIX64-5L_2of2.zip
實施環境
Oracle10g RAC+ASM
AIX:5.3_X86_64
SQL> sqlplus / as sysdba
DB version:10.2.0.1
$ crsctl query crs softwareversion
CRS version:10.2.0.1
節點1:scgl1
Instance:PROD1
$ORACLE_HOME:/u01/app/oracle/product/10.2.0/db_1
$CRS_HOME:/u01/app/oracle/product/10.2.0/crs_1
節點2:scgl2
Instance:PROD2
$ORACLE_HOME:/u01/app/oracle/product/10.2.0/db_1
$CRS_HOME:/u01/app/oracle/product/10.2.0/crs_1
叢集軟體升級(10.2.0.1 - 10.2.0.5)
PATCH: p8202632_10205_AIX64-5L_1of2.zip, p8202632_10205_AIX64-5L_2of2.zip
1. 關閉crs資源
$ crs_stop -all
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.scgl1.gsd application OFFLINE OFFLINE
ora.scgl1.ons application OFFLINE OFFLINE
ora.scgl1.vip application OFFLINE OFFLINE
ora.scgl2.gsd application OFFLINE OFFLINE
ora.scgl2.ons application OFFLINE OFFLINE
ora.scgl2.vip application OFFLINE OFFLINE
2. 解壓升級檔案
$ pwd
/backup/install/10205
unzip p8202632_10205_AIX64-5L_1of2.zip
unzip p8202632_10205_AIX64-5L_2of2.zip
3. 確保影像化正常啟動
cd Disk1
$ export DISKPLAY=10.67.224.26:0.0
4. 啟動升級
$ ./runInstaller
5. 開始影像介面升級
6. 先開始CRS的升級,注意Patch路徑選擇$ORA_CRS_HOME
可以點選Installed Products按鈕來檢視Name與Path的對應關係
7. 點選Next
8. 完成環境檢查,Next
9. 點選Install,開始真正的安裝
10. 等待進度條滿後,Next
11. 根據要求執行1. 2.兩步操作
節點scgl1
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
#
# /u01/app/oracle/product/10.2.0/crs_1/install/root102.sh
Error : Please change the CRS_ORACLE_USER id
< CAP_PROPAGATE CAP_BYPASS_RAC_VMM CAP_NUMA_ATTACH >
by running command then 'crsctl stop crs' and 'crsctl start crs'.
The CSS daemon, ocssd.bin, will not run in realtime without this change
Oracle strongly recommends that the CSS daemon run realtime
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /u01/app/oracle/product/10.2.0/crs_1
Relinking some shared libraries.
Relinking of patched files is complete.
Copying opriproc to /etc/oracle/bin for AIX
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
Startup will be queued to init within 30 seconds.
Starting up the CRS daemons.
Adding daemons to inittab
Waiting for the patched CRS daemons to start.
This may take a while on some systems.
.
10205 patch successfully applied.
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 1 values from OCR.
Successfully deleted 1 keys from OCR.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 1: scgl1 scgl1_priv scgl1
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
clscfg -upgrade completed successfully
Creating '/u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs' with data used for CRS configuration
Setting CRS configuration values in /u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs
節點scgl2
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
#
# /u01/app/oracle/product/10.2.0/crs_1/install/root102.sh
Error : Please change the CRS_ORACLE_USER id
< CAP_PROPAGATE CAP_BYPASS_RAC_VMM CAP_NUMA_ATTACH >
by running command then 'crsctl stop crs' and 'crsctl start crs'.
The CSS daemon, ocssd.bin, will not run in realtime without this change
Oracle strongly recommends that the CSS daemon run realtime
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /u01/app/oracle/product/10.2.0/crs_1
Relinking some shared libraries.
Relinking of patched files is complete.
Copying opriproc to /etc/oracle/bin for AIX
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
Startup will be queued to init within 30 seconds.
Starting up the CRS daemons.
Adding daemons to inittab
Waiting for the patched CRS daemons to start.
This may take a while on some systems.
.
10205 patch successfully applied.
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 1 values from OCR.
Successfully deleted 1 keys from OCR.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 2: scgl2 scgl2_priv scgl2
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
clscfg -upgrade completed successfully
Creating '/u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs' with data used for CRS configuration
Setting CRS configuration values in /u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs
指令碼執行結束後,crs及各項服務已經自動啟動了
12. 驗證版本資訊
節點scgl1
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl query crs softwareversion scgl1
CRS software version on node [scgl1] is [10.2.0.5.0]
節點scgl2
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl query crs softwareversion scgl2
CRS software version on node [scgl2] is [10.2.0.5.0]
節點scgl1
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
節點scgl2
# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
# su - oracle
$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.scgl1.gsd application ONLINE ONLINE scgl1
ora.scgl1.ons application ONLINE ONLINE scgl1
ora.scgl1.vip application ONLINE ONLINE scgl1
ora.scgl2.gsd application ONLINE ONLINE scgl2
ora.scgl2.ons application ONLINE ONLINE scgl2
ora.scgl2.vip application ONLINE ONLINE scgl2
到此位置叢集軟體的升級結束,由於篇幅圖片編輯等限制資料庫升級再下一篇部落格中介紹。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29047826/viewspace-1263381/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- iview 升級指南 —— MenuItem 篇ViewUI
- Exchange 2016部署實施案例篇-06.升級到最新CU補丁
- 墨天輪高分技術文件分享——Oracle升級遷移篇(共96個)Oracle
- 技術分享| anyRTC服務4.3升級
- 企業級知識圖譜的案例分享
- Spring Cloud Greenwich 新特性和F升級分享SpringCloud
- Spring升級案例之IOC介紹和依賴注入Spring依賴注入
- SpringBoot2.7升級到3.0的實踐分享Spring Boot
- 百度分享程式碼已升級到2.0
- CRS-0019 CRS-0014 LFI-00142
- 第0篇---電子小白的打怪升級之路
- 連載四:Oracle升級文章大全(完結篇)Oracle
- Nacos 爆重大 Bug!!不要升級,不要升級,不要升級
- Android技術分享| Bugly 應用升級自定義UIAndroidUI
- 技術分享 | tidb 2.1升級到4.0操作文件TiDB
- Truffle 2.0升級3.0升級指南
- [分享] 一篇不錯的思維工具應用案例
- .net自定義錯誤頁面實現升級篇
- textfsm 案例分享
- oAuth2 升級Spring Cloud Finchley.RELEASE踩坑分享OAuthSpringCloud
- vivo 商城前端架構升級—前後端分離篇前端架構後端
- oracle 10 rac 升級 10.2.0.1升級到10.2.0.5Oracle
- CRS-4124: Oracle High Availability Services startup failed. CRS-4000OracleAI
- 2020最新IT影片課程全面升級,原始碼+筆記+教程分享原始碼筆記
- 【kingsql分享】Oracle 18c RAC補丁升級實戰【DBRU】SQLOracle
- (十二).NET6 + React :升級!升級!還是***升級!!!+ IdentityServer4實戰ReactIDEServer
- Jenkins升級Jenkins
- 升級pythonPython
- ES升級
- Nginx升級Nginx
- 資料庫升級之-Dataguard滾動升級資料庫
- mongodb單機從3.2升級到4.0.4升級MongoDB
- 客戶案例|提質增效 某縣醫院運維升級例項運維
- 升級版佛薩奇3.0NFT系統開發原始碼案例原始碼
- 實踐案例:同程藝龍網的 Dubbo 升級經驗總結
- SQL Server 2016升級遷移過程中效能問題解決案例SQLServer
- macOS 11.0怎麼升級?macOS Big Sur 升級教程Mac
- 全站HTTPS升級系列(一)升級前的科普工作HTTP
- win10升級11102升級失敗怎麼辦_win10升級11102升級一直失敗修復方法Win10