Professional Documents
Culture Documents
Other applications
Oracle
database
Export
SQL*Loader
Import
Oracle
database
Direct Load
Slave Slave
process process
EMPLOYEES table
Parameter file
SQL*Loader Rejected
(optional)
Field processing
Discarded Accepted
Record selection Bad
file
Selected
Oracle server
Discard file
Inserted Rejected
(optional)
Log file
$sqlldr hr/hr \
> control=case1.ctl \
> log=case1.log direct=Y
case1.ctl
SQL*Loader
EMPLOYEES table
case1.log
Instance
Array SGA Shared pool
insert
Conventional
Data Direct
Table save path
High-water
mark
Space used only by conventional load
Temporary segments
load1.dat SQL*Loader
load1.ctl
SQL*Loader
load2.dat
load2.ctl
SQL*Loader
load3.dat
load3.ctl
Table
High-water
mark
• Bad file:
– SQL*Loader rejects records when the input format is
invalid.
– If the Oracle database finds that the row is invalid,
then the record is rejected and SQL*Loader puts it in
the bad file.
• Discard file:
– This can be used only if it has been enabled.
– This file contains records that were filtered out
because they did not match any record-selection
criteria specified in the control file.
• Header information
• Global information
• Table information
• Data file information
• Table load information
• Summary statistics
• Additional statistics for Direct path loads and
multithreading information