Home » RDBMS Server » Server Utilities » Passing parameter to sqlloader
Passing parameter to sqlloader [message #69774] Mon, 04 March 2002 14:52 Go to next message
Mike
Messages: 417
Registered: September 1998
Senior Member
Hi,
Is there a way to pass a constant value to sqlloader?. What I mean is if I have some vendor's data in a file, I want to create a batch file which accepts vendor's id and calls sqlloader to insert into a table. So I need to pass vendor id to sqlloader. How can I do this?

Thanks

Mike
Re: Passing parameter to sqlloader [message #69775 is a reply to message #69774] Mon, 04 March 2002 18:39 Go to previous messageGo to next message
Jim Willis
Messages: 11
Registered: October 2001
Junior Member
If this is in a UNIX environment you can do the following:

1) create a unix shell script to execute sql loader.
2) create a "skeleton" ctl card with "variables" to replace with your constant values using the sed command.
3) just before executing the sql loader command you would use sed to replace the variables with constants and redirect the output to a "real ctl card" that would be used with execution of sql loader.

I now do the same thing for our loads.

Hope this helps.

Jim Willis
Re: Passing parameter to sqlloader [message #72999 is a reply to message #69775] Tue, 13 January 2004 03:57 Go to previous message
Femi Adigun
Messages: 6
Registered: June 2002
Junior Member
How can I pass parameters to sqlldr in a Windows environment?
Previous Topic: error 704
Next Topic: Passing parameters to sqlldr
Goto Forum:
  


Current Time: Tue Nov 12 13:51:29 CST 2024