0% found this document useful (0 votes)
7 views2 pages

SQLLDR Sintaxis

This article provides a general overview of the command line syntax used in SQL*Loader, a utility for loading data into a database. It outlines mandatory and optional arguments for the command, including username/password and control file specifications. Additionally, it highlights that further details can be found in the Oracle Utilities Guide and provides an example of a SQL*Loader command.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

SQLLDR Sintaxis

This article provides a general overview of the command line syntax used in SQL*Loader, a utility for loading data into a database. It outlines mandatory and optional arguments for the command, including username/password and control file specifications. Additionally, it highlights that further details can be found in the Oracle Utilities Guide and provides an example of a SQL*Loader command.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&...

A quick overview of the syntax in SQL*Loader [ID 174237.1]

Modified 29-JAN-2002 Type BULLETIN Status PUBLISHED

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.

SCOPE & APPLICATION


-------------------

SQL*Loader is a utility used to load data into a database. The utility


comes in 2 distinct versions:

1) A graphical user interfaced version


2) A command line based version

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

If the username/password argument is not specified, you will be prompted for it


if there is a 2nd argument on the command line. If there are no arguments at all
on the command line, e.g. sqlldr , you will get the help page for SQL*Loader.
Here you can see what options are available to you.

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.

If SQL*Loader is not supplied with a username/password or a control file, you


will be prompted for the missing information. Any other argument can be left
out and will take a default value. The are more arguments available and they
can be listed by running the sqlldr command without any arguments. For a more
detailed description of all arguments, please refer to the Utilities Guide.

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:
--------

sqlldr scott/tiger control=emp.ctl log=emp.txt direct=true

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

You might also like