1.11gR2安装好后,oc4j和gsd服务器状态为offline.
[root@myrac2 ~]# uname -a
Linux myrac2 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@myrac2 ~]# crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora.DATA.dg ora....up.type 0/5 0/ ONLINE ONLINE myrac1
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE myrac1
ora....N1.lsnr ora....er.type 0/5 0/0 ONLINE ONLINE myrac2
ora.asm ora.asm.type 0/5 0/ ONLINE ONLINE myrac1
ora.boss.db ora....se.type 0/2 0/1 ONLINE ONLINE myrac1
ora.eons ora.eons.type 0/3 0/ ONLINE ONLINE myrac1
ora.gsd ora.gsd.type 0/5 0/ OFFLINE OFFLINE
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE myrac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE myrac1
ora.myrac1.gsd application 0/5 0/0 OFFLINE OFFLINE
ora.myrac1.ons application 0/3 0/0 ONLINE ONLINE myrac1
ora.myrac1.vip ora....t1.type 0/0 0/0 ONLINE ONLINE myrac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE myrac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE myrac2
ora.myrac2.gsd application 0/5 0/0 OFFLINE OFFLINE
ora.myrac2.ons application 0/3 0/0 ONLINE ONLINE myrac2
ora.myrac2.vip ora....t1.type 0/0 0/0 ONLINE ONLINE myrac2
ora....network ora....rk.type 0/5 0/ ONLINE ONLINE myrac1
ora.oc4j ora.oc4j.type 0/5 0/0 OFFLINE OFFLINE
ora.ons ora.ons.type 0/3 0/ ONLINE ONLINE myrac1
ora....ry.acfs ora....fs.type 0/5 0/ ONLINE ONLINE myrac1
ora.scan1.vip ora....ip.type 0/0 0/0 ONLINE ONLINE myrac2
那么,是我们的RAC配置有问题吗?这两类服务没有ONLINE会不会影响RAC数据库呢?我们又该如何启动这些服务呢?
其实,我们的RAC配置是没有问题的,也不会影响数据库正常运行。在默认情况下,其中的ora.gsd服务状态是OFFLINE状态,我们可不予理会,除非需要在11g Cluster上配置Oracle 9iR2的RAC。但凡以grid用户执行crs_stat -t命令,看到Target和State这两列的状态均为OFFLINE,我们均可忽略。但是,我们该如何使之启动呢?
2.启动ora.oc4j服务
[root@myrac2 ~]# srvctl enable oc4j
[root@myrac2 ~]# srvctl start oc4j
[root@myrac2 ~]# crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora.DATA.dg ora....up.type 0/5 0/ ONLINE ONLINE myrac1
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE myrac1
ora....N1.lsnr ora....er.type 0/5 0/0 ONLINE ONLINE myrac2
ora.asm ora.asm.type 0/5 0/ ONLINE ONLINE myrac1
ora.boss.db ora....se.type 0/2 0/1 ONLINE ONLINE myrac1
ora.eons ora.eons.type 0/3 0/ ONLINE ONLINE myrac1
ora.gsd ora.gsd.type 0/5 0/ OFFLINE OFFLINE
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE myrac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE myrac1
ora.myrac1.gsd application 0/5 0/0 OFFLINE OFFLINE
ora.myrac1.ons application 0/3 0/0 ONLINE ONLINE myrac1
ora.myrac1.vip ora....t1.type 0/0 0/0 ONLINE ONLINE myrac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE myrac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE myrac2
ora.myrac2.gsd application 0/5 0/0 OFFLINE OFFLINE
ora.myrac2.ons application 0/3 0/0 ONLINE ONLINE myrac2
ora.myrac2.vip ora....t1.type 0/0 0/0 ONLINE ONLINE myrac2
ora....network ora....rk.type 0/5 0/ ONLINE ONLINE myrac1
ora.oc4j ora.oc4j.type 0/5 0/0 ONLINE ONLINE myrac1
ora.ons ora.ons.type 0/3 0/ ONLINE ONLINE myrac1
ora....ry.acfs ora....fs.type 0/5 0/ ONLINE ONLINE myrac1
ora.scan1.vip ora....ip.type 0/0 0/0 ONLINE ONLINE myrac2
3.启动ora.gsd服务
[root@myrac2 ~]# srvctl status nodeapps
VIP myrac1_vip 已启用
VIP myrac1_vip 正在节点上运行: myrac1
VIP myrac2_vip 已启用
VIP myrac2_vip 正在节点上运行: myrac2
网络已启用
网络正在节点上运行: myrac1
网络正在节点上运行: myrac2
GSD 已禁用
GSD 没有运行的节点: myrac1
GSD 没有运行的节点: myrac2
ONS 已启用
ONS 守护程序正在节点上运行:myrac1
ONS 守护程序正在节点上运行:myrac2
eONS 已启用
eONS 守护程序正在节点上运行:myrac1
eONS 守护程序正在节点上运行:myrac2
[root@myrac2 ~]# srvctl enable nodeapps -g
[root@myrac2 ~]# srvctl start nodeapps
PRKO-2421 : 网络资源已在节点上启动: myrac1,myrac2
PRKO-2420 : VIP 已在节点上启动: myrac1,myrac2
PRKO-2420 : VIP 已在节点上启动: myrac1,myrac2
PRKO-2422 : ONS 已在节点上启动: myrac1,myrac2
PRKO-2423 : eONS 已在节点上启动: myrac1,myrac2
[root@myrac2 ~]# crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora.DATA.dg ora....up.type 0/5 0/ ONLINE ONLINE myrac1
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE myrac1
ora....N1.lsnr ora....er.type 0/5 0/0 ONLINE ONLINE myrac2
ora.asm ora.asm.type 0/5 0/ ONLINE ONLINE myrac1
ora.boss.db ora....se.type 0/2 0/1 ONLINE ONLINE myrac1
ora.eons ora.eons.type 0/3 0/ ONLINE ONLINE myrac1
ora.gsd ora.gsd.type 0/5 0/ ONLINE ONLINE myrac1
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE myrac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE myrac1
ora.myrac1.gsd application 0/5 0/0 ONLINE ONLINE myrac1
ora.myrac1.ons application 0/3 0/0 ONLINE ONLINE myrac1
ora.myrac1.vip ora....t1.type 0/0 0/0 ONLINE ONLINE myrac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE myrac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE myrac2
ora.myrac2.gsd application 0/5 0/0 ONLINE ONLINE myrac2
ora.myrac2.ons application 0/3 0/0 ONLINE ONLINE myrac2
ora.myrac2.vip ora....t1.type 0/0 0/0 ONLINE ONLINE myrac2
ora....network ora....rk.type 0/5 0/ ONLINE ONLINE myrac1
ora.oc4j ora.oc4j.type 0/5 0/0 ONLINE ONLINE myrac1
ora.ons ora.ons.type 0/3 0/ ONLINE ONLINE myrac1
ora....ry.acfs ora....fs.type 0/5 0/ ONLINE ONLINE myrac1
ora.scan1.vip ora....ip.type 0/0 0/0 ONLINE ONLINE myrac2
4.处理完毕,所以服务均已处于online状态.