Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 27th, 2004, 11:35 AM
jabs jabs is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 19 jabs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 51 m 26 sec
Reputation Power: 0
sql*ldr problem

Hi all,

I'm having a little trouble with my sql*ldr .ctl file. I'm hoping someone can help.

I get an error when I run the following file. My data file is enclosed with ' " ' (parenthesis). The script works if the data is enclosed by ' ' ' (apostrophe). If I change the 'optionally enclosed' statement to a ' " ' (the usual way), I get a data error (column insert too big). If I change the 'optionally enclosed' statement to a ' ' ' (to match the data), it fails with SQL*Loader-350: Syntax error at line 9.
Token longer than max allowable length of 258 chars

Here is most of my .ctl file.

LOAD DATA
INFILE 'jd_ips_upload.dat'
BADFILE 'jd_ips_bad.txt'
TRUNCATE
INTO TABLE stg_custom
FIELDS TERMINATED BY "|" optionally enclosed by '''
trailing nullcols
(ADD_UPDATE,CLIENT_NUMBER, etc).

I also tried optionally enclosed by 'chr(39)', but that dies too.

Let me know if I need to send you any more data. TIA for your assistance.

Reply With Quote
  #2  
Old April 16th, 2004, 11:05 AM
jabs jabs is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 19 jabs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 51 m 26 sec
Reputation Power: 0
sqlldr

Thanks for the help Raj!

Reply With Quote
  #3  
Old April 30th, 2004, 06:40 AM
kollamolli kollamolli is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 kollamolli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

Jabs,

Could you write a short summary of how Raj helped solve your problem? I have a very similar problem here!

Thanks

Ez

Reply With Quote
  #4  
Old July 21st, 2004, 02:29 PM
rshawtx rshawtx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 rshawtx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
token longer than max allowable length

Hi All,

Please update me on the solution to this as I am having the same issue on 3 of my CTL files... and they are all on the same line #.

Thanks,

Richard

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > sql*ldr problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway