SQLLDR Sintaxis
SQLLDR Sintaxis
PURPOSE
-------
This article will give the reader a general overview of the syntax used
in SQL*Loader. The article will not go into any detailed level of the
syntax and the associated arguments/options to the SQL*Loader utility.
This article will only describe the SQL*Loader syntax for the command line
based version. For more information about the graphical interface, please
see the documentation for Oracle Enterprise Manager under Data Management
Tools or see the NT specific documentation about the Instance Manager.
SYNTAX DESCRIPTION
------------------
The command line syntax is comprised of the command itself (sqlldr), two man-
datory arguments and several optional arguments. The arguments are specified
as keywords assigned a value, e.g. LOG=<filename>. Below is a short description
of some of the arguments, for an extensive and full description of all the
keywords please read ch. 4 in the Oracle 9i Utilities Guide and ch. 6 in the
Oracle 8i Utilities Guide.
Mandatory arguments:
username/password
CONTROL=<filename>
Optional arguments:
LOG=<filename> Specifies a log file
BAD=<filename> Specifies the file where all bad records are put
DATA=<filename> Specifies the data to be loaded into the database
DISCARD=<filename> Specifies where the discarded records go
ERRORS=<integer> Specifies number of errors allowed before termination
DIRECT=<TRUE|FALSE> Specifies if loading method is DIRECT or CONVENTIONAL
PARFILE=<filename> Specifies the parameter file to be used by SQL*Loader
All the arguments can be supplied on the command line, but they can also be put
into a parameter file, which will be read by SQL*Loader if the PARFILE argument
is used.
The control file contains further parameters used by SQL*Loader to load the
data. These are described in the Utilities Guide.
1 de 2 29/03/2010 16:23
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&...
Example:
--------
This example will load data into the database using the DIRECT method.
Furthermore, the data will be loaded into the schema of SCOTT. The control file
emp.ctl will hold all the other directives (arguments) needed by SQL*Loader to
load the data into the proper table(s).
REFERENCES
----------
Oracle8i Database Utilities Part No. A76955
Oracle9i Database Utilities Part No. A90192
Related
Products
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Standard Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Personal Edition
Keywords
LOADER; SYNTAX
2 de 2 29/03/2010 16:23