Home » RDBMS Server » Server Utilities » SQLLDR
SQLLDR [message #179485] Tue, 27 June 2006 11:11 Go to next message
Pallavi123
Messages: 3
Registered: June 2006
Junior Member
My SQLLDR INFILE name is appended with current date evryday.
How do I specify the INFILE attribute dynamically in the control file?

Re: SQLLDR [message #179490 is a reply to message #179485] Tue, 27 June 2006 12:12 Go to previous messageGo to next message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
You can run sqlldr with all the parameters on the command line such as:

sqlldr control=foo.ctl data=foo.`date +%m%d%y` bad=...etc.
Re: SQLLDR [message #179500 is a reply to message #179490] Tue, 27 June 2006 14:16 Go to previous messageGo to next message
Pallavi123
Messages: 3
Registered: June 2006
Junior Member
Thanks much
Re: SQLLDR [message #179521 is a reply to message #179500] Tue, 27 June 2006 16:24 Go to previous message
Pallavi123
Messages: 3
Registered: June 2006
Junior Member
Can I use a wildcard character in the DATA file.

I use this in a batch file:

sqlldr USERID=... CONTROL=.. DATA=XYZ%DATE%*.*

This throws an error
SQL*Loader-500: Unable to open file XYZ06272006*.*

Is there any workaround?

Thanks.

Previous Topic: ORA-01041: internal error. hostdef extension doesn't exist
Next Topic: Import using compressed file
Goto Forum:
  


Current Time: Thu Jul 04 19:35:03 CDT 2024