My Oracle Support Banner

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

Last updated on OCTOBER 09, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A 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 input file contains 5 records where <Column Name> = <Val 1> and 5 records where <Column Name> = <Val 2>.

The SQL*Loader log shows this:

into table <Table Name 1>
when <Column Name> = '<Val 1>'

Table <Table Name 1>:
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 <Table Name 2>
when <Column Name> = '<Val 2>'

Table <Table Name 2>:
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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.