3

I have following 3 control files which I have to execute on my DB server-

  1. X.ctl
  2. Y.ctl
  3. Z.ctl

I know the command to execute them one by one which is as follows -

sqlldr PP_DBUSER/PP_DBUSER control=X.ctl log=X.log

However, can anybody tell me if it is possible to execute all the 3 files with one command?

Bhushan
  • 33
  • 1
  • 3

3 Answers3

2

No sir, You cannot.
But you can run 3 instances of sqlldr concurrently, each with a diffrent control file.

Daniel Haviv
  • 1,036
  • 8
  • 16
0

I believe @Daniel is correct and you cannot execute multiple .ctl files with a single sqlldr command; however, you can put multiple sqlldr commands in one batch/script file and run a single command to execute. This works well if this will need to be repeated multiple times.

Cofad
  • 134
  • 1
  • 5
0

Execute in CMD:

for %i in (*.ctl) do sqlldr user/pass@tns control=%~ni.ctl log=%~ni.log

or

for %%i in (*.ctl) do sqlldr user/pass@tns control=%%~ni.ctl log=%%~ni.log
Alex
  • 31
  • 1
  • 1
  • 7