网站建设资讯

NEWS

网站建设资讯

GoldenGate全部删除Trail文件恢复-创新互联

   今天在清理GoldenGate的Trail文件时一不小心全部删除了,导致GoldenGate在源端的EXTRACT进程挂起不能启动.

创新互联公司基于分布式IDC数据中心构建的平台为众多户提供成都移动机房托管 四川大带宽租用 成都机柜租用 成都服务器租用。

1.删除源端数据库的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.进看源端数据库的Trail文件号

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

3.在目标端数据库指定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>

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


分享标题:GoldenGate全部删除Trail文件恢复-创新互联
文章链接:http://cdweb.net/article/geoio.html