Solved

Inserting new line in data using SQL Loader

Posted on 2007-11-20
7
915 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
ID: 20320809
Is this data field wrapped between any symbols like ' or " ?
0
 

Author Comment

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

Expert Comment

by:Jinesh Kamdar
ID: 20321038
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:d_lalit
ID: 20321072
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
ID: 20321841
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
ID: 20591484
Forced accept.

Computer101
EE Admin
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
null value 15 92
ORA-12560: TNS:protocol adapter error 8 80
SQL: using Left join but need to pull in records that are not meeting left join condition. 14 49
Slow SQL query 12 54
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Creating and Managing Databases with phpMyAdmin in cPanel.
Via a live example, show how to take different types of Oracle backups using RMAN.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

932 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

13 Experts available now in Live!

Get 1:1 Help Now