Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Loader mandatory ".dat" File extension

Status
Not open for further replies.

rcurva

Programmer
Jul 17, 2001
548
AU

I need your help guys.

I have a source file without any extension and I need this file to be loaded in my staging table. I have prepared a control file that looks like this:

LOAD DATA
INFILE "/source/dir/MYFILE"
INTO TABLE stage_tab
(
columns here ....
)

The problem here, after running the sqlldr there is this error.
SQL*Loader-500: Unable to open file (/source/dir/MYFILE.dat)

Obviously, the loader assumed that the file extension of my source file is ".dat" since I did not specify one.

Is there a way, a parameter maybe, to un-set this mandatory file extension? Otherwise, I'll just have to make some workarounds on my part. I could I either copy (add in my script) to another file with (*.dat) extension or request from my source to include .dat extension in their output file.


 

Actually, I am aware of this one too and have tried it but to no avail. Same error keeps popping out. Btw, I am loading to a 7.3.4 DB.

This could be a bug or something, but we are not in a position to upgrade now since a lot of work needs to be accomplished whe we do so.

Anyway, thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top