Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Script will not start at boot from /etc/rc3.d

807557Apr 22 2010 — edited Apr 23 2010
For some odd reason I can't get this script to run at boot. It will run if I kick it off manually. Does anyone have any ideas?
[root@XXXXXXXX: ~]
# cd /var/tmp
[root@XXXXXXXX: /var/tmp]
# ls -la | grep test
[root@XXXXXXXX: /var/tmp]
# cd /etc/rc3.d
[root@XXXXXXXX: /etc/rc3.d]
# ls -la | grep S99or
lrwxrwxrwx   1 root     root          30 Apr 20 15:50 S99oracle_startup -> /etc/init.d/oracle_startup.ksh
[root@XXXXXXXX: /etc/rc3.d]
# ls -la /etc/init.d/oracle_startup.ksh
-rwxr--r--   1 root     root         535 Apr 21 15:01 /etc/init.d/oracle_startup.ksh
[root@XXXXXXXX: /etc/rc3.d]
# cat S99oracle_startup
#!/usr/bin/ksh

export ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1

export DATE=`date`
case "$1" in

'start')
        echo $DATE "Starting Oracle RDBMS and Listener ..." >> /var/opt/oracle/oracle_startup.log
        touch /var/tmp/testing123
        su - oracle -c '$ORACLE_HOME/bin/dbstart $ORACLE_HOME'
;;
'stop')
        echo $DATE "Stopping Oracle RDBMS and Listener..."   >> /var/opt/oracle/oracle_startup.log
        su - oracle -c '$ORACLE_HOME/bin/dbshut $ORACLE_HOME'
;;
*)
        echo "Usage: $0 { start | stop }"
;;

esac

[root@XXXXXXXX: /etc/rc3.d]
#
[root@XXXXXXXX: /etc/rc3.d]
# ./S99oracle_startup start
Wed Apr 21 16:07:20 CDT 2010
Processing ASM instance "+ASM": log file /oracle/app/oracle/product/10.2.0/db_1/startup.log
[root@XXXXXXXX: /etc/rc3.d]
# cd /var/tmp
[root@XXXXXXXX: /var/tmp]
# ls -la | grep test
-rw-r--r--   1 root     root           0 Apr 21 16:07 testing123
[root@XXXXXXXX: /var/tmp]
#
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2010
Added on Apr 22 2010
3 comments
390 views