Professional Documents
Culture Documents
Loading Data Into A Database
Loading Data Into A Database
Other applications
Oracle
database
Export
SQL*Loader
Import
Oracle
database
Direct-load INSERT
Server
EMPLOYEES table process
Slave Slave
process process
EMPLOYEES table
Parameter file
SQL*Loader Rejected
(optional)
Field processing
Discarded Accepted
Record selection
Bad
Selected file
Oracle server
Discard file Rejected
(optional) Inserted
Log file
Database datafiles
Array
insert
Conventional
Direct
Table Data path
save
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
$sqlldr hr/hr \
> control=case1.ctl \
> log=case1.log direct=Y
case1.ctl
SQL*Loader
EMPLOYEES table
case1.log
• Bad file
– SQL*Loader rejects records when the input format is
invalid
– If the Oracle database finds that the row is invalid,
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
• Datafile Information
• Table Load Information
• Summary Statistics
• Additional statistics for direct path loads and
multithreading Information