Home
Technical Training
Oracle 10g Training
SQL*Loader - Loading Data from Data Files
SQL*Loader - Loading data using OEM
SQL*Loader - Loading data from Command Prompt
Here is the logfile generated from the above demo.
This tutorial is part of a Oracle 10g Training tutorial series. Read it from the beginning and learn yourself.
Technical Training
Oracle 10g TrainingTable of Contents
SQL*Loader - Loading Data from Data Files
SQL*Loader - Loading data using OEM
SQL*Loader - Loading data from Command PromptSQL*Loader - Loading data from Command Prompt
Page 3 of 3
Author : Exforsys Inc. Published on: 25th Jul 2005 | Last Updated on: 21st May 2011
SQL*Loader - Loading Data from Data Files
Login to SQL Plus to remove the data we have loaded from OEM.
Launch Command Prompt
Sample Code
- sqlldr username/password@dbname control=commandload.ctl
Copyright exforsys.com


Ads
Here is the copy of the control file used in the example. Sample Code
- LOAD DATA
- INFILE 'E:oraclesqlloadercommandload.dat' "STR 'rn'"
- APPEND
- INTO TABLE customer
- FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
- (
- FIRST_NAME CHAR,
- LAST_NAME CHAR,
- ADDRESS CHAR,
- CITY CHAR,
- COUNTRY CHAR
- )
Copyright exforsys.com
Here is the logfile generated from the above demo.
Sample Code
- SQL*Loader: Release 11.2.0.1.0 - Production ON Sun Mar 6 13:19:31 2011
- Copyright (c) 1982, 2009, Oracle AND/OR its affiliates. ALL rights reserved.
- Control File: commandload.ctl
- DATA File: E:oraclesqlloadercommandload.dat
- File processing OPTION string: "STR 'rn'"
- Bad File: commandload.bad
- Discard File: none specified
- (Allow ALL discards)
- Number TO LOAD: ALL
- Number TO skip: 0
- Errors allowed: 50
- Bind array: 64 rows, maximum of 256000 bytes
- Continuation: none specified
- Path used: Conventional
- TABLE CUSTOMER, loaded FROM every logical record.
- INSERT OPTION IN effect FOR this TABLE: APPEND
- COLUMN Name Position Len Term Encl Datatype
- ------------------------------ ---------- ----- ---- ---- ---------------------
- FIRST_NAME FIRST * , O(") CHARACTER
- LAST_NAME NEXT * , O(") CHARACTER
- ADDRESS NEXT * , O(") CHARACTER
- CITY NEXT * , O(") CHARACTER
- COUNTRY NEXT * , O(") CHARACTER
- Table CUSTOMER:
- 4 Rows successfully loaded.
- 0 Rows not loaded due to data errors.
- 0 Rows not loaded because all WHEN clauses were failed.
- 0 Rows not loaded because all fields were null.
- Space allocated for bind array: 82560 bytes(64 rows)
- Read buffer bytes: 1048576
- Total logical records skipped: 0
- Total logical records read: 4
- Total logical records rejected: 0
- Total logical records discarded: 0
- Run began on Sun Mar 06 13:19:31 2011
- Run ended on Sun Mar 06 13:19:31 2011
- Elapsed time was: 00:00:00.05
- CPU time was: 00:00:00.03 )
Copyright exforsys.com
Oracle 10g Training







