在不同服务器之间使用copy能指定被copy的表到指定表空间吗?如下:
copy from olk/123@server1 to plk/123@server2 create table_test_2 using select * from table_test_1;上面的代码执行成功,但是table_test_2被默认的放到了users表空间中,我想让它放入到test2表空间,上面的语句我该怎么改?谢谢
copy from olk/123@server1 to plk/123@server2 create table_test_2 using select * from table_test_1;上面的代码执行成功,但是table_test_2被默认的放到了users表空间中,我想让它放入到test2表空间,上面的语句我该怎么改?谢谢
所以不好使哈
create table "test"."table_test_2" TABLESPACE "test2"
我是想把test2表空间加上去
那就还是用你最初的语句,然后建SYNONYMcreate or replace public synonym table_test_2
for test.table_test_2;
这种情况,你本可以用DBLINK来做,用COPY就有点复杂啊!
这又是为何呢?
然后 copy to olk/123@server1 to plk/123@server2 insert table_test_2 using select * from table_test_1; 这样 不好使么?