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

Last updated on DECEMBER 06, 2016

Applies to:

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


ORA-997


Goal

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:
------------
ERROR at line 1:
ORA-00997: illegal use of LONG datatype

Solution

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