niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Tools
SQLLDR / CSV problem
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
blindsey
*nix forums beginner


Joined: 19 Jul 2005
Posts: 4

PostPosted: Wed Jul 12, 2006 2:14 pm    Post subject: SQLLDR / CSV problem Reply with quote

I'm trying to load some client data in CSV format using SQLLDR.

The problem is that the text fields in the data contain CRLFs which
SQLLDR can't tell from record-ending CRLFs.

Before I go off trying to write one myself, is there some sort of
utility which would recognize that a CRLF is within a field's enclosing
characters and strip it out or replace it with something else?

Or another way to solve the problem?
Back to top
Maxim Demenko
*nix forums Guru


Joined: 24 Apr 2005
Posts: 428

PostPosted: Wed Jul 12, 2006 2:32 pm    Post subject: Re: SQLLDR / CSV problem Reply with quote

blindsey schrieb:
Quote:
I'm trying to load some client data in CSV format using SQLLDR.

The problem is that the text fields in the data contain CRLFs which
SQLLDR can't tell from record-ending CRLFs.

Before I go off trying to write one myself, is there some sort of
utility which would recognize that a CRLF is within a field's enclosing
characters and strip it out or replace it with something else?

Or another way to solve the problem?

You could use perl,python,awk... to preprocess your data, or pick one of

approaches from here
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1286201753718

Best regards

Maxim
Back to top
psoug
*nix forums Guru


Joined: 15 May 2005
Posts: 3492

PostPosted: Wed Jul 12, 2006 3:25 pm    Post subject: Re: SQLLDR / CSV problem Reply with quote

blindsey wrote:
Quote:
I'm trying to load some client data in CSV format using SQLLDR.

The problem is that the text fields in the data contain CRLFs which
SQLLDR can't tell from record-ending CRLFs.

Before I go off trying to write one myself, is there some sort of
utility which would recognize that a CRLF is within a field's enclosing
characters and strip it out or replace it with something else?

Or another way to solve the problem?

What version of Oracle?
Loading into what data type?
Look at the CONTINUEIF syntax.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 1:01 pm | All times are GMT
navigation Forum index » Databases » Oracle » Tools
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Agencia de turismo | Per Insurance | Advertising | Free Credit Reports | Personal Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1867s ][ Queries: 16 (0.1143s) ][ GZIP on - Debug on ]