Return-path: <root@fatcity.cts.com>
Envelope-to: oracle-l@orafaq.net
Delivery-date: Tue, 17 Sep 2002 01:30:36 +0800
Received: from newsfeed.cts.com ([209.68.248.164])
 by jean.onefuse.com with esmtp (Exim 3.36 #1)
 id 17qzhk-00031E-00
 for oracle-l@orafaq.net; Tue, 17 Sep 2002 01:30:36 +0800
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id KAA06450;
 Mon, 16 Sep 2002 10:29:38 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 004D09F4; Mon, 16 Sep 2002 09:08:25 -0800
Message-ID: <F001.004D09F4.20020916090825@fatcity.com>
Date: Mon, 16 Sep 2002 09:08:25 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Joan Hsieh <joan.hsieh@tufts.edu>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Joan Hsieh <joan.hsieh@tufts.edu>
Subject: Re: Shutdown and startup processes
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT

Willie,

We do cold backup overnight. The main script owns by root, in the
script, we do su - $PSOFT_USER -c <call stop_peoplesoft_process> and
then su  - $ORACLE_USER -c <call dbshutdown script>. vice versa, we
switch user, bring up oracle and ps process automatically. We don't deal
it automatically at date time. manual is fine for us.

Joan

Townsend Willie wrote:
> 
> Thanks Stephane!
> 
> As you alluded to, ideally, I want it to work automatically even when I do
> manual shutdown/startup via svrmgrl etc.  I will explore your suggestion of
> triggers/external function etc.
> 
> Willie
> 
> -----Original Message-----
> Sent: Thursday, September 12, 2002 2:44 PM
> To: Multiple recipients of list ORACLE-L
> 
> Townsend Willie wrote:
> >
> > Gurus,
> >
> > I need to implement a process to startup/shutdown a PeopleSoft Unix batch
> > scheduler job whenever the Oracle instance is shutdown or started back up.
> > Does anyone know of a way to tie this process to an Oracle Instance to get
> > invoked at shutdown/startup time?
> >
> > Willie Townsend
> > Alverno Information Services
> > Supervisor (Database Administration)
> > 317-532-7800 X'6265'
> > eMail:  willie.townsend@ssfhs.org
> >
> 
> Modify $ORACLE_HOME/bin/dbstart and $ORACLE_HOME/bin/dbshut if your
> system is using them to automatically start up and shutdown Oracle. This
> seems to me the cleanest way to do it. Of course it will not work if you
> manually stop your database. Perhaps that some trigger calling an
> external function ... ? Yek.
> 
> --
> Regards,
> 
> Stephane Faroult
> Oriole Software
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Stephane Faroult
>   INET: sfaroult@oriole.com
> 
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru@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).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Townsend Willie
>   INET: Willie.Townsend@ssfhs.org
> 
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru@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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Joan Hsieh
  INET: joan.hsieh@tufts.edu

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@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).

