ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle 11gR2 asm实例 不能启动处理方法

oracle 11gR2 asm实例 不能启动处理方法

原创 Linux操作系统 作者:haozg_oracle 时间:2012-03-12 14:14:18 0 删除 编辑

公司由于断电导致oracle 11g R2 asm(aix 6.1) 数据库不能启动,处理过程如下:

aix1@grid[/oracle11/app/grid/11.2.0]$sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Mon Mar 12 14:22:13 2012

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

Connected to an idle instance.

SQL> startup
ORA-01078: failure in processing system parameters
ORA-29701: unable to connect to Cluster Synchronization Service

检测 css 进程:

aix1@grid[/home/grid]$crsctl check css
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Check failed, or completed with errors.
aix1@grid[/home/grid]$ps -ef|grep cssd
    grid 135192 225738   0 12:08:39  pts/2  0:00 grep cssd

检测has进程:

aix1@grid[/home/grid]$crsctl check has
CRS-4639: Could not contact Oracle High Availability Services

说明ohasd进程没有启动,启动ohasd进程:

# ./ohasd start
Starting ohasd:
CRS-4123: Oracle High Availability Services has been started.

检查:

aix1@grid[/oracle11/app/grid/11.2.0]$ crsctl stat resource -t -init
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA2.dg
               ONLINE  OFFLINE      aix1                                        
ora.LISTENER.lsnr
               ONLINE  OFFLINE      aix1                                        
ora.asm
               ONLINE  OFFLINE      aix1                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
      1        ONLINE  OFFLINE                                                  
ora.db11.db
      1        ONLINE  OFFLINE                                                  
ora.diskmon
      1        ONLINE  OFFLINE 

启动数据库:

 

aix1@grid[/oracle11/app/grid/11.2.0]$su - oracle11
oracle11's Password:
aix1@oracle11[/dsg]$sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Mon Mar 12 14:34:34 2012

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

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 1.3696E+10 bytes
Fixed Size                  2219808 bytes
Variable Size            6878658784 bytes
Database Buffers         6777995264 bytes
Redo Buffers               37015552 bytes
Database mounted.
Database opened.
SQL>

ok 数据库启动。

接下就是要探讨为什么ohasd进程为什么在开机的时候没有自动启动?

原因是:安装grid 软件的lv不是自动挂载的。所以服务器在启动的时候是不能自动挂载grid所在lv,也就不能自动启动ohasd了。如果手动挂载lv,那么必须手动启动ohasd服务。

修改lv为自动挂载:

System Storage Management (Physical & Logical Storage)
-->File Systems
--->Add / Change / Show / Delete File Systems
-->Enhanced Journaled File Systems
-->Change / Show Characteristics of an Enhanced Journaled File System

选择要自动挂载点
Mount AUTOMATICALLY at system restart?              yes         ------由no改为yes即可

数据刚安装完成的时候,has进程是自动启动,用下面的命令设置自动启动;

aix1@grid[/home/grid]$crsctl enable has  --启用自动启动

aix1@grid[/home/grid]$crsctl disable has --关闭自动启动

手动启动 has:

crsctl start  has

crsctl stop has

查看has 的状态:

crsctl check has

ohasd 资源启动后,才能启动crs资源。

在11gR2中, ohasd包含了crsd、ocssd、evmd.

ohasd负责启动lower stack的集群资源, crsd负责启动上层的集群资源.

 

 

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

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

注册时间:2009-12-22

  • 博文量
    37
  • 访问量
    155727