My Oracle Support Banner

SQL*Loader: Unable To Load Files With CLOBs In 11gR2 Due To Error ORA-22835 (Doc ID 1385260.1)

Last updated on JANUARY 30, 2022

Applies to:

Oracle Database - Standard Edition - Version 10.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Information in this document applies to any platform.

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data.
Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

Symptoms

Unable to load a file that contains CLOB column in 11.2.0.3.0. The errors reported are:

SQL*Loader-462: error inserting LOB into column "<LOB_COLUMN>", row 20135, table "<SCHEMA_NAME>"."<TABLE_NAME>"
ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4865, maximum: 4000)


The error stack for error ORA-22835 shows the following errors:

ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4865, maximum: 4000)
----- Current SQL Statement for this session (sql_id=<SQL_ID>) -----
update /*+ NOPARALLEL ( <TABLE_NAME> )*/"<SCHEMA_NAME>"."<TABLE_NAME>" set <LOB_COLUMN>=:1 where rowid=:2 update indexes

Changes

Upgrade to 11.2.0.3. SQL*Loader works on 9i and 10gR1.

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
Changes
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.