|
|
|
|
|
|
| Author |
Message |
blindsey *nix forums beginner
Joined: 19 Jul 2005
Posts: 4
|
Posted: Wed Jul 12, 2006 2:14 pm Post subject:
SQLLDR / CSV problem
|
|
|
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
|
Posted: Wed Jul 12, 2006 2:32 pm Post subject:
Re: SQLLDR / CSV problem
|
|
|
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
|
Posted: Wed Jul 12, 2006 3:25 pm Post subject:
Re: SQLLDR / CSV problem
|
|
|
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 |
|
 |
|
|
The time now is Sun Nov 23, 2008 1:01 pm | All times are GMT
|
|
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
|
|