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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Solaris RC Script Output

Re: Solaris RC Script Output

From: Suzy Vordos <lvordos_at_qwest.com>
Date: Mon, 13 May 2002 08:23:30 -0800
Message-ID: <F001.0045F64A.20020513082330@fatcity.com>

Doubtful you'll find output, some is written to the console and in some cases to syslog. Instead, modify your startup script so it writes output to a logfile. Here's mine:

#!/sbin/sh
#
# /etc/init.d/oradb - Start/Stop the Oracle Databases and SQL/NET
listeners
#
PATH=/usr/bin:/usr/sbin ; export PATH
LOGFILE=/tmp/oraboot.log ; export LOGFILE

case $1 in

'start')

   echo "\n\n++ STARTUP: `date`" >> ${LOGFILE}    su - oracle -c "lsnrctl start LSNR01" 1>> ${LOGFILE} 2>&1 &    su - oracle -c "lsnrctl start LSNR02" 1>> ${LOGFILE} 2>&1 &    sleep 10
   su - oracle -c "dbstart" 1>> ${LOGFILE} 2>&1 & ;;
'stop'|'shut')

   echo "\n\n++ SHUTDOWN: `date`" > ${LOGFILE}    su - oracle -c "dbshut" 1>> ${LOGFILE} 2>&1 &    sleep 30
   su - oracle -c "lsnrctl stop LSNR01" 1>> ${LOGFILE} 2>&1 &    su - oracle -c "lsnrctl stop LSNR02" 1>> ${LOGFILE} 2>&1 & ;;

esac

Erik Williams wrote:
>
> Where can I find the output of the Solaris run control scripts? I am trying
> to debug a database startup problem and would like to view the output of the
> echo commands in these scripts.
>
> Thanks
> Erik
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Erik Williams
> INET: ewilliams_at_brownco.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Suzy Vordos
  INET: lvordos_at_qwest.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon May 13 2002 - 11:23:30 CDT

Original text of this message

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