SQL - Loader
SQL - Loader
One can load data into an Oracle database by using the sqlldr (sqlload on some
platforms) utility. Invoke the utility without arguments to get a list of available
parameters
Oracle SQL*Loader Overview
SQL*Loader is the primary method for quickly populating Oracle tables with data from
external files. It has a powerful data parsing engine that puts little limitation on the format
of the data in the datafile. SQL*Loader is invoked when you specify the sqlldr command
or use the Enterprise Manager interface.
Key Features
• Load data across a network. This means that a SQL*Loader client can be run on a
different system from the one that is running the SQL*Loader server.
• Load data from multiple datafiles during the same load session
• Load data into multiple tables during the same load session
• Specify the character set of the data
• Selectively load data
• Load data from disk, tape, or named pipe
• Specify the character set of the data
• Generate sophisticated error reports, which greatly aid troubleshooting
• Load arbitrarily complex object-relational data
• Use either conventional or direct path loading.
File Types
LOBFILEs
LOB data can be lengthy enough that it makes sense to load it from a LOBFILE. LOB
data instances are still considered to be in fields, but these fields are not organized into
records. Therefore, the processing overhead of dealing with records is avoided. This type
of or organization of data is ideal for LOB loading.
Bulk Loads
You can use SQL*Loader to bulk load objects, collections, and LOBs. SQL*Loader
supports the following bulk loads:
• Load data from multiple datafiles during the same load session
• Two collection types: nested tables and VARRAYS
• Four LOB types: BLOBs, CLOBs, NCLOBs, and BFILEs.
Load Methods
SQL*Loader provides three methods to load data: Conventional Path, Direct Path, and
External Table.
A parallel direct path load allows multiple direct path load sessions to concurrently load
the same data segments. Parallel direct path is more restrictive than direct path.
There are two advantages of using external table loads over conventional path and direct
path loads:
• An external table load attempts to load datafiles in parallel. If a datafile is big
enough, it will attempt to load that file in parallel.
• An external table load allows modification of the data being loaded by using SQL
functions and PL/SQL functions as part of the INSERT statement that is used to
create the external table.
Summary
SQL*Loader is a high-speed data loading utility that loads data from external files into
tables in an Oracle database. It provides database administrators with the fast
performance and flexibility required to get load jobs conducted as quickly and efficiently
as possible.