Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

misuse of LONG datatype in an INSERT command

Status
Not open for further replies.

Cantor

Programmer
Apr 27, 2000
28
0
0
CA
Hello,

I try to insert a table in another table (two tables are exactly the same) but the type of one field of those tables is LONG datatype.
So I do:

INSERT INTO table1
SELECT * FROM table2@DB_LINK;


It gives the alert:

ORA-00997: illegal use of LONG datatype

How could I solve this problem? Should I insert one field at once? My table is very huge.
The db_link is working, I'm sure of that.

thank you for helping,

Cantor
 
LONGs do present a problem.
If this is a one-time effort, you might want to just export from the source table and insert into the target table.
 
Dear Cantor,
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.

In your DataLink u might have used CONNECT BY
SO u r getting the error.So u cannot copy LONG value across Databases.

This might helps u

Regards
Kiran Kumar Jasti



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top