SQL*Loader is flexible and offers many options
that should be considered to maximize the speed of data loads.
Use Direct Path Loads - The conventional path
loader essentially loads the data by using standard insert statements.
The direct path loader (direct=true) loads directly into the
Oracle data files and creates blocks in Oracle database block format.
The fact that SQL is not being issued makes the entire process much
less taxing on the database. There are certain cases, however,
in which direct path loads cannot be used (clustered tables). To
prepare the database for direct path loads, the script
$ORACLE_HOME/rdbms/admin/catldr.sql.sql must be executed.
Disable Indexes and Constraints. For
conventional data loads only, the disabling of indexes and constraints
can greatly enhance the performance of SQL*Loader.
Use a Larger Bind Array. For conventional
data loads only, larger bind arrays limit the number of calls to the
database and increase performance. The size of the bind array is
specified using the bindsize parameter. The bind array's
size is equivalent to the number of rows it contains (rows=)
times the maximum length of each row.
Use ROWS=n to Commit Less Frequently.
For conventional data loads only, the rows parameter
specifies the number of rows per commit. Issuing fewer
commits will enhance performance.
Use Parallel Loads. Available with direct
path data loads only, this option allows multiple SQL*Loader jobs to
control=first.ctl parallel=true direct=true
control=second.ctl parallel=true direct=true
Use Fixed Width Data. Fixed width data
format saves Oracle some processing when parsing the data. The
savings can be tremendous, depending on the type of data and number of
Disable Archiving During Load. While this
may not be feasible in certain environments, disabling database
archiving can increase performance considerably.
Use unrecoverable. The unrecoverable
option (unrecoverable load data) disables the writing of the data to
the redo logs. This option is available for direct path loads
Get the Complete
Oracle Utility Information
The landmark book
Utilities The Definitive Reference" contains over 600 pages of
filled with valuable information on Oracle's secret utilities.
This book includes scripts and tools to hypercharge Oracle 11g
performance and you can
for 30% off directly from the publisher.