problem with sqlldr [message #309983] |
Sun, 30 March 2008 21:09 |
kowalsky
Messages: 37 Registered: May 2003
|
Member |
|
|
hi all,
I am trying to have sqlldr running against a file:
C:\oratest\20080318
Is it possible I get SQL*Loader-500: Unable to open file and 503 file not found just because the file name does not have an extension?
I can see that any file name I try it looks after whateverFileName.dat! Is there a way to have sqlldr working with files that do not have extensions?
Thanks,
kowalsky
|
|
|
|
|
|
Re: problem with sqlldr [message #310079 is a reply to message #310065] |
Mon, 31 March 2008 03:42 |
rajatratewal
Messages: 507 Registered: March 2008 Location: INDIA
|
Senior Member |
|
|
Quote: |
GO TO MY COMPUTER->TOOLS->FOLDER OPTIONS->VIEW And uncheck the option Hide Extensions For Known File Types
Then you are going to see full name of your file.
|
Can you please post the DATA FILE And CONTROL FILE.How the hell we are going to know what is the problem.
|
|
|
Re: problem with sqlldr [message #310131 is a reply to message #309983] |
Mon, 31 March 2008 06:34 |
kowalsky
Messages: 37 Registered: May 2003
|
Member |
|
|
load data
infile 'C:\oratest\20080318'
BADFILE 'c:\oratest\badsyno.txt'
APPEND
into table synotest
fields terminated by "|" optionally enclosed by '"'
(id4, cityname, maxtemp, mintemp, precip DEFAULTIF(precip = "TR") , sog)
When I run this, sqlldr issues error messges as follows:
SQL*Loader-500: Unable to open file (C:\oratest\myfile.dat)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified
SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
If I change the extension of the file, then everything works (more specifically, if I change the name of the file to be 20080318.dat, then I can leave the INFILE statement unchanged, it will find the file),
thanks,
kowalsky
|
|
|
|
|
|
Re: problem with sqlldr [message #310217 is a reply to message #309983] |
Mon, 31 March 2008 10:41 |
kowalsky
Messages: 37 Registered: May 2003
|
Member |
|
|
Michel,
the control file was shown a few posts before; here it is again:
load data
infile 'C:\oratest\20080318'
BADFILE 'c:\oratest\badsyno.txt'
APPEND
into table synotest
fields terminated by "|" optionally enclosed by '"'
(id4, cityname, maxtemp, mintemp, precip DEFAULTIF(precip = "TR") , sog)
thanks,
kowalsky
|
|
|
|
Re: problem with sqlldr [message #310222 is a reply to message #310218] |
Mon, 31 March 2008 10:55 |
kowalsky
Messages: 37 Registered: May 2003
|
Member |
|
|
SQL*Loader: Release 8.1.7.0.0 - Production on Mon Mar 31 11:52:27 2008
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Control File: c:\testdir\syno.ctl
Data File: C:\TestDir\20080325.dat
Bad File: c:\testdir\20080325.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 65536 bytes
Continuation: none specified
Path used: Conventional
Table SYNOTEST, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
ID4 FIRST * | O(") CHARACTER
CITYNAME NEXT * | O(") CHARACTER
MAXTEMP NEXT * | O(") CHARACTER
MINTEMP NEXT * | O(") CHARACTER
PRECIP NEXT * | O(") CHARACTER
DEFAULT if PRECIP = 0X5452(character 'TR')
SOG NEXT * | O(") CHARACTER
SQL*Loader-500: Unable to open file (C:\TestDir\20080325.dat)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
C:\TestDir>dir
Volume in drive C has no label.
Volume Serial Number is 305E-C541
Directory of C:\TestDir
03/31/2008 11:06 AM <DIR> .
03/31/2008 11:06 AM <DIR> ..
03/13/2008 09:47 AM 5,990 20080313
03/26/2008 04:35 PM 5,989 20080325
03/31/2008 11:21 AM 826 20080325.bad
03/31/2008 11:52 AM 200 syno.ctl
03/31/2008 11:52 AM 1,414 syno.log
5 File(s) 14,419 bytes
2 Dir(s) 11,460,278,784 bytes free
C:\TestDir>
thanks,
kowalsky
|
|
|
|
Re: problem with sqlldr [message #310227 is a reply to message #309983] |
Mon, 31 March 2008 11:15 |
kowalsky
Messages: 37 Registered: May 2003
|
Member |
|
|
Michel,
I am sorry for creating so much confusion ...
I know I should have paid attention, but the scripts run on at least three different machines, I've been in front of each and opened the forum and pasted whatever was on that particular machine.
On each machine, though, everything is consistent.
Let's take this one below:
C:\TestDir>dir
Volume in drive C has no label.
Volume Serial Number is 305E-C541
Directory of C:\TestDir
03/31/2008 11:06 AM <DIR> .
03/31/2008 11:06 AM <DIR> ..
03/13/2008 09:47 AM 5,990 20080313
03/26/2008 04:35 PM 5,989 20080325
03/31/2008 11:21 AM 826 20080325.bad
03/31/2008 11:52 AM 200 syno.ctl
03/31/2008 11:52 AM 1,414 syno.log
5 File(s) 14,419 bytes
2 Dir(s) 11,460,278,784 bytes free
C:\TestDir>
The log file is:
SQL*Loader: Release 8.1.7.0.0 - Production on Mon Mar 31 11:52:27 2008
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Control File: c:\testdir\syno.ctl
Data File: C:\TestDir\20080325.dat
Bad File: c:\testdir\20080325.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 65536 bytes
Continuation: none specified
Path used: Conventional
Table SYNOTEST, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
ID4 FIRST * | O(") CHARACTER
CITYNAME NEXT * | O(") CHARACTER
MAXTEMP NEXT * | O(") CHARACTER
MINTEMP NEXT * | O(") CHARACTER
PRECIP NEXT * | O(") CHARACTER
DEFAULT if PRECIP = 0X5452(character 'TR')
SOG NEXT * | O(") CHARACTER
SQL*Loader-500: Unable to open file (C:\TestDir\20080325.dat)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
The control file is:
load data
infile 'C:\testdir\20080325'
APPEND
into table synotest
fields terminated by "|" optionally enclosed by '"'
(id4, cityname, maxtemp, mintemp, precip DEFAULTIF(precip = "TR") , sog)
Thanks,
kowalsky
|
|
|
|
|
|
|
|
|
|
|
Re: problem with sqlldr [message #535351 is a reply to message #535345] |
Tue, 13 December 2011 10:13 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
*Maybe* it is possible; you'd need to wait for someone who uses AIX and knows its tips & tricks. I'm not one of these people.
|
|
|