ORA Error ReferenceSearch errors

All errors › ORA errors

ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion

What it means

A CLOB longer than 4000 bytes was converted to VARCHAR2 in SQL (implicitly or with TO_CHAR).

How to fix it

Use DBMS_LOB.SUBSTR(clob, 4000, 1) or keep the value as CLOB.

Catch it before it runs

ORA Error Helper
Explains ORA-/PLS- codes inside JetBrains IDEs and DataGrip.
PL/SQL Lint
Flags risky PL/SQL patterns while you type.
Oracle Plan Reader
Reads execution plans and points at the slow step.
PL/SQL in Practice
Kindle book with practical PL/SQL for working developers.

Nearby errors

Updated 2026-11-12.