Database Administration (MOSC)

MOSC Banner

dbora don't work where rebooting Solaris 10 X86_64

edited Jul 22, 2009 11:37PM in Database Administration (MOSC) 7 commentsAnswered
 I created standard dbora script in /etc/init.d
bash-3.00# cat /etc/init.d/dbora
#! /bin/sh
#
# Change the value of ORACLE_HOME to specify the correct Oracle home
# directory for your installation.
ORACLE_HOME=/oracle/product/10.2
#
# Change the value of ORACLE to the login name of the
# oracle owner at your site.
#
ORACLE=oracle
PATH=${PATH}:$ORACLE_HOME/bin
PLATFORM=`uname`
export ORACLE_HOME PATH
#
#
case $1 in
'start')
       if [ -f /etc/init.d/oracleasm ] ; then
          /etc/init.d/oracleasm scandisks
       fi
       su - ${ORACLE} -c "$ORACLE_HOME/bin/dbstart > /dev/null 2>&1  &"
       ;;
'stop')
       su - ${ORACLE} -c "$ORACLE_HOME/bin/dbshut  > /dev/null 2>&1  &"

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center