Home » RDBMS Server » Server Utilities » SQL*Loader and .bat files
SQL*Loader and .bat files [message #169008] Mon, 24 April 2006 11:31 Go to next message
cjsx
Messages: 10
Registered: March 2006
Junior Member
I am processing a control file via SQL*Loader. When SQL*Loader is done then I want to continue back to my batch file and process the next command (which is a SQL*Plus command) but the next command is never processed? Is there a command I should put in the SQL*Loader control file?

Here is my batch file (the last line needs to run but is not):

@ECHO OFF

set oracle_home=c:\oracle\10gclient

SQLPLUS /NOLOG @\\scripts\EOB\e_tables.sql

SQLLDR CONTROL = "\\scripts\EOB\e.ctl", LOG="\\scripts\EOB\e.log", BAD = "\\scripts\EOB\e.bad", DATA= "\\scripts\EOB\e_62", USERID=id/pw@deves

SQLPLUS /NOLOG @\\scripts\EOB\e_run.sql
--


Thanks,
cj



Re: SQL*Loader and .bat files [message #169020 is a reply to message #169008] Mon, 24 April 2006 13:31 Go to previous messageGo to next message
markmal
Messages: 113
Registered: April 2006
Location: Toronto, Canada
Senior Member
That can happen for example if you have SQLLDR.BAT or .CMD file.

Try
SQLLDR.EXE CONTROL = "\...

By the way, does loader work and finish when you run it directly from command line?
Re: SQL*Loader and .bat files [message #169131 is a reply to message #169008] Tue, 25 April 2006 04:28 Go to previous message
srikanth_hans
Messages: 8
Registered: April 2006
Junior Member
try this way

yor .bat or .cmd file should look some thing like this
sqlldr login---
sqlplus -s login---


hope this will help you.
Previous Topic: full import
Next Topic: Default file location in SQL* Loader
Goto Forum:
  


Current Time: Fri Jul 05 18:50:53 CDT 2024