Home » RDBMS Server » Server Utilities » Need a solution for the next sqlloader action
Need a solution for the next sqlloader action [message #182322] Fri, 14 July 2006 05:45 Go to next message
magnetic
Messages: 324
Registered: January 2003
Senior Member
Hi,

The next sqlloader challenge for you:

i have a tabel with columns : id number, c1 varchar2.
datafile contains data like:

<A>abc</A><B>abcdef </B><C>xy</C>.......

Desired output in oracle:
id c1
-----------------
1 <A>abc
2 </A>
3 <B>abcde
4 </B>
5 <C>xy
6 </C>

Id has been filled with a sequence. What i want is that each record of column c1 starts with the sign "<".

Pratically the datafile contains too many data per row wich gives a linebuffer exceed error, otherwise i could insert the whole string in oracle and could try to resolve it with plsql.

I need a controlfile wich can achive what i want.

control file should look like:
LOAD DATA
REPLACE
INTO T1
(id "T1_seq.nextval"
,c1 ???)

Could anyone come with a solution for this problem?

Thanks.

magnetic.

Re: Need a solution for the next sqlloader action [message #182329 is a reply to message #182322] Fri, 14 July 2006 06:41 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
I would let a text editor add a line break before "<" and start from there.

MHE
Re: Need a solution for the next sqlloader action [message #182585 is a reply to message #182329] Mon, 17 July 2006 03:14 Go to previous message
magnetic
Messages: 324
Registered: January 2003
Senior Member
Thanks for your reply.
That could be solution indeed.
May i assume that there aint no solution with sqlloader?

magnetic


Previous Topic: "WWUTL_API_SecurityTransport" abnormality
Next Topic: sqlloader in cycle
Goto Forum:
  


Current Time: Thu Dec 26 07:55:32 CST 2024