欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Could not find archived log for sequence 587 thread 1 under default destinations SQL

程序员文章站 2022-07-06 11:49:10
最近遇到这个问题,其实提示很简单了。 去oracle 论坛看下,有人回复了 Extract was off for two long. All redo logs have been switched. You have to provide archive logs to Oracle defau ......

最近遇到这个问题,其实提示很简单了。
去oracle 论坛看下,有人回复了

extract was off for two long. all redo logs have been switched.
you have to provide archive logs to oracle default destination or configure destination in gg parameter file.
if you don't have archive logs you have to resynchronize the two databases.

大概意思

由于线程2为1的归档日志已经被删除,导致goldengate 抽取进程停止:

解决方法:

1、恢复删除的归档日志,重新启动抽取进程;

rman target ggs/ggs@orcl 
rman>restore archivelog from logseq 1 until logseq  587 ;
ggsci>start ext ext

fuck恢复报错
Could not find archived log for sequence 587 thread 1 under default destinations SQL

3、通过v$archived_log查询到下个日志的时间点,重新指定抽取进程的时间点,启动抽取进程;

ggsci>alter extract extjms2 ,begin 2014-11-20 00:20:15
ggsci>start extjms2

4.实在不行就从现在启动。

这个会缺失数据的!!!!
ggsci> alter extract ext begin now
ggsci> start ext ext

5.最好办法,重新初始化数据后,启动。