|
-
in /etc/init.d are the dbora-file:
---------------------------------------------------------------------
#!/usr/bin/sh
#
# chkconfig: 345 50 49
# description: starts the oracle dabase deamons
#
echo "Oracle 9i auto start/stop"
case "$1" in
'start')
echo "Starting Oracle9i: "
su - oracle -c /oracle/OraHome1/bin/dbstart
echo "Starting the Listener for 9i: "
su - oracle -c "/oracle/OraHome1/bin/lsnrctl start"
touch /var/lock/subsys/oracle9i
echo
;;
'stop')
echo "Shutting Oracle9i: "
su - oracle -c /oracle/OraHome1/bin/dbshut
echo "Shutting down Listener for 9i: "
su - oracle -c "/oracle/OraHome1/bin/lsnrctl stop"
rm -f /var/lock/subsys/oracle9i
echo
;;
'restart')
echo -n "Restarting Oracle9i: "
$0 stop
$0 start
echo
;;
*)
echo "Usage: oracle9i {start | stop | restart }"
exit 1
esac
exit 0
--------------------------------------------------------------------
and in /etc/rc2.d are a link S95oracle -> /etc/init.d/dbora
and in /etc/rc0.d are a link K10oracle -> /etc/init.d/dbora
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|