All errors › ORA errors
ORA-00997: Illegal use of LONG datatype
What it means
A LONG column was used in a place that does not accept it (WHERE, functions, INSERT ... SELECT, CTAS, GROUP BY).
How to fix it
Convert the column to CLOB (ALTER TABLE ... MODIFY col CLOB) or use TO_LOB in INSERT ... SELECT.
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.
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.