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 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

To view full details, 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 a vibrant support community of peers and Oracle experts.