Excel Spreadsheet - SQLLDR - New Line Issues [message #527183] |
Sun, 16 October 2011 09:24 |
|
carolmarol123
Messages: 11 Registered: October 2011
|
Junior Member |
|
|
Hi,
I am trying to load a .csv file using SQLLDR. My control file is perfectly fine. The file has approximately 80K rows, but sqlldr loads 9206 records, then just stops... no error message whatsoever.
I suspect there must be "NEW LINES" in the file? Does anyone know how I can massage my input file to make it "clean" for sqlldr?
(I am currently loading it via TOAD which will take about 6 hours)....I'd rather not have to spend all Sunday doing this! And at the same time, I need to figure out how to load these types of files using sqlldr (i.e, this is an ongoing requirement of my job.)
Thanks!
|
|
|
|
|
Re: Excel Spreadsheet - SQLLDR - New Line Issues [message #527192 is a reply to message #527191] |
Sun, 16 October 2011 13:26 |
|
carolmarol123
Messages: 11 Registered: October 2011
|
Junior Member |
|
|
OK.
One:
I agree 100% that using Toad to do ANY type of batch processing is completely ridiculous!!!
Two:
I've invoked sqlldr from the unix command prompt for goodness sakes... The job simply stops after loading 9206 records, no errors -- or it's possible that I am not seeing the errors as I do not have a log file specified, but am simply looking at the screen output.
Here is my control file:
load data
infile '/home/oracle/input.csv'
into table toad.ttp43425_load
fields terminated by "," optionally enclosed by '"'
(ACCTNUM, METERNUM, ERTNUM, PREMNUM, PREMADDR, CURCYCLE, CURROUTE, NEWCYCLE, NEWROUTE)
I agree 100% that using Toad to do ANY type of batch processing is completely ridiculous!!!
|
|
|
|
|
|
Re: Excel Spreadsheet - SQLLDR - New Line Issues [message #527196 is a reply to message #527194] |
Sun, 16 October 2011 14:19 |
|
Barbara Boehmer
Messages: 9103 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
If you specify a log file, then that log file would likely clearly show what the problem is, instead of guessing at it. That is the main purpose of the log file. Also, make sure you are not running it in silent mode, so that you can see what is happening as it commits blocks of records or stops due to some problem. If it loads 9206 rows successfully, then it is not likely due to something that all rows have, such as newlines. If you do have newlines mid-record, then you can either eliminate them before loading or use continueif within your SQL*Loader control file, or specify a record terminator. In order to use continueif or a record terminator there must be some character(s) that can be used to determine whether to continue or the record terminates. It sounds more likely that you have exceeded some default limit on something or hit some unusual error in some part of the file. The log file should show that. You might also try dividing your file up and loading sections to determine where the problem is. If each section loads separately but not together, then once again you are looking at a limit problem rather than a problem with the data and loading process. It helps if you provide your table structure, a few records of some sample data, and the resulting log file. There are all kinds of things that can be done to solve problems, but we need to know what the problem is first, by seeing what the log file says.
|
|
|
|
Re: Excel Spreadsheet - SQLLDR - New Line Issues [message #527315 is a reply to message #527199] |
Mon, 17 October 2011 08:28 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
carolmarol123 wrote on Sun, 16 October 2011 16:08Unfortunately, in the company that I have just joined, the DBAs insist on using Toad for everything. Hopefully I can change that!!!
How that person got to be a DBA is beyond me. TOAD is just a lazy person's way to do a job. It hides commands and errors. Ask this person to solve any real problem and they will be shaking in their boots.
p.s. How were those years on "Let's Make A Deal?"
[Updated on: Mon, 17 October 2011 08:29] Report message to a moderator
|
|
|