Link to home
Start Free TrialLog in
Avatar of jpm3121
jpm3121

asked on

SQL Load from within another script

Does anybody know how to execute sqlldr from within a sql shell script?  Something like:

select sysdate from dual;

@ /sqlldr apps/apps@db data.ctl;

select sysdate from dual;
ASKER CERTIFIED SOLUTION
Avatar of stemu2000
stemu2000
Flag of Japan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have a form with the WHEN-BUTTON-PRESSED trigger that executes the following code which launches the SQl loader.

this is an example of the code.

host ('sqlldr.exe vail_wt/superman@enterprise control=V:\VAILTECH\WATER\modecode\DMODE.CTL');

hope this helps :)
Avatar of meenakshis
meenakshis

From the SQL file you may write -

HOST sqlldr <username>/<password>@<hostname> <your control file>

Does it help??