Agenda
Overview
Data load methods
Architecture
Invoking SQL*Loader
Advantages
Disadvantages
Examples
February 14, 201
5
Overview
Direct Load
NOT NULL
Unique
Primary Keys
Check constraints
Foreign keys
Architecture
Log file
Log file
Messages indicating when records
have been discarded
A summary of the load that includes
the number of logical records read
from the data file, the number of rows
rejected because of errors, the
number of rows discarded because of
selection criteria, and the elapsed
time of the load
File extension is .log
Bad file
10
Discard File
11
Invoking SQL*Loader
sqlldr system/manager,control=product.ctl,log=product.log
sqlldr system/manager, control=product.ctl, log=product.log
sqlldr system/manager control=product.ctl log=product.log
12
Contd..
USERID={username[/password][@net_service_name]|/}
CONTROL=control_file_name
LOG=path_file_name
BAD=path_file_name
DATA=path_file_name
DISCARD=path_file_name
DISCARDMAX=logical_record_count
SKIP=logical_record_count
LOAD=logical_record_count
ERRORS=insert_error_count
SILENT=[(]keyword[,keyword...][)]
DIRECT={TRUE | FALSE}
PARFILE=path_file_name
February 14, 201
5
13
Control file
14
Control file
15
Control file
{LOAD} [DATA]
[INFILE clause [INFILE clause...]]
[INSERT | APPEND | REPLACE | TRUNCATE]
INTO TABLE clause [INTO TABLE clause...]
[BEGINDATA]
February 14, 201
5
16
Control file
17
Advantages
18
Disadvantages
19
20
21
22
Contd..
23
24
Contd..
25
26