溫馨提示×

溫馨提示×

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

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

GoldenGate全部刪除Trail 文件恢復(fù)

發(fā)布時間:2020-03-13 18:06:15 來源:網(wǎng)絡(luò) 閱讀:784 作者:z597011036 欄目:關(guān)系型數(shù)據(jù)庫

    今天在清理GoldenGate的Trail文件時一不小心全部刪除了,導(dǎo)致GoldenGate在源端的EXTRACT進程掛起不能啟動.


1.刪除源端數(shù)據(jù)庫的EXTRACT進程:
GGSCI (crm_master) 4> dblogin userid ogg,password OC8rGBIjkBG
Successfully logged into database.
GGSCI (crm_master) 5> delete extract EXTND
Deleted EXTRACT EXTND.
GGSCI (crm_master) 6> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER    RUNNING                             
EXTRACT     RUNNING     DPEND       00:00:00      00:00:06   
GGSCI (crm_master) 7> add exttrail ./gglog/nd,extract EXTND,megabytes 1000
EXTTRAIL added.
GGSCI (crm_master) 8> ADD EXTTRAIL /oradata/gglog/nd, EXTRACT EXTND
EXTTRAIL added.
GGSCI (crm_master) 9> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER   RUNNING                                    
EXTRACT     RUNNING     DPEND       00:00:00      00:00:04    
EXTRACT     STOPPED     EXTND       00:00:00      00:07:42   
GGSCI (crm_master) 10> start extnd
Sending START request to MANAGER ...
EXTRACT EXTND starting
GGSCI (crm_master) 11> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER    RUNNING              
EXTRACT     RUNNING     DPEND       00:00:00      00:00:09    
EXTRACT     RUNNING     EXTND       00:07:46      00:00:01   
GGSCI (crm_master) 12>


2.進看源端數(shù)據(jù)庫的Trail文件號

[oracle@node1 ogg]$ ll ../gglog/
total 724
-rw-rw-rw- 1 oracle oinstall 737414 Jul 27 14:34 nd000000
[oracle@node1 ogg]$ 


3.在目標(biāo)端數(shù)據(jù)庫指定Trail號

GGSCI (crm_slave) 5> alter REPLICAT repl extseqno 000, extrba 0        
REPLICAT altered.
GGSCI (crm_slave) 6> start repl
Sending START request to MANAGER ...
REPLICAT REPL starting
GGSCI (crm_slave) 7> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER  RUNNING                                
REPLICAT    RUNNING     REPL        00:00:00      00:00:00   
GGSCI (crm_slave) 8>

向AI問一下細節(jié)

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

AI