Link to home
Start Free TrialLog in
Avatar of Jay Redd
Jay Redd

asked on

SQL Developer Loader Export Without Path Name On INFILE

Hi.
I am using sql loader to deliver some files to my client. I LOVE that you can use sql developer's export feature to create the LDR and CTL files (type: loader in the export wizard). However, it embeds the file name like this

INFILE="C:\DEVTOP\PROJ1\TABLE1_TABLE_DATA.LDR"

in the control file. If I manually remove C:\DEVTOP\PROJ1\, they work great in any directory.
Since I have many tables though, I'd love to know if there is a way to have sql developer generate my CTL files without sticking the whole path in there like that...
Avatar of David VanZandt
David VanZandt
Flag of United States of America image

If a parameter is absent from the control file, you should be able to specify it on the command line.  My preference would be to set an O/S variable, load it with the desired string, and reference the variable in the control file.

Syntax attached.

Solution example: http://www.orafaq.com/forum/t/12234/0/
Avatar of Jay Redd
Jay Redd

ASKER

It's not absent, I WANT it to be absent. I want to avoid manual editing, not add more manual editing.
ASKER CERTIFIED SOLUTION
Avatar of David VanZandt
David VanZandt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial