?
Solved

sql loader call

Posted on 2007-03-29
6
Medium Priority
?
732 Views
Last Modified: 2008-02-01
Is it possible to call an sqlloader control file from some script..say any shell scripts or batch scripts...Please explain in detail the possiblities..if you have examples then it would be much appreciated
0
Comment
Question by:suhinrasheed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 3

Expert Comment

by:popa_duhu
ID: 18814468
maybe this faq will help:
http://orafaq.com/faqloadr.htm
0
 
LVL 3

Expert Comment

by:popa_duhu
ID: 18814481
what do you mean call the control file from a shell script ?

or you mean call sqlldr (with the control file as param) from a shell script ?
0
 
LVL 27

Expert Comment

by:sujith80
ID: 18814512
The shell script would be as simple as:

# start of script

sqlldr user/pwd@host control=$1

# end of script

and you can call this script from the prompt as

$<script name> <control file name>


OR are you looking for something else?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:suhinrasheed
ID: 18821810
I am looking for creating a batch job that executes a Sql loader process?

Is it Possible..any examples
0
 

Author Comment

by:suhinrasheed
ID: 18822031
What i exactly want is that i have a sqloader process being called from a .bat file.
Now i want to know whether i can call this .bat file from an Oracle job.

My Oracle version is 9.2.0.7
0
 
LVL 27

Accepted Solution

by:
sujith80 earned 2000 total points
ID: 18822156
Calling that batch file from an Oracle Job - is not going to be straight forward. You will have to write a Java Stored procedure to make that call.

An easier and equally performant alternative would be - Define an external table instead of the sqlloader, and define an oracle job to load from this external table.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question