ORA-00997: illegal use of LONG datatype
Error: illegal use of LONG
datatype
Cause: A value of datatype LONG
was used in a function or in a DISTINCT
, WHERE
, CONNECT BY
, GROUP BY
, or ORDER BY
clause. A LONG
value can only be used in a SELECT
clause.
Action: Remove the LONG
value from the function or clause.
Additional information: This error is due to a known restriction where it is not possible to execute an INSERT
statement with SELECT
or CREATE TABLE AS SELECT
involving tables with LONG
datatypes. It is possible, however, to perform the data transfer using the COPY
command.