I use cfexecute to run sqlldr in windows seccessfully. I use the same technique to do it in unix and it failed. Have debugged the problem for almost one week with no result
Oracle client has been installed on the server, path to the control file, source file have been checked and all are good but once cfexecute is run, the error pop up. I don't know what else to do
Found similar problem on the web, followed it and still did not work:
http://www.justskins.com/forums/cfexecute-and-sqlldr-run-56805.html
Here is the only code to run sqlldr that's been giving me a headache:
<cfexecute name="sqlldr" arguments="DEMO@DEMO/pwd2011 control=/opt/coldfusion8/runtime/bin/my_ControlFile.ctl" timeout="500"></cfexecute> Here is the error I got:
An exception occurred when invoking an external process. | |
| The cause of this exception was that: java.io.IOException: Cannot run program "sqlldr": error=2, No such file or directory. | |
30 : <CFFUNCTION name="RunSQLLDR"> 31 : 32 : <cfexecute name="sqlldr" arguments="DEMO@DEMO/pwd2011 control=/opt/coldfusion8/runtime/bin/my_ControlFile.ctl" timeout="500"></cfexecute> 33 : 34 : </CFFUNCTION> | |
Can anyone who have successfully use cfexecute for running sql loader on Oracle 11 help me?
Oh sorry I thought you were referring to the path for the control file.
So you mean the path for sqlldr? I need to ask the server guy for that. Thanks for pointing that out.
The reason I did not think I have to provide path for sqlldr is because on windows I did not provide path for sqlldr and it is working
Just got a respond from the server guy and I tried to use a path to sqlldr as suggested:
<cfexecute name="/home/oracle/product/11.1.0/cient_1/bin/sqlldr" arguments="DEMO@DEMO/pwd2011 control=/opt/coldfusion8/runtime/bin/my_ControlFile.ctl" timeout="500"></cfexecute>
When I ran it, I did not get an error anymore but nothing got inserted into the DB (table). So in other words, sqlldr is still not running.
I checked the contorl file, the paths to the text file, the columns, everything is correct.
Anyone can help?
North America
Europe, Middle East and Africa
Asia Pacific