Re: .bash_logout + Oracle shutdown

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 28 Feb 2003 10:11:29 -0800
Message-ID: <92eeeff0.0302281011.40c62943_at_posting.google.com>


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 - 19:11:29 CET

Original text of this message