Advertisement

08.07.2008 at 08:31AM PDT, ID: 23629737
[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!

6.7

SQL*Loader How To strip out CR/LF in one column

Asked by rowek in Oracle 10.x, Oracle Database, Oracle 11.x Database

Tags: , , ,

We have a very simple need and have received a lot of conflictig advise.  The simple question is "How do I remove a CR or LF out of one column contained in a CSV text INFILE?"   I want to do this inside the SQL*Loader 10g CTL file below.  The rest of this proces has run for four months as is, but we now want to remove these characters from the COMMENTS column to include its data as well.  

Note that MS Access is the source database, we run a TransferText to produce the CSV text file.  CR/LF is legal in MS Access but not in Oracle, so we need to get SQL*Loader to strip these out.  Must be done here, not upstream.  Thanks!

LOAD DATA
INFILE      'Refer to app.config file'
BADFILE     'Refer to app.config file'
DISCARDFILE 'Refer to app.config file'
APPEND
INTO TABLE dairy.insp
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
(
  insp_ID INTEGER EXTERNAL,
  Insp_Empl_ID CHAR,
.
. <some detail removed>
.
  SA_Date_Hazard_Analysis_Issue  "to_date(:SA_Date_Hazard_Analysis_Issue,'MM/DD/YYYY HH24:MI:SS')",
  SA_Date_HACCP_Plan_Issue        "to_date(:SA_Date_HACCP_Plan_Issue,'MM/DD/YYYY HH24:MI:SS')",
  SA_Date_Prereq_Programs_issue  "to_date(:SA_Date_Prereq_Programs_issue,'MM/DD/YYYY HH24:MI:SS')",
  Insp_Order  INTEGER EXTERNAL,
  COMMENTS CHAR,   <=========== Need to remove CR/LRs from this column
  CREATE_DATE "to_date(:CREATE_DATE,'MM/DD/YYYY HH24:MI:SS')",
  CREATE_USER CHAR,
  MODIFY_DATE "to_date(:MODIFY_DATE,'MM/DD/YYYY HH24:MI:SS')",
  MODIFY_USER CHAR,
  PROGRAM_USE CHAR,
  Upload_Date     "to_date(:Upload_Date ,'MM/DD/YYYY HH24:MI:SS')",
  Press_Insp  CHAR
)Start Free Trial
[+][-]08.07.2008 at 09:02AM PDT, ID: 22182320

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 09:09AM PDT, ID: 22182414

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 09:17AM PDT, ID: 22182504

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 09:23AM PDT, ID: 22182561

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 10:32AM PDT, ID: 22183276

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 10:49AM PDT, ID: 22183437

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 10:54AM PDT, ID: 22183487

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 11:48AM PDT, ID: 22184004

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 11:59AM PDT, ID: 22184123

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 02:36PM PDT, ID: 22185673

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.08.2008 at 11:15AM PDT, ID: 22192264

View this solution now by starting your 7-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

Zones: Oracle 10.x, Oracle Database, Oracle 11.x Database
Tags: Oracle, SQL*Loader, 10g, Strip out linefee
Sign Up Now!
Solution Provided By: awking00
Participating Experts: 3
Solution Grade: A
 
 
[+][-]08.08.2008 at 11:20AM PDT, ID: 22192292

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.08.2008 at 11:23AM PDT, ID: 22192317

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.08.2008 at 11:28AM PDT, ID: 22192362

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.08.2008 at 11:39AM PDT, ID: 22192456

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.08.2008 at 12:00PM PDT, ID: 22192683

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 09:44AM PDT, ID: 22205951

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 01:05PM PDT, ID: 22207694

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.11.2008 at 01:40PM PDT, ID: 22207990

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 02:50PM PDT, ID: 22432665

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628