Skip navigation
Currently Being Moderated

cfexecute and sqlldr problem

Mar 6, 2012 4:59 AM

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:

The following information is meant for the website developer for debugging purposes. Error Occurred While Processing Request

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?

 

 

 

 

 

 
Replies
  • Currently Being Moderated
    Mar 6, 2012 5:01 AM   in reply to alecken

    Use the full path to sqlloader, the error message clearly says it can't find it.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 6, 2012 5:56 AM   in reply to alecken

    Eh? "sqlldr" isn't a full path.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 6, 2012 6:12 AM   in reply to alecken

    Yeah on Windows the Oracle bin directory will be in the path so it's not needed, it will be required for linux.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 12, 2012 9:30 AM   in reply to alecken

    Have you looked in the sqlloader log file? Just because nothing was inserted doesn't mean sqlldr isn't running, it could be a data issue.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 12, 2012 10:57 AM   in reply to alecken

    Okay, try instead calling the sqlldr from a bash script, which puts the std output to a file, then call that instead. You'll then be able to see any commandline errors it throws.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points