Do not use the form of service, directly in/etc/rc. add a script for local: su-oracle-c "/home/oracle/product/10.2.0/db_1/bin/dbstart". Change ORACLE_HOME_LISTNER of dbstart to $ ORACLE_HOME.
Restart the system. The oracle instance is not started. Check the startup log and find that:
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 is unavailable. solution:
Edit/etc/inittab
Specifically, the respawn line for the init.css d 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.css d run>/dev/null 2> & 1 </dev/null
L3: 3: wait:/etc/rc. d/rc 3
Restart the system. The asm and oracle instances have been started.
From: Laughing Column