Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to copy a complete tablespace ?
Hi Carsten,
Since you have already created the tablespace you can do:
CREATE TABLE test.<table_name> AS SELECT * FROM production.<table_name>;
I am not sure about the "AS", but the syntax is close enough so that you can experiment.
2. for tables you have created in TEST:
INSERT INTO test.<table_name> SELECT * FROM production.<table_name>;
I prefer to use the CREATE and then build the indexes after I have created the tables since I find it is faster.
regards
Jerry Gitomer