溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

怎樣進(jìn)行ASM安裝

發(fā)布時間:2021-11-09 10:09:37 來源:億速云 閱讀:146 作者:柒染 欄目:建站服務(wù)器

本篇文章為大家展示了怎樣進(jìn)行ASM安裝,內(nèi)容簡明扼要并且容易理解,絕對能使你眼前一亮,通過這篇文章的詳細(xì)介紹希望你能有所收獲。

ASM學(xué)習(xí)筆記_ASM安裝

Refer to the <<Oracle Database Installation Guide>> for your operating system for details on installing ASM.

1 ASM’s installtion can be done by DBCA.

2 如果是非RAC環(huán)境下使用ASM, 需要在安裝ASM之前用腳本$ORACLE_HOME/bin/localconfig add 啟動CSS服務(wù)

CSS服務(wù)在單實例下的作用還有待確認(rèn)?

只需啟動CSS服務(wù),用來實現(xiàn)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


Oracle@Z810:/opt/oracle/product/10gr2/bin/crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM

Oracle@Z810:/opt/oracle/product/10gr2/bin/crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly


Oracle@Z810:/opt/oracle/product/10gr2/bin/crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM

啟動不了

在嘗試了n次后終于成功了
可能的問題

1 由于在同一個節(jié)點上安裝了兩個Oracl版本:9i,10g.有兩個ORACLE_HOME,造成混亂
在有多個ORACLE_HOME的環(huán)境下,似乎可以通過/opt/oracle/product/10gr2/bin/localconfig reset來設(shè)置環(huán)境變量
/opt/oracle/product/10gr2/bin/localconfig  $ORACLE_HOME
是這樣嗎? 嘗試幾次都未能成功


2 每嘗試一次前應(yīng)先將LISTENER與各個后臺進(jìn)程建立連接的IPC Socket臨時文件刪除
rm -f /var/tmp/.oracle/*
rm -f /tmp/.oracle/*
rm -f /usr/tmp/.oracle/*

3 啟動監(jiān)聽

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 oracle@Z810:/var/tmp/.oracle> /opt/oracle/product/10gr2/bin/crsctl check crs

CSS appears healthy
Cannot communicate with CRS
Cannot communicate with EVM

上述內(nèi)容就是怎樣進(jìn)行ASM安裝,你們學(xué)到知識或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識儲備,歡迎關(guān)注億速云行業(yè)資訊頻道。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

asm
AI