Oracle GoldenGate extract进程的工作方式
oracle goldengate先从online log日志抽取数据,然后才会从archived log中进行抽取,这可以通过下面的方式来验证.
Oracle goldengate先从online log日志抽取数据,然后才会从archived log中进行抽取,这可以通过下面的方式来验证.
1、主库端插入测试数据
SQL> insert into gg1.dept values(81,'1','1');
1 row created.
SQL> commit;
Commit complete.
SQL> alter system switch logfile;
System altered.
SQL> insert into gg1.dept values(82,'2','2');
1 row created.
SQL> commit;
Commit complete.
SQL> insert into gg1.dept values(83,'3','3');
1 row created.
SQL> commit;
Commit complete.
SQL> alter system switch logfile;
System altered.
SQL> insert into gg1.dept values(84,'4','4');
1 row created.
SQL> commit;
Commit complete.
在这里多次执行alter system switch logfile;
这里比较关键,在后面我们会删除, 82、83对应的归档日志, 如果没有覆盖掉82、83对应的online log,goldengate的extract进程不会异常中止,extract进程会优选online log。
2、在这里我们覆盖掉online log,然后删除82、83对应的归档日志。
3、查看goldengate状态,,extract进程异常中止
GGSCI (slav2) 1> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING D1PUMP 00:00:00 00:00:02
EXTRACT ABENDED EXT1 00:03:10 00:02:29
GGSCI (slav2) 2> info ext1
EXTRACT EXT1 Last Started 2013-01-21 22:15 Status ABENDED
Checkpoint Lag 00:03:10 (updated 00:02:33 ago)
Log Read Checkpoint Oracle Redo Logs
2013-01-21 22:11:50 Seqno 28, RBA 67584
[oracle@slav2 ggs]$ vi ggserr.log
2013-01-21 22:14:59 INFO OGG-00975 Oracle GoldenGate Manager for Oracle, mgr.prm: EXTRACT EXT1 starting.
2013-01-21 22:14:59 INFO OGG-00992 Oracle GoldenGate Capture for Oracle, ext1.prm: EXTRACT EXT1 starting.
2013-01-21 22:15:00 WARNING OGG-01423 Oracle GoldenGate Capture for Oracle, ext1.prm: No valid default archive log destination directory found for thread 1.
2013-01-21 22:15:00 INFO OGG-01513 Oracle GoldenGate Capture for Oracle, ext1.prm: Positioning to Sequence 28, RBA 67088.
2013-01-21 22:15:00 INFO OGG-01516 Oracle GoldenGate Capture for Oracle, ext1.prm: Positioned to Sequence 28, RBA 67088, Jan 21, 2013 10:11:50 PM.
2013-01-21 22:15:00 INFO OGG-00993 Oracle GoldenGate Capture for Oracle, ext1.prm: EXTRACT EXT1 started.
2013-01-21 22:15:00 INFO OGG-01055 Oracle GoldenGate Capture for Oracle, ext1.prm: Recovery initialization completed for target file /u01/app/ggs/dirdat/lt000004, at RBA 1672.
2013-01-21 22:15:00 INFO OGG-01478 Oracle GoldenGate Capture for Oracle, ext1.prm: Output file /u01/app/ggs/dirdat/lt is using format RELEASE 10.4/11.1.
2013-01-21 22:15:00 INFO OGG-01026 Oracle GoldenGate Capture for Oracle, ext1.prm: Rolling over remote file /u01/app/ggs/dirdat/lt000004.
2013-01-21 22:15:00 INFO OGG-01053 Oracle GoldenGate Capture for Oracle, ext1.prm: Recovery completed for target file /u01/app/ggs/dirdat/lt000005, at RBA 968.
2013-01-21 22:15:00 INFO OGG-01057 Oracle GoldenGate Capture for Oracle, ext1.prm: Recovery completed for all targets.
2013-01-21 22:15:00 INFO OGG-01517 Oracle GoldenGate Capture for Oracle, ext1.prm: Position of first record processed Sequence 28, RBA 67088, SCN 0.610617, Jan 21, 2013 10:11:50 PM.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The extract function is a very practical function in PHP. It can assign key-value pairs in an array to a set of variables. In this way, we can simplify the code and provide more intuitive variable names for easier maintenance and debugging. This article will introduce how to use the extract function in PHP to assign array key values to variables. 1. Syntax of extract function The syntax of extract function is very simple, as shown below: extract(array$array,int$f

The longevity and staying power of the U.S. dollar is starting to worry economists in a high-debt, high issuance scenario.

Fujifilm was founded in Tokyo on January 20, 1934, which is why the company is currently celebrating its 90th anniversary. As part of celebrations, Fujifilm is presenting a limited 90th Anniversary Edition of the Instax Mini Evo, which is available i

Gold prices increased by over 3% this week, nearing their all-time high, as investors seek safe-haven assets amid geopolitical unrest

Strike’s Jack Mallers defended Bitcoin [BTC] in a recent debate with Peter Schiff, one of the top crypto critics. There’s been a long-standing argument

Tether, the leading USDT issuer of stablecoins, officially launched its "AlloybyTether" platform on June 17, 2024. The first product allows users to use Tether's gold token TetherGold (XAUt) as collateral to mint new synthetic U.S. dollar stablecoins. aUSDT, in less than a day, reached a market size of $8.02 million, attracting market attention. This article comprehensively summarizes the issuance and redemption methods, advantages and risks of TetherGold (XAUt) used as collateral in this process to help readers understand this unique asset. What is TetherGold(XAUt)? XAUt is a gold-backed stablecoin with

Gold consistently reduces portfolio volatility while improving returns, even with increased allocation. By simulating portfolio performance with varying allocations of gold (2.5% to 10%), it's evident that the metal bolsters returns without adding si

Banker and financial expert Peter Schiff, a well-known critic of digital assets, recently highlighted on social media that gold is trading near a record high
