SQL Loader1
SQL Loader1
SQL*Loader is an Oracle-supplied utility that allows you to load data from a flat file
into one or more database tables. It has a powerful data parsing engine that
supports data present in any format in the data files. It can load data from multiple
datafiles during the same load session as well as can load data into multiple tables
during the same load session. SQL*Loader can manipulate the data before loading
it, using SQL functions.
Control File:
The control file is a text file written in a language that SQL*Loader understands. The
control file tells SQL*Loader where to find the data, how to parse and interpret the
data, where to insert the data, and more.
As SQL*Loader executes, it may create a file called the discard file. The discard file
contains records that were filtered out of the load because they did not match any
record-selection criteria specified in the control file. The discard file therefore
contains records that were not inserted into any table in the database.
Log File:
When SQL*Loader begins execution, it creates a log file. If it cannot create a log file,
execution terminates. The log file contains a detailed summary of the load,
including a description of any errors that occurred during the load.
SQL*Loaders Capabilities:
SQL*Loader can read from multiple input files in a single load session.
SQL*Loader can handle files with fixed-length records, variable-length records, and
stream-oriented data.
Not only can SQL*Loader read from multiple input files, but it can load that data into
several different database tables, all in the same load session.
SQL*Loader allows you to use Oracles built-in SQL functions to manipulate the data
being read from the input file.
SQL*Loader includes functionality for dealing with whitespace, delimiters, and null data.
In addition to standard relational tables, SQL*Loader can load data into object tables,
varying arrays (VARRAYs), and nested tables.
SQL*Loader can handle character set translation between the input data file and the
database.