Solved

Inserting new line in data using SQL Loader

Posted on 2007-11-20
7
914 Views
Last Modified: 2012-06-21
Hello,

I have to insert a record using SQL Loader. One of the field of the record has a new line between the data. Due to this new line the record is continued on the next line and during the SQL Loader insert the record is considered to be 2 records. Ideally this is one record with a new line in the data. how do I insert the record with a new line in the data using SQL Loader.

Thanks
0
Comment
Question by:d_lalit
  • 3
  • 2
7 Comments
 
LVL 18

Expert Comment

by:Jinesh Kamdar
Comment Utility
Is this data field wrapped between any symbols like ' or " ?
0
 

Author Comment

by:d_lalit
Comment Utility
I am using data that is delimited by |.
E.g.
COL231|COL245|COL
567|COL789
0
 
LVL 18

Expert Comment

by:Jinesh Kamdar
Comment Utility
Post at least 3 sample records from the file?
How big is the data? If not much, open the data file in an editor like Edit-Plus and merge these 2-line records into 1 by Replacing the Reg-ex : COL\n with COL
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:d_lalit
Comment Utility
I want the data to be inserted in the way it is i.e. the third column data should have a new line after it is inserted in the column. I do not want the data to merge.

TEST1123|TEST345|TEST456|TEST
789|TEST987|
TEST1|TEST2|TEST3|TEST
4|TEST5|
0
 
LVL 18

Accepted Solution

by:
Jinesh Kamdar earned 125 total points
Comment Utility
Its kinda difficult to load variable-length multi-line records without any specific field terminators. Youu can try the CONCATENATE option in the control-file.

http://www.experts-exchange.com/Database/Oracle/3rd_Party_Tools/Q_21241284.html
http://www.experts-exchange.com/Database/Oracle/3rd_Party_Tools/Q_21232748.html
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch10.htm
0
 
LVL 1

Expert Comment

by:Computer101
Comment Utility
Forced accept.

Computer101
EE Admin
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Read about achieving the basic levels of HRIS security in the workplace.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to take different types of Oracle backups using RMAN.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now