goldengate for SQL Server log explosion resolution

Source: Internet
Author: User
Tags log

When the GG for SQL Server 2008 R2 is turned on, the SQL Server log will skyrocket, as follows:

1. Confirm that the database setup problem is causing

Such as:

1 Check the Ggerror, whether there is an error!

2 then confirm that log backup uses log backups and does not use compression.

3) Database Recovery model

2. After the GG added the table's extended log, confirm that the agent in the corresponding CDC capture disabled

Add Trandata dbo.tbl01

After opening the extended log, you need to disable the corresponding CDC capture in the agent.

3. Confirm parameter extract parameter file use Managesecondarytruncationpoint

Tranlogoptions Managesecondarytruncationpoint

4. If all of the above methods are configured correctly, the SQL Server log still soars! Need to reconfigure the following GG:

Please make sure that GG has read the current log before doing the following.

--4.1 Delete Extension Log

Delete Trandata dbo.tbl01

---4.2 Delete extraction and transfer

Delete Extract Extrate

Delete Exttrail S:\gg\dirdat\rt

Delete EXTRACT pumprate

Delete Rmttrail S:\gg\dirdat\rt

DBCC Opentran

Go

EXECUTE Sp_repltrans

Go

--4.3 Note: Resetting the unassigned logs to 0 using sp_repldone may cause reconfiguration and can not resolve log surges

EXEC sp_repldone @xactid = null, @xact_segno = null, @numtrans = 0, @time = 0, @reset = 1

Go

--4.4 Disable the database CDC

Use test

Go

EXEC sys.sp_cdc_disable_db

Go

--4.5 reconfiguration

You can then add the extended log, extract, and transfer again.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/SQLServer/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.