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: [Q] Shutdown database on LINUX redhat AS 2.1 problem?

Re: [Q] Shutdown database on LINUX redhat AS 2.1 problem?

From: Mladen Gogala <mgogala_at_adelphia.net>
Date: Thu, 03 Jul 2003 21:34:24 -0800
Message-ID: <F001.005C3434.20030703213424@fatcity.com>


Yup! Linux != Slowaris. Slowaris executes K* in /etc/init.d/rc5.d unconditionally. Linux has the following code in /etc/rc.d/rc script (the one that executes "run level" initialization);

  [ -f /var/lock/subsys/$subsys -o -f /var/lock/subsys/$subsys.init ] \

                 || continue

which means that if the "activation file" doesn't exist in /var/lock/subsys, the "continue" command will be executed and the loop will immediately jump to the next iteration. Take out that line and K* scripts will be executed unconditionally, just as on Slowaris. That is just a little bit of good ol' Linux hacking.

On 2003.07.03 14:19, mike mon wrote:
> We are doing ORACLE 9ir2 database migration from SUN
> to LINUX Redhar AS
> 2.1. I setupp /etc/init.d/dbora, /etc/oratab,
> /etc/rc5.d/K10dbora and
> /etc/rc5.d/S99dbora. I can dbstart and dbshut without
> problem. When
> system boot up, it also bring startup
> /etc/rc5.d/S99dbora. The problem I
> have is when system shutdonw (shutdown now -r), it
> does NOT run
> /etc/rc5.d/K10dbora to shutdown database. Does
> anyone know why?
>
> Thanks.
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: mike mon
> INET: mccdba_at_yahoo.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> 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).
>

-- 
Mladen Gogala
Oracle DBA
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  INET: mgogala_at_adelphia.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Fri Jul 04 2003 - 00:34:24 CDT

Original text of this message

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