SQL*LOADER [message #128107] |
Fri, 15 July 2005 02:56 |
vartul_arora
Messages: 4 Registered: July 2005
|
Junior Member |
|
|
How do I pass a piece of text to the loader file that needs to be stored in the database. This text will change every time I run the loader and I do not have the liberty to hard code this value in the ctl file before every run. The process needs to be automated.
I am working in Unix env. One possible solution can be to set an env variable with the text value and let the control(dot ctl) file access this shell variable.
But dunno how to do this or is it possible ?
|
|
|
|
Re: SQL*LOADER [message #128119 is a reply to message #128107] |
Fri, 15 July 2005 03:56 |
vartul_arora
Messages: 4 Registered: July 2005
|
Junior Member |
|
|
flatfile.dat ---> ddd.ctl ---> loader ----> into the table, xyz.
Need to pass "flatfile.dat" (the piece of text, that will change everytime I run the process) to the ddd.ctl that will in turn store "flatfile.dat" as varchar into xyz.filename column.
|
|
|
|
Re: SQL*LOADER [message #128528 is a reply to message #128149] |
Tue, 19 July 2005 03:54 |
vartul_arora
Messages: 4 Registered: July 2005
|
Junior Member |
|
|
Mahesh, the solution you gave works if I hard code the file name in the sample.ctl every time before I run the sqlldr.
What I am looking for is a way with which I do not have to hard code the file name. The file name is to be picked automatically.
Thanks,
Atul
|
|
|
|
Re: SQL*LOADER [message #129126 is a reply to message #128556] |
Fri, 22 July 2005 01:48 |
vartul_arora
Messages: 4 Registered: July 2005
|
Junior Member |
|
|
Yes, I did went through the script. And in the second pass I did realized the mistake I was doing. It works
Thanks for the help.
Regards,
Atul Arora
|
|
|