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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值