ORA-00997: illegal use of LONG datatype
I have created a dblink in Oracle between two database Ora1 & Ora2.
A table tab1 in Ora1 has column of LONG datatype, so while creating a table tab2 in ora2 with the following sybntax:
create table Ora2.tab2 as select tab1 from Ora1.tab1@dblink_nm;
gives an error of "ORA-00997: illegal use of LONG datatype"
So I tried converting tab1 to LOB. with below syntax:
create table Ora2.tab2 as select TO_LOB(tab1) from Ora1.tab1@dblink_nm;
But still i am facing same issue "ORA-00997: illegal use of LONG datatype".
Is there any alternate to process the data and create a table?