|
|
|
|
|
Re: Exchange partition from table at remote database [message #616912 is a reply to message #616887] |
Sun, 22 June 2014 23:03 |
|
purnima1
Messages: 79 Registered: June 2014
|
Member |
|
|
I have one table T1 in db1 which is partitioned table. And T2 in db2 which is non partitioned table.dblink is created at db1 and i am able to execute below mentioned query
select * from t2@dblink;
Alter table t1 exchange partition part_name
WITH TABLE T2@dblink
WITHOUT VALIDATION;
This is giving an error that exchange partition cannot be done over dblink.
I have googled and found the solution as
exec dbms_utility.exec_ddl_statement@db_link('your statment');
but i am not getting how to fit this query for my scenario.
begin
dbms_utility.exec_ddl_statement@dblink('alter table T1 exchange partition part_name
with table T2@DBLINK
WITHOUT VALIDATION ');
end ;
getting this error
ORA-02149: Specified partition does not exist
ORA-06512: at "SYS.DBMS_UTILITY", line 574
Currently im executin normal insert and it is taking time.
need to do this activity on daliy basis ,so please help.
I have also gove through link which was shared, but i m not getting it
[Updated on: Sun, 22 June 2014 23:06] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|