ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 启动ASM 实例报错

启动ASM 实例报错

原创 Linux操作系统 作者:kewin 时间:2009-02-26 22:31:29 0 删除 编辑

在一个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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-03-10

  • 博文量
    125
  • 访问量
    571575