oracle asm自启动,自家用

不使用做成服务的形式,直接在/etc/rc.local 添加一行脚本:su - oracle -c"/home/oracle/product/10.2.0/db_1/bin/dbstart" ,修改dbstart的ORACLE_HOME_LISTNER为为$ORACLE_HOME。

重启系统,oracle实例并未启动,查看启动日志发现:

Oct 17 21:05:23 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:05:23 simpleit logger: ASM instance +ASM. Wait 1.
Oct 17 21:05:44 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:05:44 simpleit logger: ASM instance +ASM. Wait 2.
Oct 17 21:06:06 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:06:06 simpleit logger: ASM instance +ASM. Wait 3.
Oct 17 21:06:28 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:06:28 simpleit logger: ASM instance +ASM. Wait 4.
Oct 17 21:06:49 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:06:49 simpleit logger: ASM instance +ASM. Wait 5.
Oct 17 21:07:11 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:07:11 simpleit logger: ASM instance +ASM. Wait 6.
Oct 17 21:07:33 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:07:33 simpleit logger: ASM instance +ASM. Wait 7.
Oct 17 21:07:55 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:07:55 simpleit logger: ASM instance +ASM. Wait 8.
Oct 17 21:08:16 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:08:16 simpleit logger: ASM instance +ASM. Wait 9.
Oct 17 21:08:36 simpleit ntpd[2847]: synchronized to LOCAL(0), stratum 10
Oct 17 21:08:36 simpleit ntpd[2847]: kernel time sync enabled 0001
Oct 17 21:08:38 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:08:38 simpleit logger: ASM instance +ASM. Wait 10.
Oct 17 21:09:00 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:09:00 simpleit logger: ASM instance +ASM. Wait 11.
Oct 17 21:09:21 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:09:21 simpleit logger: ASM instance +ASM. Wait 12.
Oct 17 21:09:40 simpleit ntpd[2847]: synchronized to 218.75.4.130, stratum 2
Oct 17 21:09:43 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:09:43 simpleit logger: ASM instance +ASM. Wait 13.
Oct 17 21:10:05 simpleit logger: Waiting for Oracle CSS service to be available before starting
Oct 17 21:10:05 simpleit logger: ASM instance +ASM. Wait 14.
Oct 17 21:10:27 simpleit logger: Timed out waiting to start ASM instance +ASM
Oct 17 21:10:27 simpleit logger: CSS service is NOT available.

oracle CSS service不可用,解决办法 :

编辑/etc/inittab

Specifically, the respawn line for the init.cssd process must fall between the wait for runlevel 2 and runlevel 3。

l2:2:wait:/etc/rc.d/rc 2
h1:35:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1 </dev/null
l3:3:wait:/etc/rc.d/rc 3

重启系统,asm与oracle 实例已经启动。





你可能感兴趣的:(oracle)