溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

goldengate 缺少歸檔日志abend處理

發(fā)布時(shí)間:2020-07-15 09:40:53 來(lái)源:網(wǎng)絡(luò) 閱讀:384 作者:春秋小記 欄目:關(guān)系型數(shù)據(jù)庫(kù)

ogg抽取進(jìn)程abend,檢查發(fā)現(xiàn)備庫(kù)的日志被刪除掉了:

2018-10-11 11:14:52  ERROR   OGG-00446  Could not find archived log for sequence 20064 thread 2 under default destinations SQL <SELECT  name    FROM
 v$archived_log   WHERE sequence# = :ora_seq_no AND         thread# = :ora_thread AND         resetlogs_id = :ora_resetlog_id AND         archived =
 'YES' AND         deleted = 'NO' >, error retrieving redo file name for sequence 20064, archived = 1, use_alternate = 0Not able to establish initia
l position for sequence 20064, rba 235066896.

2018-10-11 11:14:52  ERROR   OGG-01668  PROCESS ABENDING.

到主庫(kù)拷貝日志:
ASMCMD> cp thread_2_seq_20064.489.989227143 /home/grid/thread_2_seq_20064.489.989227143
copying +arch/chunqiu/ARCHIVELOG/2018_10_11/thread_2_seq_20064.489.989227143 -> /home/grid/thread_2_seq_20064.489.989227143

scp 拷貝到遠(yuǎn)程的備庫(kù)上,注冊(cè)歸檔:
alter database register logfile '/home/oracle/thread_2_seq_20064.489.989227143';

重新啟動(dòng)抽取進(jìn)程,正常。

測(cè)試日志參考:
1.注冊(cè)少量的日志:
SQL> alter database register logfile '/home/oracle/thread_2_seq_20064.489.989227143';
2.注冊(cè)大量的日志
rman> catalog start with '/home/oracle/archlog';

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI