OracleDataWriter

We assume that you have already learned what is described in:

If you want to find the right Writer for your purposes, see Writers Comparison.

Short Summary

OracleDataWriter loads data into Oracle database.

Component Data output Input ports Output ports Transformation Transf. required Java CTL
OracleDataWriterdatabase0-10-1nononono

Abstract

OracleDataWriter loads data into database using Oracle database client. It can read data through the input port or from an input file. If the input port is not connected to any other component, data must be contained in an input file that should be specified in the component. If you connect some other component to the optional output port, rejected records are sent to it. Oracle sqlldr database utility must be installed on the computer where CloverETL runs.

Icon

Ports

Port typeNumberRequiredDescriptionMetadata
Input01)Records to be loaded into the databaseAny
Output0noRejected recordsInput 0

Legend:

1): If no file containing data for loading (Loader input file) is specified, input port must be connected.

OracleDataWriter Attributes

AttributeReqDescriptionPossible values
Basic
Path to sqlldr utilityyesName of sqlldr utility, including path. 
TNS nameyesTNS name identifier. 
User nameyesUsername to be used when connecting to the Oracle database. 
PasswordyesPassword to be used when connecting to the Oracle database. 
Oracle tableyesName of the database table into which the records should be loaded. 
Advanced
Control script Control script for the sqlldr utility. See Control Script for more information. 
Append Specifies what should be done with database table. See Append Attribute for more information.append (default) | insert | replace | truncate
Log file name Name of the file where the process is logged.${PROJECT}/loaderinputfile.log
Bad file name Name of the file where the records causing errors is written.${PROJECT}/loaderinputfile.bad
Discard file name Name of the file where the records not meeting selection criteria is written.${PROJECT}/loaderinputfile.dis
DB column names Names of all columns in the database table. 
Loader input file Name of input file to be loaded, including path. See Loader Input File for more information. 
Max error count Maximum number of allowed insert errors. When this number is exceeded, graph fails. If no errors are to be allowed, the attribute should be set to 0. To allow all errors, set this attribute to a very high number.50 (default) | 0-N
Max discard count Number of records that can be discarded before the graph stops. If set to 1, even single discarded record stops the graph run.all (default) | 1-N
Ignore rows Number of rows of the data file that should be skipped when loading data to database.0 (default) | 1-N
Commit interval Conventional path loads only: Commit interval specifies the number of rows in the bind array. Direct path loads only: Commit interval identifies the number of rows that should be read from the data file before the data is saved. By default, all rows are read and data is all saved at once, at the end of the load.64 (default for conventional path) | all (default for direct path) | 1-N
Use file for exchange By default, on Unix pipe transfer is used. If it is set to true and Loader input file is not set, temporary file is created and used as data source. By default, on Windows temporary file is created and used as data source. However, since some clients do not need a temporary data file to be created, this attribute can be set to false for such clients.false (default on Unix) | true (default on Windows)
Parameters All parameters that can be used as parameters by the sqlldr utility. These values are contained in a sequence of pairs of the following form: key=value, or key only (if the key value is the boolean true) separated from each other by semicolon, colon, or pipe. If the value of any parameter contains semicolon, colon, or pipe as its part, such value must be double quoted. 
Fail on warnings By default, the component fails on errors. Switching the attribute to true, you can make the component fail on warnings. Background: when an underlying bulk-loader utility finishes with a warning, it is just logged to the console. This behavior is sometimes undesirable as warnings from underlying bulk-loaders may seriously impact further processing. For example, 'Unable to extend table space' may result in not loading all data records to a database; hence not completing the expected task successfully. false (default) | true

Advanced Description

Control Script

Control script for the sqlldr utility.

Example 46.8. Example of a Control script

LOAD DATA
INFILE *
INTO TABLE test
append
(
    name TERMINATED BY ';',
    value TERMINATED BY '\n'
)

Append Attribute

Loader Input File

Name of input file to be loaded, including path.