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: Oracle 8i Startup Script

Re: Oracle 8i Startup Script

From: Martin Haltmayer <Martin.Haltmayer_at_d2mail.de>
Date: Thu, 27 Dec 2001 14:16:28 +0100
Message-ID: <3C2B1F2C.A32C0DB1@d2mail.de>


Hello Stuart,

if you do "su" from any user other than root you are asked for the account password. This also holds if you do "su - oracle" as oracle account.

Regards,

Martin

Stuart Shay wrote:
>
> Hello All:
>
> Below I have a startup script that does not startup the Oracle Listner. It
> starts up the database correctly.
>
> When I run the script from the command line it prompts me for the oracle
> account password. Is there anything that I may have left out.
>
> O/S: SOL 8/Sparc
> Oracle: Oracle 8i
>
> Thanks
> Stuart
>
> Sym Links
> ln -s ../init.d/oracle /etc/rc3.d/S95oracle
> ln -s ../init.d/oracle /etc/rc0.d/K15oracle
> chmod 0755 /etc/init.d/oracle
>
> Startup Script : /etc/init.d/oracle
>
> #!/sbin/sh
>
> case $1 in
> start)
>
> echo "Starting Oracle Databae"
> su - oracle -c "$ORACLE_HOME/bin/dbstart"
>
> echo "Starting TNS Listener"
> su - oracle -c "$ORACLE_HOME/bin/lsnrctl START"
>
> exit 0
> ;;
>
> stop)
> su - oracle -c "$ORACLE_HOME/bin/lsnrctl STOP"
> su - oracle -c "$ORACLE_HOME/bin/dbshut"
> ;;
> status)
> ps -ef | grep oracle
> ;;
Received on Thu Dec 27 2001 - 07:16:28 CST

Original text of this message

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