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: backup controlfile to trace

Re: backup controlfile to trace

From: Gene Sais <Gsais_at_co.palm-beach.fl.us>
Date: Tue, 17 Sep 2002 10:55:45 -0800
Message-ID: <F001.004D199E.20020917105545@fatcity.com>


Not pretty, but this is how I do it:

¯- snippet of my hot backup script ¯-

sqlplus / <<EOF
alter database backup controlfile to trace ; EOF
trcfile=`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_at_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.



Ray Stell stellr_at_vt.edu (540) 231-4109 KE4TJC 28^D
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Ray Stell
  INET: stellr_at_cns.vt.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_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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gene Sais
  INET: Gsais_at_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_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 Tue Sep 17 2002 - 13:55:45 CDT

Original text of this message

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