My Oracle Support Banner

How To Workaround Error: Ora-00997: Illegal Use Of Long Datatype (Doc ID 361716.1)

Last updated on AUGUST 04, 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


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

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