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: Script tp parse control file backup ??

RE: Script tp parse control file backup ??

From: Hand, Michael T <HANDM_at_polaroid.com>
Date: Thu, 1 Jul 2004 13:11:46 -0400
Message-ID: <1357B9FD14F9D41187800008C7A47B350336A5BB@corpa1.polaroid.com>


Mladen,
One other minor point. Unless you get rid of the blank line in the middle of the "CREATE CONTROLFILE" command you will have trouble running it. First hand knowledge from a couple of weeks ago. I'm sure a few more curly braces and double back slashes in your one-liner would address this. ;)

Mike

-----Original Message-----
From: Mladen Gogala [mailto:mladen_at_wangtrading.com] Sent: Thursday, July 01, 2004 11:15 AM
To: oracle-l_at_freelists.org
Subject: Re: Script tp parse control file backup ??

On 07/01/2004 10:31:11 AM, Mitchell Baldwin wrote: > I thought I ought to post the code !....

I don't think so.

>
> ------- Start of Code

sqlplus:
alter database backup controlfile to trace as '/tmp/tracefile.trc';

perl -ne 'print unless ((/^#/) or (/^--/)); exit if (/^;/);'</tmp/tracefile.trc

Demonstration:
-bash-2.05b$ perl -ne ' print unless ((/^#/) or (/^--/)); exit if (/^;/);'<tracefile.trc
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "CMPL" NORESETLOGS ARCHIVELOG     MAXLOGFILES 5
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 226
LOGFILE

  GROUP 1 '/data/CMPL/redo/redo01.rdo'  SIZE 128M,
  GROUP 2 '/data/CMPL/redo/redo02.rdo'  SIZE 128M,
  GROUP 3 '/data/CMPL/redo/redo03.rdo'  SIZE 128M
 

DATAFILE
'/data/CMPL/system/system01.dbf',
'/data/CMPL/system/undotbs01.dbf',
'/data/CMPL/supplied/indx01.dbf',
'/data/CMPL/supplied/tools01.dbf',
'/data/CMPL/supplied/users01.dbf',
'/data/CMPL/supplied/xdb01.dbf',
'/data/CMPL/data/COMPLIANCE1.dbf',
'/data/CMPL/data/IMSEOK01.dbf',
'/data2/CMPL/data/UNIV01.dbf',
'/data/CMPL/data/UNIV_INDX01.dbf',
'/data/CMPL/data/VIEW.dbf',
'/data2/CMPL/data/WIZARD01.dbf',
'/data2/CMPL/data/WIZARD_NDX01.dbf',
'/data2/CMPL/data/TRD01.dbf',
'/data2/CMPL/transport/BLOOMBERG01.dbf',
'/data/CMPL/transport/BLOOMBERG02.dbf',
'/data/CMPL/transport/BLOOMBERG01.dbf',
'/data2/CMPL/transport/BLOOMBERG_NDX01.dbf',
'/data2/CMPL/data/BLOOMBERG_NDX02.dbf',
'/data2/CMPL/transport/BLOOMBERG02.dbf',
'/data2/CMPL/data/BLOOMBERG_NDX03.dbf'
CHARACTER SET WE8ISO8859P1
;

-- 
Mladen Gogala
Oracle DBA



Note:
This message is for the named person's use only.  It may contain
confidential, proprietary or legally privileged information.  No
confidentiality or privilege is waived or lost by any mistransmission.  If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender.  You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. Wang Trading LLC and any of its subsidiaries each reserve the
right to monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized to
state them to be the views of any such entity.

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

-- 
This transmission is intended only for use by the addressee(s) named herein and may contain information that is proprietary, confidential and/or legally privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Thu Jul 01 2004 - 12:09:10 CDT

Original text of this message

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