Return-path: <root@fatcity.cts.com>
Envelope-to: oracle-l@orafaq.net
Delivery-date: Wed, 18 Sep 2002 02:03:14 +0800
Received: from newsfeed.cts.com ([209.68.248.164])
 by jean.onefuse.com with esmtp (Exim 3.36 #1)
 id 17rMgs-0000Hj-00
 for oracle-l@orafaq.net; Wed, 18 Sep 2002 02:03:14 +0800
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id LAA18333;
 Tue, 17 Sep 2002 11:02:30 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 004D199E; Tue, 17 Sep 2002 10:55:45 -0800
Message-ID: <F001.004D199E.20020917105545@fatcity.com>
Date: Tue, 17 Sep 2002 10:55:45 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Gene Sais" <Gsais@co.palm-beach.fl.us>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Gene Sais" <Gsais@co.palm-beach.fl.us>
Subject: Re: backup controlfile to trace
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=ISO-8859-7
Content-Transfer-Encoding: quoted-printable

Not pretty, but this is how I do it:

=AF- snippet of my hot backup script =AF-

sqlplus / <<EOF
alter database backup controlfile to trace ;
EOF
trcfile=3D`ls -tr $ORATRC/ora_*_${sid}.trc |tail -1`
echo "%-Info, COPY BACKUP CONTROL FILE (TEXT) from TRACE $trcfile to =
$txtctlfile"
cp $trcfile $txtctlfile

hth,
Gene

>>> stellr@cns.vt.edu 09/17/02 02:13PM >>>

8.1.7

For scripting purposes, what is the logic for finding the trc file from
alter database backup controlfile to trace cmd?  This seems really
stupid not being able to direct the output.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Ray Stell   stellr@vt.edu     (540) 231-4109     KE4TJC    28^D
--=20
Please see the official ORACLE-L FAQ: http://www.orafaq.com=20
--=20
Author: Ray Stell
  INET: stellr@cns.vt.edu=20

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com=20
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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gene Sais
  INET: Gsais@co.palm-beach.fl.us

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

