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 September 7th, 2005, 01:06 PM
mikestan21 mikestan21 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 21 mikestan21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 7 sec
Reputation Power: 0
ORA-01722: invalid number...how to correct?

Hi,
I'm trying to load data from SQL Loader, and it keeps puking on the same column, giving me the invalid number error, but don't understand why.

Here's my control file:

Code:
options (skip=1)
load data
infile image_program.csv
append into table image_program
(
image_program_id TERMINATED BY ',',
image_id TERMINATED BY ',',
program_id TERMINATED BY ','
)


Here's my data file:

Code:
image_program_id,image_id,program_id
10,10,1
11,11,1
12,12,1
13,13,1
14,14,1
15,15,1


The data is really simple numbers, all other control files and data files loaded fine, even the parent tables of this one?
Any help is appreciated.
-m

Reply With Quote
  #2  
Old September 7th, 2005, 04:15 PM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,308 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 5 h 17 m 10 sec
Reputation Power: 48
This may sound stupid, but did you check that the zeroes in the file are all character "zero" and not the character Oh?

Reply With Quote
  #3  
Old September 7th, 2005, 04:19 PM
mikestan21 mikestan21 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 21 mikestan21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 7 sec
Reputation Power: 0
Jim,
at this point nothing sounds stupid to me, since I am at a loss for an answer to this one. And yes, I double-checked that they're real zero's too.
The funny thing is that I can manually insert a record through sqlplus using the first row of data; 10,10,1, but still no luck using the loader. Don't want to have to resort to loading 300+ records line by line ;(
thx, mike

Reply With Quote
  #4  
Old September 9th, 2005, 01:49 PM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,308 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 5 h 17 m 10 sec
Reputation Power: 48
log?
Code:
sqlldr $UID/$PSWD control=extract_load.ctl errors=200 log=extract.log

Look at the error information in extract.log

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > ORA-01722: invalid number...how to correct?


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 4 hosted by Hostway
Stay green...Green IT