内容摘要:--ons到底是个什么服务--主要用于中间件和数据库的相连---检查rac服务时,发现ons服务offline[grid@rac1 bin]$ ./crs_stat -v -tName Type R/RA F/FT Target ...
--ons到底是个什么服务
--主要用于中间件和数据库的相连
---检查rac服务时,发现ons服务offline
[grid@rac1 bin]$ ./crs_stat -v -t
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora.DATA1.dg ora....up.type 0/5 0/ ONLINE ONLINE rac1
ora.DATA2.dg ora....up.type 0/5 0/ ONLINE ONLINE rac1
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE rac1
ora....N1.lsnr ora....er.type 0/5 0/0 ONLINE ONLINE rac1
ora.asm ora.asm.type 0/5 0/ ONLINE ONLINE rac1
ora.cvu ora.cvu.type 0/5 0/0 ONLINE ONLINE rac1
ora.gsd ora.gsd.type 0/5 0/ OFFLINE OFFLINE
ora.solgle.db ora....se.type 0/2 0/1 ONLINE ONLINE rac1
ora....network ora....rk.type 0/5 0/ ONLINE ONLINE rac1
ora.oc4j ora.oc4j.type 0/1 0/2 ONLINE ONLINE rac1
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 OFFLINE OFFLINE
ora.rac1.ons application 3/3 0/0 ONLINE OFFLINE
ora.rac1.vip ora....t1.type 0/0 0/0 ONLINE ONLINE rac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 OFFLINE OFFLINE
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip ora....t1.type 0/0 0/0 ONLINE ONLINE rac2
ora.scan1.vip ora....ip.type 0/0 0/0 ONLINE ONLINE rac1
[grid@rac1 bin]$ ./onsctl reload
onsctl reload: reconfiguring ons...
[grid@rac1 bin]$ ./onsctl ping
ons is running ...
---查看系统ons服务
[grid@rac1 bin]$ ps -ef | grep ons
root 3632 1 0 Dec22 ? 00:00:00 /usr/sbin/console-kit-daemon --no-daemon
grid 4032 1 0 Dec22 ? 00:00:00 /u01/app/grid/11.2.0/opmn/bin/ons -d
grid 4038 4032 0 Dec22 ? 00:01:02 /u01/app/grid/11.2.0/opmn/bin/ons -d
grid 55865 55755 0 07:48 pts/0 00:00:00 grep ons
----手动启动ons服务
[grid@rac1 bin]$ ./onsctl start
CRS-2672: Attempting to start 'ora.ons' on 'rac1'
CRS-5016: Process "/u01/app/grid/11.2.0/opmn/bin/onsctli" spawned by agent "/u01/app/grid/11.2.0/bin/oraagent.bin" for action "start" failed: details at "(:CLSN00010:)" in "/u01/app/grid/11.2.0/log/rac1/agent/crsd/oraagent_grid/oraagent_grid.log" ;
CRS-2676: Start of 'ora.ons' on 'rac1' succeeded
[grid@rac1 bin]$
------ons服务达到恢复
[grid@rac1 bin]$ ./crs_stat -v -t
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora.DATA1.dg ora....up.type 0/5 0/ ONLINE ONLINE rac1
ora.DATA2.dg ora....up.type 0/5 0/ ONLINE ONLINE rac1
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE rac1
ora....N1.lsnr ora....er.type 0/5 0/0 ONLINE ONLINE rac1
ora.asm ora.asm.type 0/5 0/ ONLINE ONLINE rac1
ora.cvu ora.cvu.type 0/5 0/0 ONLINE ONLINE rac1
ora.gsd ora.gsd.type 0/5 0/ OFFLINE OFFLINE
ora.solgle.db ora....se.type 0/2 0/1 ONLINE ONLINE rac1
ora....network ora....rk.type 0/5 0/ ONLINE ONLINE rac1
ora.oc4j ora.oc4j.type 0/1 0/2 ONLINE ONLINE rac1
ora.ons ora.ons.type 0/3 0/ ONLINE ONLINE rac1
ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
ora....C1.lsnr application 0/5 0/0 ONLINE ONLINE rac1
ora.rac1.gsd application 0/5 0/0 OFFLINE OFFLINE
ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
ora.rac1.vip ora....t1.type 0/0 0/0 ONLINE ONLINE rac1
ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
ora....C2.lsnr application 0/5 0/0 ONLINE ONLINE rac2
ora.rac2.gsd application 0/5 0/0 OFFLINE OFFLINE
ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
ora.rac2.vip ora....t1.type 0/0 0/0 ONLINE ONLINE rac2
ora.scan1.vip ora....ip.type 0/0 0/0 ONLINE ONLINE rac1
[grid@rac1 bin]$