From Bruce.Reardon@comalco.riotinto.com.au Mon, 10 Dec 2001 20:17:35 -0800
From: "Reardon, Bruce (CALBBAY)" <Bruce.Reardon@comalco.riotinto.com.au>
Date: Mon, 10 Dec 2001 20:17:35 -0800
Subject: RE: Out put in a single line
Message-ID: <F001.003D9795.20011210193020@fatcity.com>
MIME-Version: 1.0
Content-Type: text/plain


Hi,
SQL_REDO in v$logmnr_contents  is defined as VARCHAR2(4000)

So perhaps it is splitting due to sqlplus formatting

Have you tried setting your linesize to (say) 1000 or bigger (I don't have
time to check but look in the manual for what the maximum is).
Also, ensure sql_redo column is set to maximum width 
Also set trimspool on if doing this so your file isn't full of spaces.

Perhaps you can give an example of the query you are using and what
formatting commands it has.

HTH,
Bruce Reardon

-----Original Message-----
[mailto:Shrinivas.Tatireddy@med.ge.com]
Sent: Tuesday, 11 December 2001 13:50

Hi lists,

Solaris: 2.6
Oracle 8i

I am trying to extract insert statements from archive log files using
log miner.

All the statements are collected into a spool file. We ran them against
another database (test schema).

But the insert statement taken from this arch logs is split into
multiple lines.

I have to manually open the spool file in vi and remove unwanted spaces
and I am making it into single line.

Then only the insert is successful.

There are around 20,000 insert statements in that spool file.

You know how much time it will take to modify each statement.


Does anybody throw some light....

how can I make the insert statements into a single line...?

or 

is there a way to get the data in a single line from archive log.

select sql_redo from v$logmnr_contents;


If this is finished, we can move to production. Hope u can understand it
is urgent.

Thnx in advance,

Srinivas
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Reardon, Bruce (CALBBAY)
  INET: Bruce.Reardon@comalco.riotinto.com.au

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




