【Oracle RAC Database】Oracle Grid Infrastructure 启动流程与日志
原创
©著作权归作者所有:来自51CTO博客作者dbprofessional的原创作品,请联系作者获取转载授权,否则将追究法律责任
OS启动OHASD(Oracle High Availability Services)
init.ohasd.run被启动,该进程负责启动ohasd.bin守护进程
[root@node01 ~]# ps -ef | grep ohasd | grep -v grep
root 515 1 0 18:59 ? 00:00:00 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
root 1779 1 1 18:59 ? 00:00:06 /u01/app/11.2.0.4/grid/bin/ohasd.bin reboot
$ORACLE_HOME/log/node01/ohasd/ohasd.log
阶段一
OHASD会启动4个代理进程:oraagent,orarootagent,cssdagent,cssdmonitor
oraagent
[root@node01 ~]# ps -ef | grep oraagent | grep -v grep
grid 2070 1 0 18:59 ? 00:00:02 /u01/app/11.2.0.4/grid/bin/oraagent.bin
grid 2623 1 0 19:01 ? 00:00:02 /u01/app/11.2.0.4/grid/bin/oraagent.bin
oracle 2957 1 0 19:01 ? 00:00:02 /u01/app/11.2.0.4/grid/bin/oraagent.bin
$ORACLE_HOME/log/node01/agent/ohasd/oraagent_grid/oraagent_grid.log
orarootagent
[root@node01 ~]# ps -ef | grep orarootagent | grep -v grep
root 2105 1 2 19:00 ? 00:00:10 /u01/app/11.2.0.4/grid/bin/orarootagent.bin
root 2643 1 1 19:01 ? 00:00:08 /u01/app/11.2.0.4/grid/bin/orarootagent.bin
$ORACLE_HOME/log/node01/agent/ohasd/orarootagent_root/orarootagent_root.log
cssdagent
[root@node01 ~]# ps -ef | grep cssdagent | grep -v grep
root 2153 1 0 19:00 ? 00:00:00 /u01/app/11.2.0.4/grid/bin/cssdagent
$ORACLE_HOME/log/node01/agent/ohasd/oracssdagent_root/oracssdagent_root.log
cssdmonitor
[root@node01 ~]# ps -ef | grep cssdmonitor | grep -v grep
root 2134 1 0 19:00 ? 00:00:01 /u01/app/11.2.0.4/grid/bin/cssdmonitor
$ORACLE_HOME/log/node01/agent/ohasd/oracssdmonitor_root/oracssdmonitor_root.log
阶段二
OHASD启动的4个代理进程会启动集群的初始化资源
oraagent代理进程管理的集群初始化资源
ora.mdnsd
[root@node01 ~]$ ps -ef | grep mdnsd | grep -v grep
grid 2081 1 0 18:59 ? 00:00:00 /u01/app/11.2.0.4/grid/bin/mdnsd.bin
$ORACLE_HOME/log/node01/mdnsd/mdnsd.log
ora.gpnpd
[root@node01 ~]# ps -ef | grep gpnpd | grep -v grep
grid 2093 1 0 18:59 ? 00:00:01 /u01/app/11.2.0.4/grid/bin/gpnpd.bin
$ORACLE_HOME/log/node01/gpnpd/gpnpd.log
ora.gipcd
[root@node01 ~]# ps -ef | grep gipcd | grep -v grep
grid 2109 1 1 19:00 ? 00:00:09 /u01/app/11.2.0.4/grid/bin/gipcd.bin
$ORACLE_HOME/log/node01/gipcd/gipcd.log
ora.evmd
[root@node01 ~]$ ps -ef | grep evmd | grep -v grep
grid 2348 1 0 19:00 ? 00:00:03 /u01/app/11.2.0.4/grid/bin/evmd.bin
$ORACLE_HOME/log/node01//evmd/evmd.log
ora.asm
$ORACLE_BASE/diag/asm/+asm/+ASM1/trace/alert_+ASM1.log
orarootagent代理进程管理的集群初始化资源
ora.crsd
[root@node01 ~]$ ps -ef | grep crsd | grep -v grep
root 2488 1 1 19:01 ? 00:00:12 /u01/app/11.2.0.4/grid/bin/crsd.bin reboot
$ORACLE_HOME/log/node01/crsd/crsd.log
ora.ctssd
[root@node01 ~]$ ps -ef | grep octssd | grep -v grep
root 2323 1 0 19:00 ? 00:00:03 /u01/app/11.2.0.4/grid/bin/octssd.bin reboot
$ORACLE_HOME/log/node01/ctssd/octssd.log
ora.crf
[root@node01 ~]$ ps -ef | grep osysmond | grep -v grep
root 2120 1 2 19:00 ? 00:00:24 /u01/app/11.2.0.4/grid/bin/osysmond.bin
$ORACLE_HOME/log/node01/crfmond/crfmond.log
ora.cluster_interconnect.haip
cssdagent代理进程管理的集群初始化资源
ora.cssd
[root@node01 ~]$ ps -ef | grep ocssd | grep -v grep
grid 2165 1 0 19:00 ? 00:00:06 /u01/app/11.2.0.4/grid/bin/ocssd.bin
$ORACLE_HOME/log/node01/cssd/ocssd.log
cssdmonitor代理进程管理的集群初始化资源
ora.cssdmonitor
阶段三
CRSD会启动4个代理进程:orarootagent,oraagent_grid,oraagent_oracle,scriptagent
orarootagent
[root@node01 ~]$ ps -ef | grep orarootagent | grep -v grep
root 2105 1 2 19:00 ? 00:00:21 /u01/app/11.2.0.4/grid/bin/orarootagent.bin
root 2643 1 1 19:01 ? 00:00:17 /u01/app/11.2.0.4/grid/bin/orarootagent.bin
$ORACLE_HOME/log/node01/agent/crsd/orarootagent_root/orarootagent_root.log
oraagent
[root@node01 ~]$ ps -ef | grep oraagent | grep -v grep
grid 2070 1 0 18:59 ? 00:00:04 /u01/app/11.2.0.4/grid/bin/oraagent.bin
grid 2623 1 0 19:01 ? 00:00:04 /u01/app/11.2.0.4/grid/bin/oraagent.bin
oracle 2957 1 0 19:01 ? 00:00:05 /u01/app/11.2.0.4/grid/bin/oraagent.bin
$ORACLE_HOME/log/node01/agent/crsd/oraagent_grid/oraagent_grid.log
$ORACLE_HOME/log/node01/agent/crsd/oraagent_oracle/oraagent_oracle.log
[root@node01 ~]# ps -ef | grep scriptagent | grep -v grep
grid 2774 1 0 19:01 ? 00:00:00 /u01/app/11.2.0.4/grid/bin/scriptagent.bin
$ORACLE_HOME/log/node01/agent/crsd/scriptagent_grid/scriptagent_grid.log
阶段四
CRSD启动的4个代理进程会启动CRSD管理的应用程序资源
orarootagent代理进程管理的应用程序资源
ora.net1.network
ora.node01.vip
ora.scan1.vip
ora.scan2.vip
ora.scan3.vip
oraagent_grid代理进程管理的应用程序资源
ora.asm
ora.DATA.dg
ora.FRA.dg
ora.OCR_VF.dg
ora.LISTENER.lsnr
$ORACLE_BASE/diag/tnslsnr/node01/listener/trace/listener.log
ora.LISTENER_SCAN1.lsnr
ora.LISTENER_SCAN2.lsnr
ora.LISTENER_SCAN3.lsnr
ora.ons
oraagent_oracle代理进程管理的应用程序资源
ora.core.db
$ORACLE_BASE/diag/rdbms/core/core1/trace/alert_core1.log
ora.core.soe.svc
scriptagent代理进程管理的应用程序资源
ora.cvu