ASM學習筆記_ASM安裝

gdutllf2006發表於2010-05-17

ASM學習筆記_ASM安裝

Refer to the <> for your operating system for details on installing ASM.


1 ASM’s installtion can be done by DBCA.

2 如果是非RAC環境下使用ASM, 需要在安裝ASM之前用指令碼$ORACLE_HOME/bin/localconfig add 啟動CSS服務

CSS服務在單例項下的作用還有待確認?

只需啟動CSS服務,用來實現ASM例項與RDBMS例項之間的通訊
The Cluster Synchronization Services (CSS) daemon is required to enable synchronization between ASM and its client

database instances.


Oracle> su - root
password: xxxx

# /opt/oracle/product/10gr2/bin/localconfig delete
Stopping CSSD.
Unable to communicate with the CSS daemon.
Shutdown has begun. The daemons should exit soon.

#/opt/oracle/product/10gr2/bin/localconfig add

/etc/oracle does not exist. Creating it now.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized

Adding to inittab
Startup will be queued to init within 90 seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within 600 seconds.

...........

Giving up: Oracle CSS stack appears NOT to be running.
Oracle CSS service would not start as installed
Automatic Storage Management(ASM) cannot be used until Oracle CSS service is starte

啟動不了

檢視/opt/oracle/product/10gr2/log/z810/client/css.log
[ CSSCLNT][2550264832]clsssInitNative: connect failed, rc 9

執行DBCA過程中報如下錯誤
Oracle> $ORACLE_HOME/bin/dbca

報錯:ORA-29701:Unable to connect to Cluster Manager


單例項下如何啟動CRS,CSS,EVM
/etc/init.d/start crs
/etc/init.d/start css
/etc/init.d/start evm


check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM

start crs
Attempting to start CRS stack
The CRS stack will be started shortly


check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM

啟動不了

在嘗試了n次後終於成功了
可能的問題

1 由於在同一個節點上安裝了兩個Oracl版本:9i,10g.有兩個ORACLE_HOME,造成混亂
在有多個ORACLE_HOME的環境下,似乎可以透過/opt/oracle/product/10gr2/bin/localconfig reset來設定環境變數
/opt/oracle/product/10gr2/bin/localconfig  $ORACLE_HOME
是這樣嗎? 嘗試幾次都未能成功


2 每嘗試一次前應先將LISTENER與各個後臺程式建立連線的IPC Socket臨時檔案刪除
rm -f /var/tmp/.oracle/*
rm -f /tmp/.oracle/*
rm -f /usr/tmp/.oracle/*

3 啟動監聽

4 /opt/oracle/product/10gr2/bin/localconfig add
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized

Adding to inittab
Startup will be queued to init within 90 seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        z810
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M)

5 > /opt/oracle/product/10gr2/bin/crsctl check crs

CSS appears healthy
Cannot communicate with CRS
Cannot communicate with EVM


6 成功應用DBCA建立ASM例項

 

 

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

相關文章