Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Out put in a single line
Hi guys,
set linesize ....
solved my problems.
Thnaks to all who replied to this.
Srinivas
-----Original Message-----
Sent: Tuesday, December 11, 2001 12:40 AM
To: Multiple recipients of list ORACLE-L
Not knowing exactly how the SQL Looks in v$logmnr_contents, I hazard a guess that because the sql_redo column is VARCHAR2(4000), it contains the entire SQL statement? (ie, the SQL statement is not split over multiple rows in the table as it is in, say, USER_SOURCE?
If that's the case, then I'd guess that your problem is that the line length in SQL*Plus is too short. If you issue a "set linesize 4000" and rerun your query to spool the statements out, each statement should be on a single line.
hth
-arn
>>> Shrinivas.Tatireddy_at_med.ge.com 11/12/2001 13:50:19 >>> This message has been scanned by MAILSweeper.
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: Tatireddy, Shrinivas (MED, Keane)
INET: Shrinivas.Tatireddy_at_med.ge.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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 Mon Dec 10 2001 - 23:27:26 CST
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |