[取代] 指定給複寫記錄檔掃描的開始 LSN 無效

Microsoft.SQLServer.2008.BeginLSNSpecifiedForReplicationLogscanInvalidRule (Rule)

Knowledge Base article:

摘要

指定給複寫記錄檔掃描的起始記錄序號無效。

原因

儲存在散發資料庫複寫資料表中的記錄序號 (LSN),晚於交易記錄中所指定記錄讀取器代理程式下一個要讀取的 LSN。這表示資料在發行者與散發者之間出現不一致,而記錄讀取器代理程式處理序並不知道下一個要讀取哪一個記錄才正確。如果已從 MSrepl_transactions 複寫資料表手動刪除了資料列,或是如果散發資料庫已啟用 [sync with backup],但在沒有確定資料庫之間均一致的情況況下,還原了發行集資料庫,即可能發生這種情況。

可能會出現此情形的狀況有:

解決方式

重新初始化受影響交易式發行集的所有訂閱,以確保資料保持同步。

外部資源

備份與還原快照式和異動複寫的策略

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用該工作流程。

優先順序

定義警示優先順序。

2

嚴重性

定義警示嚴重性。

2

Element properties:

TargetMicrosoft.SQLServer.2008.DBEngine
CategoryEventCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
RemotableTrue
Alert Message
指定給複寫記錄檔掃描的起始 LSN 無效
{0}

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2008.EventProvider Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2008.BeginLSNSpecifiedForReplicationLogscanInvalidRule" Target="SQL2008Core!Microsoft.SQLServer.2008.DBEngine" Enabled="false" ConfirmDelivery="true">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2008.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<PublisherName>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</PublisherName>
<EventNumber>18765</EventNumber>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2008.BeginLSNSpecifiedForReplicationLogscanInvalidRule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>