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: Help starting DB on boot -Solaris

Re: Help starting DB on boot -Solaris

From: Gerard H. Pille <ghp_at_skynet.be>
Date: 2000/06/22
Message-ID: <8itlr1$ckf$1@news1.skynet.be>#1/1

[Posted and mailed]

Hallo,

There is no use for the ORACLE_SID setting, oracle won't know about it, it does not get through the "su".

So, all that is left is the standard environment of oracle: /etc/profile, $HOME/.profile ...

Can dbstart be found under those circumstances? If so, it will start the databases marked Y in /etc/oratab

Does this help?

Gerard
In article <3952448B.87F9EB52_at_oralinux.org>,

        Mark Wagner <mark_at_oralinux.org> writes:
>
> --------------D06689063F2C0BD7316328FB
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> I'm having troubles getting the db and listener started when the
> OS starts after a reboot... Please help.. have tried using the
> following dbora file in /etc/init.d
> ****** dbora *************
> #!/bin/sh
> ORACLE_SID=LEDB
> export ORACLE_SID
>
> case "$1" in
> 'start')
> #Start the Oracle Databases:
> /home/mark/unlock.ex
> su -l oracle -c /u01/app/oracle/product/8.1.5/bin/dbstart &
> su -l oracle -c "/u01/app/oracle/product/8.1.5/bin/lsnrctl start" &
> ;;
> 'stop')
> #Stop the Oracle Databases:
> su -l oracle -c /u01/app/oracle/product/8.1.5/bin/dbshut &
> ;;
> esac
>
> ****************** end dbora *******************
> It works in linux but not on solaris....
> Any ideas???
>
> Mark
>
> --
> -------------------------------------------------------------------
> Mark Wagner Phone - (650)298-9790 x181
> Database Engineer mark_at_leaseexchange.com
> * www.leaseexchange.com *
> * Dark Oracle of the Sysadmin Sith Darth telinit 6 *
> --------------------------------------------------------------------
> Lease Exchange named one of the Top 10 to Watch by RedHerring Magazine!
> www.redherring.com/mag/issue79/herring100/10_to_watch/lease_x.html
>
>
>
> --------------D06689063F2C0BD7316328FB
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> I'm having troubles getting the db and listener started when the
> <br>OS starts after a reboot...&nbsp; Please help..&nbsp; have tried using
> the
> <br>following dbora file in /etc/init.d
> <br>****** dbora *************
> <br>#!/bin/sh<br>
> ORACLE_SID=LEDB<br>
> export ORACLE_SID<br>
> <br>
> case "$1" in<br>
> 'start')<br>
> #Start the Oracle Databases:<br>
> /home/mark/unlock.ex<br>
> su -l oracle -c /u01/app/oracle/product/8.1.5/bin/dbstart &amp;<br>
> su -l oracle -c "/u01/app/oracle/product/8.1.5/bin/lsnrctl start" &amp;<br>
> ;;<br>
> 'stop')<br>
> #Stop the Oracle Databases:<br>
> su -l oracle -c /u01/app/oracle/product/8.1.5/bin/dbshut &amp;<br>
> ;;<br>
> esac
> <br><br>
> ****************** end dbora *******************
> <br>It works in linux but not on solaris....
> <br>Any ideas???
> <pre></pre>
>
> <pre>Mark</pre>
>
> <pre>--&nbsp;
> -------------------------------------------------------------------
> Mark Wagner&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Phone - (650)298-9790 x181
> Database Engineer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mark_at_leaseexchange.com
> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; www.leaseexchange.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *
> *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dark Oracle of the Sysadmin Sith Darth telinit 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *
> --------------------------------------------------------------------
> Lease Exchange named one of the Top 10 to Watch by RedHerring Magazine!
> www.redherring.com/mag/issue79/herring100/10_to_watch/lease_x.html</pre>
> &nbsp;</html>
>
> --------------D06689063F2C0BD7316328FB--
>
Received on Thu Jun 22 2000 - 00:00:00 CDT

Original text of this message

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