5.loading Data Into Database
5.loading Data Into Database
Destination Type
Tape Drive (s)
File (s) Regular Incremental
NFS Vol Table (s)
Incremental
User (s) - Schema
Cumulative
DB (Full) -DBA Complete
Input File
Delimiter Fixed Position Import
Control File
Comma Log File
Oracle
Tilde Bad File database
Semicolon Direct Load
Disc File
Day - 6 Page 1
SQL*Loader Using SQL*Loader
Loader control file
Input datafiles
$sqlldr hr/hr \
> control=case1.ctl \
Parameter file > log=case1.log
SQL*Loader Rejected
(optional)
Field processing
case1.ctl
Discarded Accepted
Record selection Bad
Selected file
SQL*Loader
Oracle server
Discard file
Inserted Rejected
(optional)
EMPLOYEES table
Log file
case1.log
Database datafiles
The loader control file tells SQL*Loader: • SQL*Loader reads data from one or more files
• Where to find the load data specified in the control file.
• The data format • From SQL*Loader’s perspective, the data in the
datafile is organized as records.
• How to manipulate the data
• A datafile can be in one of two formats:
– Fixed-record format
– Variable-record format
Day - 6 Page 2
Logical Records Discarded or Rejected Records
Export
Import
Oracle
database
Day - 6 Page 3
Copyright © Oracle Corporation, 2001. All rights reserved.
Oracle Export and Import Utility Overview Methods of Invoking the
Export and Import Utilities
Day - 6 Page 6