How To Workaround Error: Ora-00997: Illegal Use Of Long Datatype

(Doc ID 361716.1)

Last updated on MAY 10, 2018

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 9.2]
Information in this document applies to any platform.



How to work around the restriction of inserting into a table containing a LONG / LONG RAW field using a SELECT.

SQL Being used
SQL> insert into LONG_TABLE1 select * from LONG_TABLE2 where FIELD1 > 100;

ERROR at line 1:
ORA-00997: illegal use of LONG datatype


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