Advertisement

12.12.2002 at 04:14PM PST, ID: 20424520
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Sql Loader and new line character in the field value

Asked by sehgaln in Oracle 3rd Party Tools

Tags: , , , ,

I have a csv file where one of the fields contains the new line character, when I load the file using the sql loader it gives me the error.
Here is the data file

4/24/2000,Chemical Engineering Graduate Student Association (ChEGSA) at Carnegie Mellon University,"Carnegie Mellon University
Department of Chemical Engineering
Attn:  Warren R. Hoffmaster
1107 Doherty Hall
Pittsburgh, Pennsylvania 15213-3890",412-268-2230,,22nd Annual Chemical Engineering Symposium,"Oct 12 & 13, 2000",Carnegie Mellon University,,500.00,500,C Cimarusti,M Futran,,,500,,"Check dated:  09/01/00
Letter dated:  09/12/00",,,1517273,

and the control file
LOAD DATA
infile 'f:\projects\contributions\migration\contributionstable1.csv'
badfile 'f:\projects\contributions\migration\contributionstable.bad'
discardfile 'f:\projects\contributions\migration\contributionstable.dis'
TRUNCATE
INTO TABLE temp_cont_table
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
(req_received_dt,
requestor_name,
req_address CHAR "replace(:req_address, chr(10), '')",
req_phone,
req_taxid,
req_eventname,
req_eventdates,
req_location,
req_min_amtreq,
req_amtreq,
req_amtfunded,
req_reviewers,
req_reviewers2,
req_reviewers3,
req_reviewers4,
req_recommend,
req_sentrev CHAR "replace(:req_address, chr(10), '')",
req_history CHAR "replace(:req_address, chr(10), '')",
req_checkreq,
req_paydate,
req_checknbr,
req_chk_date,
req_cont_table_id "cont_table_seq.nextval")

loader is treating each new line character is new record .

Can anybody help.
Start Free Trial
 
 
[+][-]12.13.2002 at 12:59AM PST, ID: 7577061

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.13.2002 at 07:52AM PST, ID: 7578672

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.25.2002 at 11:00PM PST, ID: 7632175

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle 3rd Party Tools
Tags: sql, line, new, character, loader
Sign Up Now!
Solution Provided By: er0ck
Participating Experts: 3
Solution Grade: A
 
 
[+][-]01.14.2004 at 11:20PM PST, ID: 10118224

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 03:13PM PST, ID: 10179556

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44