灌溉梦想,记录脚步
« »
2010 年 02 月 24 日技术合集

linux 中oracle 10g rac 关闭crs开机自启动

linux 中在没有对init.crs作修改的时候,在开机时总是会自动把的cluster 软件和一起和系统起来.数据库raclinux

另外,也可以通过crs-stat -t查看,把没有启动的服务手工启动

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[oracle@rac1 ~]$ crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora.....CRM.cs application    OFFLINE   OFFLINE              
ora....db1.srv application    OFFLINE   OFFLINE              
ora.devdb.db   application    ONLINE    ONLINE    rac1       
ora....b1.inst application    ONLINE    ONLINE    rac1       
ora....b2.inst application    ONLINE    OFFLINE              
ora....SM1.asm application    ONLINE    ONLINE    rac1       
ora....C1.lsnr application    ONLINE    ONLINE    rac1       
ora.rac1.gsd   application    ONLINE    ONLINE    rac1       
ora.rac1.ons   application    ONLINE    ONLINE    rac1       
ora.rac1.vip   application    ONLINE    ONLINE    rac1       
ora....SM2.asm application    ONLINE    OFFLINE              
ora....C2.lsnr application    ONLINE    OFFLINE              
ora.rac2.gsd   application    ONLINE    OFFLINE              
ora.rac2.ons   application    ONLINE    OFFLINE              
ora.rac2.vip   application    ONLINE    ONLINE    rac1


禁止Clusterware在系统重启后自动启动:

1
$ /etc/init.d/init.crs disable

在系统正常启动后:
让Clusterware在系统重启后自动启动:

1
$ /etc/init.d/init.crs enable

可以用以下方动启动crs:

1
2
3
4
5
6
7
8
9
$/etc/init.d/init.cssd start
$/etc/init.d/init.crs start
rac1-> ./init.crs start
 
Startup will be queued to init within 90 seconds.
 
rac1-> ./init.cssd start
 
Startup will be queued to init within 90 seconds.

或:

1
$crsctl start crs

检查crs状态:

1
2
3
4
5
6
7
8
9
$crsctl check crs
rac1-> crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
rac2-> crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

启动数据库

1
2
3
4
5
6
$srvctl start nodeapps -n rac1
$srvctl start nodeapps -n rac2
$srvctl start asm -n rac1
$srvctl start asm -n rac2
$srvctl start instance -d racdb -i racdb1
$srvctl start instance -d racdb -i racdb2

日志信息 »

该日志于2010-02-24 06:06由 kevin 发表在技术合集分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

没有评论

发表评论 »