Problems Using WHEN Clause While Loading 2 Tables With SQL*Loader (Doc ID 313836.1)

Last updated on NOVEMBER 28, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.1 and later   [Release: 9.2 and later ]
Information in this document applies to any platform.

Symptoms

Trying to load 2 tables with one SQL*Loader control file and using a WHEN clause. The SQL*Loader inputt file contains 5 records where REC_TYPE = OH and 5 records where REC_TYPE= OP1.

The SQL*Loader log shows this:

into table voucher
when rec_type = 'OH'

Table VOUCHER:
3 Rows successfully loaded.
0 Rows not loaded due to data errors.
114 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.

into table archive
when rec_type = 'OP1'

Table ARCHIVE:
0 Rows successfully loaded.
0 Rows not loaded due to data errors.
117 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.

The values for 'Rows successfully loaded' and 'Rows not loaded because all WHEN clauses were failed' are not accurate.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms