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


Dig Deeper on Using Oracle PL-SQL

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close