Re: .bash_logout + Oracle shutdown

From: Beserko <beserkobob_at_yahoo.ca>
Date: Fri, 28 Feb 2003 15:42:58 -0500
Message-ID: <pan.2003.02.28.20.42.56.598047.7579_at_yahoo.ca>


Will it work if I only want to shut it down when I logout, not when I shutdown ? I only want to shutdown the database after I logout from the user profile.

On Fri, 28 Feb 2003 13:11:29 -0500, Rauf Sarwar wrote:

> Beserko <beserkobob_at_yahoo.ca> wrote in message
> news:<pan.2003.02.28.02.31.57.934839.3131_at_yahoo.ca>...

>> If I put a script in .bash_logout to shutdown Oracle, it works manually
>> ($ source .bash_logout).  When I logout, the server doesn't shutdown as
>> it should. What can I do to shutdown Oracle when I logout. I know it's
>>  a strange request, but don't ask. I am using Oracle 9i on Linux
>> Red Hat 8.0.
>> 
>> Thanks.

>
>
> You should read Oracle docs. It's all listed there.
>
> 1) Enter your database refernce in /etc/oratab file. 2) Create a
> dbscript in /etc/init.d directory. This will shutdown and startup Oracle
> instances using dbshut and dbstart utilities. 3) Create symlinks to the
> above script in /etc/rc0.d (to shutdown) and /etc/rc3.d (to startup).
>
> For reference on creating dbscript, look at other scripts in /etc/init.d
> directory.
>
> Regards
> /Rauf Sarwar
Received on Fri Feb 28 2003 - 21:42:58 CET

Original text of this message