ASM与CSS集群同步服务

来源:互联网 发布:影视制作用什么软件 编辑:程序博客网 时间:2024/05/29 05:04

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.

原创粉丝点击