Home Database Mysql Tutorial Oracle GoldenGate extract进程的工作方式

Oracle GoldenGate extract进程的工作方式

Jun 07, 2016 pm 05:26 PM
extract Gold

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.

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to assign array key values ​​to variables using extract function in PHP How to assign array key values ​​to variables using extract function in PHP Jun 26, 2023 pm 03:44 PM

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

Jim Rickards: Treasury Should Buy Gold to Avoid Dollar Substitution by New Forms of Money Like Crypto Jim Rickards: Treasury Should Buy Gold to Avoid Dollar Substitution by New Forms of Money Like Crypto Oct 08, 2024 am 09:44 AM

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

Fujifilm Instax Mini Evo hybrid instant camera launches as 90th Anniversary Limited Edition Fujifilm Instax Mini Evo hybrid instant camera launches as 90th Anniversary Limited Edition Aug 15, 2024 pm 12:02 PM

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 Surge 3% Nearing All-Time High as Bitcoin (BTC) Struggles to Maintain Momentum Gold Prices Surge 3% Nearing All-Time High as Bitcoin (BTC) Struggles to Maintain Momentum Aug 06, 2024 am 03:29 AM

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

Bitcoin vs. Gold: Which is the 'better money'? Bitcoin vs. Gold: Which is the 'better money'? Sep 09, 2024 pm 03:22 PM

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

What is Tether Gold? Complete explanation of gold token XAUt trading, principles, advantages and risks What is Tether Gold? Complete explanation of gold token XAUt trading, principles, advantages and risks Jun 25, 2024 pm 07:03 PM

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

Bitcoin vs Gold: Which Is the Better Safe Haven Asset? Bitcoin vs Gold: Which Is the Better Safe Haven Asset? Aug 17, 2024 pm 09:02 PM

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

Bitcoin (BTC) Surpasses $71,000 as Gold (XAU) Nears Record High Bitcoin (BTC) Surpasses $71,000 as Gold (XAU) Nears Record High Oct 30, 2024 pm 09:06 PM

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

See all articles