Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Inserting new line in data using SQL Loader

Posted on 2007-11-20
7
Medium Priority
?
923 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

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 500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

705 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