Q
Problem solve Get help with specific problems with your technologies, process and projects.

Running SQL*Loader from within PL/SQL procedure

On a Unix system, is there any way to run SQL*Loader from within a PL/SQL procedure or package? I need variables like the input file name and other info that is collected from a parameter table in order to complete the load.

There's not a direct way to do so. You can read the tables you need and then use UTL_FILE to write to your SQL*Loader parfile or something similar in PL/SQL. You could also simply write a shell script to start SQL*Plus and execute a query that pulls back the data you need and then pipe that data to the next command in your script which would be to run SQL*Loader.

For More Information


This was last published in June 2003

Dig Deeper on Using Oracle PL-SQL

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close