Oracle 10g RAC 升級(CPU Update)之--升級CRS
創(chuàng)新互聯(lián)長期為上千客戶提供的網(wǎng)站建設服務,團隊從業(yè)經(jīng)驗10年,關(guān)注不同地域、不同群體,并針對不同對象提供差異化的產(chǎn)品和服務;打造開放共贏平臺,與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為中牟企業(yè)提供專業(yè)的成都做網(wǎng)站、網(wǎng)站制作,中牟網(wǎng)站改版等技術(shù)服務。擁有10年豐富建站經(jīng)驗和眾多成功案例,為您定制開發(fā)。系統(tǒng)環(huán)境:
操作系統(tǒng):RedHat EL5
Cluster: Oracle CRS 10.2.0.1.0
Oracle: Oracle 10.2.0.1.0
如圖所示:RAC 系統(tǒng)架構(gòu)
案例:
本案例是從 Oracle 10.2.0.1.0 升級到10.2.0.4.0,作為Oracle的補丁升級(CPU Update)。
升級步驟:
1、CRS 升級(對于CRS 升級可以采用滾動升級,本案例采用了滾動升級)
2、Oracle 軟件升級
3、DataBase 升級(可以采用dbua 或 sqlplus 命令升級)
一、升級CRS (ROLLING UPDATE)
升級前的準備:
[oracle@node1 ~]$ sqlplus '/as sysdba' SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 12 14:57:24 2014 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, Real Application Clusters, OLAP and Data Mining options SQL> select instance_name,status from gv$instance; INSTANCE_NAME STATUS ---------------- ------------ prod1 OPEN prod2 OPEN SQL> show parameter sga NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ sga_max_size big integer 272M sga_target big integer 272M SQL> alter system set sga_max_size=600m scope=spfile; System altered. SQL> alter system set sga_target=600m scope=spfile; System altered. SQL> show parameter shared NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ shared_pool_size big integer 0 SQL> alter system set shared_pool_size=200m scope=spfile; System altered. SQL> alter system set java_pool_size=300m scope=spfile; System altered. SQL> startup force nomount; ORACLE instance started. Total System Global Area 629145600 bytes Fixed Size 1220988 bytes Variable Size 524291716 bytes Database Buffers 100663296 bytes Redo Buffers 2969600 bytes SQL> show parameter share NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ shared_pool_size big integer 200M shared_server_sessions integer SQL> show parameter java NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ java_pool_size big integer 300M1)先在node1上進行升級
在node1上升級CRS:
[root@node1 ~]# uname -a Linux node1 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux [root@node1 ~]# crsctl query crs softwareversion CRS software version on node [node1] is [10.2.0.1.0] [root@node1 ~]# crsctl check crs CSS appears healthy CRS appears healthy EVM appears healthy [root@node1 ~]# crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....SM1.asm application ONLINE ONLINE node1 ora....E1.lsnr application ONLINE ONLINE node1 ora.node1.gsd application ONLINE ONLINE node1 ora.node1.ons application ONLINE ONLINE node1 ora.node1.vip application ONLINE ONLINE node1 ora....SM2.asm application ONLINE ONLINE node2 ora....E2.lsnr application ONLINE ONLINE node2 ora.node2.gsd application ONLINE ONLINE node2 ora.node2.ons application ONLINE ONLINE node2 ora.node2.vip application ONLINE ONLINE node2 ora.prod.db application ONLINE ONLINE node1 ora....d1.inst application ONLINE ONLINE node1 ora....d2.inst application ONLINE ONLINE node2 在node1上關(guān)閉Instance: [oracle@node1 ~]$ srvctl stop instance -d prod -i prod1 在node1上關(guān)閉ASM: [oracle@node1 ~]$ srvctl stop asm -n node1 在node1上關(guān)閉nodeapps: [oracle@node1 ~]$ srvctl stop nodeapps -n node1 [oracle@node1 ~]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....SM1.asm application OFFLINE OFFLINE ora....E1.lsnr application OFFLINE OFFLINE ora.node1.gsd application OFFLINE OFFLINE ora.node1.ons application OFFLINE OFFLINE ora.node1.vip application OFFLINE OFFLINE ora....SM2.asm application ONLINE ONLINE node2 ora....E2.lsnr application ONLINE ONLINE node2 ora.node2.gsd application ONLINE ONLINE node2 ora.node2.ons application ONLINE ONLINE node2 ora.node2.vip application ONLINE ONLINE node2 ora.prod.db application ONLINE ONLINE node1 ora....d1.inst application OFFLINE OFFLINE ora....d2.inst application ONLINE ONLINE node22)下載和解壓補丁軟件(對于RAC升級CRS和Oracle軟件都是用相同的補丁軟件)
[oracle@node1 ~]$ unzip p6810189_10204_Linux-x86.zip
升級CRS 10.2.0.1.0 到 10.2.0.4.0,如下圖所示:
以Oracle用戶的身份執(zhí)行:runInstaller
開始升級
注意升級目錄:應該是CRS的安裝目錄
升級安裝
補丁軟件升級過程
按照提示執(zhí)行script
[root@node1 ~]# crsctl stop crs
Stopping resources. Successfully stopped CRS resources Stopping CSSD. Shutting down CSS daemon. Shutdown request successfully issued.[root@node1 ~]# /u01/crs_1/install/root102.sh
Creating pre-patch directory for saving pre-patch clusterware files Completed patching clusterware files to /u01/crs_1 Relinking some shared libraries. Relinking of patched files is complete. 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. Waiting for the patched CRS daemons to start. This may take a while on some systems. . 10204 patch successfully applied. clscfg: EXISTING configuration version 3 detected. clscfg: version 3 is 10G Release 2. Successfully accumulated necessary OCR keys. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897. nodenode1 的CRS升級成功!
3)升級node2的CRS(步驟與node1相同)
[root@node1 ~]# srvctl stop instance -d prod -i prod2 [root@node1 ~]# srvctl stop asm -n node2 [root@node1 ~]# srvctl stop nodeapps -n node2以下為升級過程過程中與node1不同的畫面:
選擇“select all”
升級軟件安裝完成后,按照提示執(zhí)行script
[root@node2 ~]# crsctl stop crs [root@node2 ~]# /u01/crs_1/install/root102.sh[root@node2 ~]# crsctl query crs softwareversion CRS software version on node [node2] is [10.2.0.4.0]node2的CRS升級完成!
[root@node1 ~]# crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....SM1.asm application ONLINE ONLINE node1 ora....E1.lsnr application ONLINE ONLINE node1 ora.node1.gsd application ONLINE ONLINE node1 ora.node1.ons application ONLINE ONLINE node1 ora.node1.vip application ONLINE ONLINE node1 ora....SM2.asm application ONLINE ONLINE node2 ora....E2.lsnr application ONLINE ONLINE node2 ora.node2.gsd application ONLINE ONLINE node2 ora.node2.ons application ONLINE ONLINE node2 ora.node2.vip application ONLINE ONLINE node2 ora.prod.db application ONLINE ONLINE node2 ora....d1.inst application ONLINE ONLINE node1 ora....d2.inst application ONLINE ONLINE node2@至此,Oracle RAC CRS 升級成功!
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。