ASM與CSS集羣同步服務

CSS:Cluster Synchronization Service 集羣同步服務
要使用ASM,必須確保已經運行了CSS集羣同步服務,CSS負責ASM實例和數據庫實例之間的同步。


1:查看CSS服務是否在運行:
Ora10gASM-> ps -ef | grep css
oracle 6030 4622 0 19:36 pts/1 00:00:00 grep css
Ora10gASM-> crsctl check cssd
Failure 1 contacting CSS daemon

如果CSS服務沒有啓動,則不能使用ASM。
Ora10gASM-> export ORACLE_SID=+ASM
Ora10gASM-> sqlplus "/ as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 29 19:36:49 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORA-29701: unable to connect to Cluster Manager
SQL> !oerr ora 29701
29701, 00000, "unable to connect to Cluster Manager"
// *Cause: Connect to CM failed or timed out.
// *Action: Verify that the CM was started. If the CM was not started,
// start it and then retry the database startup. If the CM died
// or is not responding, check the Oracle and CM trace files for
// errors.

SQL> exit
Disconnected

2:啓動CSS服務
切換到root
Ora10gASM-> su -
Password:

運行下面的命令啓動CSS服務
[root@Ora10gASM ~]# cd /oracle/product/10.2.0/db_1/bin
[root@Ora10gASM 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.
ora10gasm
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M)
[root@Ora10gASM bin]#
[root@Ora10gASM bin]# exit
logout

Ora10gASM-> crsctl check cssd
CSS appears healthy
Ora10gASM-> ps -ef | grep cssd
root 6762 1 0 19:44 ? 00:00:00 /bin/su -l oracle -c sh -c 'cd /oracle/product/10.2.0/db_1/log/ora10gasm/cssd; ulimit -c unlimited; exec /oracle/product/10.2.0/db_1/bin/ocssd '
oracle 6856 6762 1 19:45 ? 00:00:00 /oracle/product/10.2.0/db_1/bin/ocssd.bin
Ora10gASM-> sqlplus "/ as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 29 19:46:47 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ASM instance started

Total System Global Area 83886080 bytes
Fixed Size 1217836 bytes
Variable Size 57502420 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted
SQL>

3:刪除CSS服務
Ora10gASM-> su -
Password:
[root@Ora10gASM ~]# cd /oracle/product/10.2.0/db_1/bin
[root@Ora10gASM bin]# ./localconfig delete
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.

發佈了66 篇原創文章 · 獲贊 7 · 訪問量 29萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章