启动ASM 实例报错

在一个10G的环境下,启动 ASM INSTANCE 报错:
$ export ORACLE_SID=+ASM
$ sqlplus "/ as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Feb 25 22:33:51 2009

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

Connected to an idle instance.

SQL> startup
ORA-29701: unable to connect to Cluster Manager
SQL> select * from v$instance;
select * from v$instance
*
ERROR at line 1:
ORA-01034: ORACLE not available

第一次遇到unable to connect to Cluster Manager 这样的错误,有点不知所措的。
后来翻阅了文档,报错是因为没有启动CSS进程造成的。 原来是需要启动css 后台进程。
下面是启动的步骤:
1) 用root用户登录;
2) 确认 $ORACLE_HOME/bin 在环境变量PATH中;
3) 输入下面的命令:
#  localconfig add

如果使用localconfig add 有报错,那尝试使用:[B]localconfig reset[/B]
# ./localconfig reset
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
Configuration for local CSS has been initialized

Adding to inittab
Startup will be queued to init within 30 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.
        h3cap61
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M)

./localconfig 会在inittab中加入一个项内容,让进程在服务器启动后会自动运行:
h1:2:respawn:/etc/init.cssd run >/dev/null 2>&1 检查进程是否在运行,可以通过ps命令来检查:
# ps -ef|grep css
    root 122976 102866   0 22:53:30  pts/0  0:00 grep css
  oracle 303132      1   0 22:44:43      -  0:00 /oracle/product/10g/bin/ocssd.bin

或者通过oracle 用户的crsctl  命令来检查。

$       crsctl check cssd
Failure 1 contacting CSS daemon (这样的反馈为css进程没有运行)
$ crsctl check cssd
CSS appears healthy (css进程已经在运行)

css进程已经在运行,这时可以起到ASM实例:
$ ORACLE_SID=+ASM
$ sqlplus "/ as  sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Feb 25 22:58:10 2009

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

Connected to an idle instance.

SQL> startup
ASM instance started

Total System Global Area  130023424 bytes
Fixed Size                  2019136 bytes
Variable Size             102838464 bytes
ASM Cache                  25165824 bytes
ASM diskgroups mounted

 

ADMINISTRATOR MUNUAL关于CSS进程的说明:
[Size=11]CSS requirement:
The Cluster Synchronization Services (CSS) daemon is required to enable synchronization between ASM and its client database instances. The CSS daemon is normally started (and configured to start upon reboot) when you use Database Configuration Assistant (DBCA) to create your database. If you did not use DBCA to create the database, you must ensure that the CSS daemon is running before you start
the ASM instance.
[/Size]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/40239/viewspace-557980/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/40239/viewspace-557980/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值