Home » SQL & PL/SQL » SQL & PL/SQL » Cloning a TABLE - trouble with the LONG type ...
Cloning a TABLE - trouble with the LONG type ... [message #8463] Fri, 22 August 2003 03:46 Go to next message
Gerald
Messages: 54
Registered: January 2001
Member
Dears,

Back with a new prob ...
I got a table that i Want to do a copy
I use:
Create TABLE Clone_MYTABLE AS SELECT * FROM MYTABLE WHERE 1<>1;
I got a field with the type 'LONG'
the error is :

ERREUR Ó la ligne 1 :
ORA-00997 illegal use of LONG datatype
the answer from the lib is:
Action: Remove the LONG value from the function or clause.
??? How can i copy a table without TRUNCATING a part ?
thanks for HELP
Gerald
Re: Cloning a TABLE - trouble with the LONG type ... [message #8465 is a reply to message #8463] Fri, 22 August 2003 06:39 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
dbadmin@mutation_mutation > create table t1 ( a number, b long);

Table created.

-- insert some data in t1
-- i have not inserted any

dbadmin@mutation_mutation > create table t2 (a number, b long);

Table created.
dbadmin@mutation_mutation > copy from dbadmin/passCode@mutation to dbadmin/passCode@mutation append t2 using select * from t1;

Array fetch/bind size is 15. (arraysize is 15)
Will commit when done. (copycommit is 0)
Maximum long size is 80. (long is 80)
   0 rows selected from dbadmin@mutation.
   0 rows inserted into T2.
   0 rows committed into T2 at dbadmin@mutation.

----------------------------------------------------------------------

there is hard bound limitation in this method..i dont have that on top of my head~.
if this is not working, you have to use exp / imp

Re: Cloning a TABLE - trouble with the LONG type ... [message #8467 is a reply to message #8465] Fri, 22 August 2003 09:04 Go to previous message
Gerald
Messages: 54
Registered: January 2001
Member
Thank you Mahesh,

I 'm trying this. seems that i have to find how to get the password , without asking it :)
Previous Topic: ORA-04054 when compiling a PL/SQL proc using database link
Next Topic: summing using decode
Goto Forum:
  


Current Time: Fri Apr 19 20:26:51 CDT 2024