码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2014-08-13 10:41:46      阅读:280      评论:0      收藏:0      [点我收藏+]

标签:dataguard ora-02019

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

同步表

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

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


本文出自 “麦地坞” 博客,请务必保留此出处http://yunlongzheng.blog.51cto.com/788996/1539232

ORACLE逻辑DATAGUARD数据库如何恢复SKIP的表ORA-02019\ORA-16276\,布布扣,bubuko.com

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

标签:dataguard ora-02019

原文地址:http://yunlongzheng.blog.51cto.com/788996/1539232

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!