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.

extract函数是PHP中一个非常实用的函数,它可以将一个数组中的键值对赋值给一组变量。采用这种方式,我们可以简化代码,并且提供更直观的变量名称,方便维护和调试。本文将介绍如何使用PHP中的extract函数将数组键值赋值给变量。一、extract函数的语法extract函数的语法非常简单,如下所示: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

稳定币龙头USDT发行商Tether在2024年6月17日正式推出了其「AlloybyTether」平台,首项产品允许用户将Tether旗下的黄金代币TetherGold(XAUt)作为抵押品,铸造新的合成美元稳定币aUSDT,在不到一天的时间里,就达到了802万美元的市场规模,引发市场关注。本文全面整理了在这一过程中作为抵押品的TetherGold(XAUt)发行与赎回方式、优点与风险等方面,以利读者了解这一独特资产。TetherGold(XAUt)是什么?XAUt是一种由黄金支持的稳定币,与

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

Addressing his 1 million followers on the social media platform X, the Real Vision founder says that the Nasdaq (NDX) has most likely finished correcting


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

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

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

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

Atom editor mac version download
The most popular open source editor
