ORACLE逻辑DATAGUARD数据库如何恢复SKIP的表ORA-02019\ORA-16276\

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

同步表

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

SQL> EXECUTE DBMS_LOGSTDBY.INSTANTIATE_TABLE('USERNAME', 'TABLENAME', 'DBLINKNAME');

BEGIN DBMS_LOGSTDBY.INSTANTIATE_TABLE('USERNAME', 'TABLENAME', 'DBLINKNAME'); END;


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

错误现象

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

*

ERROR at line 1:

ORA-16276: specified database link does not correspond to primary database

ORA-06512: at "SYS.DBMS_INTERNAL_LOGSTDBY", line 5394

ORA-02019: connection description for remote database not found

ORA-06512: at "SYS.DBMS_LOGSTDBY", line 636

ORA-06512: at line 1

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

解决

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

DATABASE LINK

CREATE PUBLIC DATABASE LINK DBLINKNAMEDBLINK

CONNECT TO USERNAME IDENTIFIED BY action

USING '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 172.16.128.6)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = DBLINKNAME1)))';


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

再次执行

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

SQL> EXECUTE DBMS_LOGSTDBY.INSTANTIATE_TABLE('USERNAME', 'TABLENAME', 'DBLINKNAMEDBLINK');


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

日志

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

Tue Aug 12 21:47:33 2014

The value (30) of MAXTRANS parameter ignored.

kupprdp: master process DM00 started with pid=26, OS id=483392

         to execute - SYS.KUPM$MCP.MAIN('SYS_IMPORT_TABLE_01', 'SYS', 'KUPC$C_1_20140812214733', 'KUPC$S_1_20140812214733', 0);

kupprdp: worker process DW01 started with worker id=1, pid=27, OS id=507972

         to execute - SYS.KUPW$WORKER.MAIN('SYS_IMPORT_TABLE_01', 'SYS');

Tue Aug 12 21:48:03 2014


你可能感兴趣的:(dataguard,ORA-02019)