Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Starting 9iAS using services only

Re: Starting 9iAS using services only

From: <nikhilmistry_at_yahoo.com>
Date: 11 Dec 2004 07:11:29 -0800
Message-ID: <1102777889.096826.232060@c13g2000cwb.googlegroups.com>


· Place the script "oracle" in the directory /sbin/init.d with file permissions of 755.

·	Create the following links
o	/sbin/rc3.d/K999oracle -> /sbin/init.d/oracle
o	/sbin/rc3.d/S999oracle -> /sbin/init.d/oracle

Script

#!/bin/sh
# set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_Home
#

ORACLE_HOME=/opt/oracle/product/10g_infra ORA_OWNER=oracle

if [ ! -f $ORACLE_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi

case "$1" in
start)

# start the oracle databases:
# the following command assumes that the oracle login
# will not prompt the user for any values
export ORACLE_HOME=/opt/oracle/product/10g_infra
/usr/bin/su - $ORA_OWNER -c "export

ORACLE_HOME=$ORACLE_HOME;$ORACLE_HOME/bin/lsnrctl start"
/usr/bin/su - $ORA_OWNER -c $ORACLE_HOME/bin/dbstart
/usr/bin/su - $ORA_OWNER -c "$ORACLE_HOME/opmn/bin/opmnctl
startall"
/usr/bin/su - $ORA_OWNER -c "$ORACLE_HOME/bin/emctl start em"
export ORACLE_HOME=/opt/oracle/product/10g_app
/usr/bin/su - $ORA_OWNER -c "$ORACLE_HOME/opmn/bin/opmnctl
startall"
/usr/bin/su - $ORA_OWNER -c "$ORACLE_HOME/bin/emctl start em"
echo "OK"
;;
stop)
#stop the oracle databases:
this is my script but you can adjust it for your use Received on Sat Dec 11 2004 - 09:11:29 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US