Oracle10g新特色:CRS(Cluster Ready Services)
Oracle10g CRS(Cluster Ready Services)是Oracle10g RAC的一個新特性,用以提供標準的群集服務介面。
在以前的版本中,Oracle RAC必須藉助第三方Cluster軟體,但是從Oracle10g開始,我們有了新的選擇。
CRS就是這樣一個替代產品,用以提供RAC環境中的群集服務。[@more@]
CRS是一個單獨的產品,在構建RAC環境中,需要單獨安裝。
系統啟動以後,CRS會自動啟動,啟動主要由/etc/init.d中的幾個指令碼完成:
CRS啟動的三個主要的後臺程式為:
這幾個程式的主要作用如下:
ocssd程式非常重要,如果該程式異常中止,會導致系統crash。
在某些極端情況下,如果ocssd無法正常啟動,會導致作業系統迴圈重啟。這時候需要DBA介入進行一些特殊處理。
在以前的版本中,Oracle RAC必須藉助第三方Cluster軟體,但是從Oracle10g開始,我們有了新的選擇。
CRS就是這樣一個替代產品,用以提供RAC環境中的群集服務。[@more@]
CRS是一個單獨的產品,在構建RAC環境中,需要單獨安裝。
系統啟動以後,CRS會自動啟動,啟動主要由/etc/init.d中的幾個指令碼完成:
[eygle@raclinux1 init.d]$ ll init* -r-xr-xr-x 1 root root 1951 Jun 27 13:27 init.crs -r-xr-xr-x 1 root root 4735 Jun 27 20:32 init.crsd -r-xr-xr-x 1 root root 35401 Jun 27 13:27 init.cssd -r-xr-xr-x 1 root root 3197 Jun 27 13:27 init.evmd |
CRS啟動的三個主要的後臺程式為:
[oracle@raclinux1 bin]$ ps -ef|grep d.bin root 3140 1 0 23:13 00:00:00 /u01/app/oracle/product/10.2.0/crs/bin/crsd.bin oracle 3884 3062 0 23:14 00:00:00 /u01/app/oracle/product/10.2.0/crs/bin/evmd.bin oracle 4017 3983 0 23:14 00:00:00 /u01/app/oracle/product/10.2.0/crs/bin/ocssd.bin oracle 21117 13799 0 23:29 pts/1 00:00:00 grep d.bin |
這幾個程式的主要作用如下:
CRSD: - Engine for HA operation - Manages 'application resources' - Starts, stops, and fails 'application resources' over - Spawns separate 'actions' to start/stop/check application resources - Maintains configuration profiles in the OCR (Oracle Configuration Repository) - Stores current known state in the OCR. - Runs as root - Is restarted automatically on failure OCSSD: - OCSSD is part of RAC and Single Instance with ASM - Provides access to node membership - Provides group services - Provides basic cluster locking - Integrates with existing vendor clusteware, when present - Can also runs without integration to vendor clustware - Runs as Oracle. - Failure exit causes machine reboot. --- This is a feature to prevent data corruption in event of a split brain.注意,ocssd程式在單例項ASM系統中也可以見到,以下是我的一個單例項ASM系統,ocssd程式同樣存在:
bash-2.03# ps -ef|grep _+ASM oracle 3264 1 0 Aug 25 ? 0:01 asm_lgwr_+ASM root 12669 8167 0 11:58:56 pts/1 0:00 grep _+ASM oracle 3270 1 0 Aug 25 ? 0:00 asm_rbal_+ASM oracle 3266 1 0 Aug 25 ? 0:05 asm_ckpt_+ASM oracle 3268 1 0 Aug 25 ? 0:00 asm_smon_+ASM oracle 3262 1 0 Aug 25 ? 0:00 asm_dbw0_+ASM oracle 3258 1 0 Aug 25 ? 0:00 asm_pmon_+ASM oracle 3260 1 0 Aug 25 ? 0:00 asm_mman_+ASM bash-2.03# ps -ef|grep ocssd root 12672 8167 0 11:59:01 pts/1 0:00 grep ocssd oracle 5374 1 0 Apr 07 ? 0:01 /opt/oracle/product/10.1.0/bin/ocssd.bin bash-2.03# |
ocssd程式非常重要,如果該程式異常中止,會導致系統crash。
在某些極端情況下,如果ocssd無法正常啟動,會導致作業系統迴圈重啟。這時候需要DBA介入進行一些特殊處理。
EVMD: - Generates events when things happen - Spawns a permanent child evmlogger - Evmlogger, on demand, spawns children - Scans callout directory and invokes callouts. - Runs as Oracle. - Restarted automatically on failure
我們可以透過CRS工具來檢視CRS狀態:
[oracle@raclinux1 ~]$ cd $ORA_CRS_HOME/bin [oracle@raclinux1 bin]$ pwd /u01/app/oracle/product/10.2.0/crs/bin [oracle@raclinux1 bin]$ ./crs_stat NAME=ora.RACDB.RACDB1.inst TYPE=application TARGET=ONLINE STATE=ONLINE on raclinux1 NAME=ora.RACDB.RACDB2.inst TYPE=application TARGET=ONLINE STATE=ONLINE on raclinux1 NAME=ora.RACDB.db TYPE=application TARGET=ONLINE STATE=ONLINE on raclinux1 NAME=ora.raclinux1.ASM1.asm TYPE=application TARGET=ONLINE STATE=ONLINE on raclinux1 NAME=ora.raclinux1.LISTENER2_RACLINUX1.lsnr TYPE=application TARGET=ONLINE STATE=ONLINE on raclinux1 NAME=ora.raclinux1.LISTENER_RACLINUX1.lsnr TYPE=application TARGET=ONLINE STATE=ONLINE on raclinux1 NAME=ora.raclinux1.gsd TYPE=application TARGET=ONLINE STATE=ONLINE on raclinux1 NAME=ora.raclinux1.ons TYPE=application TARGET=ONLINE STATE=ONLINE on raclinux1 NAME=ora.raclinux1.vip TYPE=application TARGET=ONLINE STATE=ONLINE on raclinux1 [oracle@raclinux1 bin]$ |
作者:蓋國強 來源:eygle.com
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1001319/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle10g New Feature:CRS(Cluster Ready Services) (zt)Oracle
- CRS-4535: Cannot communicate with Cluster Ready Services
- Oracle10g CRS cluster 主要程式Oracle
- Oracle10g RAC管理 - CRSOracle
- oracle10g crs 改IPOracle
- CRS-4124: Oracle High Availability Services startup failed. CRS-4000OracleAI
- shut down and start crs for Oracle10GOracle
- CRS-0184:CRS-4639: Could not contact Oracle High Availability ServicesOracleAI
- has、ohasd、crs、cluster區別和聯絡
- Oracle Cluster Software相關術語:CRS CSS EVMOracleCSS
- crsctl start/stop crs and crsctl start/stop cluster 區別
- CRS-4639: Could not contact Oracle High Availability ServicesOracleAI
- 如何查詢Oracle10g RAC CRS版本Oracle
- dbms_service與dba_services_v$services學習筆記(oracle10g rac)筆記Oracle
- CRS-4124: Oracle High Availability Services startup failed.OracleAI
- CRS-2409:The clock on host is not synchronous with the mean cluster time
- rac中 crsctl start/stop crs and crsctl start/stop cluster 區別
- Failure 1 contacting Cluster Synchronization Services daemon_1466098.1AI
- C++BUILDER 6 新特色 (轉)C++UI
- stop/start The CRS, OHAS, ASM, RDBMS & ACFS Services on RAC 11.2_1355977.1ASM
- Oracle10g下手工重建CRS和RAC資料庫Oracle資料庫
- CRS-4639: Could not contact Oracle High Availability Services解決方案集OracleAI
- 安裝Oracle cluster報錯 Failure at final check of Oracle CRS Stack 10OracleAI
- Oracle10g 監聽註冊問題 - Ready及Unknown狀態Oracle
- oracle10g crs 服務狀態offline, unknownOracle
- Weblogic中如何增加cluster並加入新cluster成員Web
- hp-ux: CRS not Start on One of Nodes in a Two Node Cluster With HP MC_967090.1UX
- oracle10g crs application 單獨關閉開啟服務OracleAPP
- Remove a node from Oracle10g RAC cluster and add back for IBM AIXREMOracleIBMAI
- Oracle10gR2新特色:Generate ASH ReportsOracle
- DataGridView新特色(vs2005beta1)View
- VC6中工具條的新特色 (轉)
- oracle10g rac(rhel)_srvctl star執行出錯_crs_stop出錯Oracle
- Oracle10g RAC 怎麼Listener. CRS , Instance ..... 都是自動開啟 ?Oracle
- .NET8依賴注入新特性Keyed services依賴注入
- oracle 10g cluster 如何替換ocr 主檔案 (crs offline狀態)Oracle 10g
- oracle 10g cluster 如何替換ocr主檔案 (crs online狀態)Oracle 10g
- jQuery ready事件jQuery事件