另一個記錄讀取器正在複寫資料庫

Microsoft.SQLServer.2008.AnotherLogReaderIsReplicatingDatabaseRule (Rule)

Knowledge Base article:

摘要

另一個記錄讀取器正在複寫資料庫。

原因

目前有多個連接嘗試執行下列任一項目:sp_repldonesp_replcmdssp_replshowcmds。記錄讀取器代理程式會使用 sp_repldonesp_replcmds 預存程序,在已發行資料庫中尋找及更新已複寫交易的相關資訊。sp_replshowcmds 預存程序是用來對異動複寫的特定問題進行疑難排解。

此錯誤在下列情況下產生:

若出現多個代理程式的情況,則可能其中一個代理程式是被遺棄處理的結果。

請注意,在似乎存在多個代理程式的情況下,其中一個代理程式可能是因為未在 Management Studio 中顯示為額外作業或代理程式的某種孤立處理序所導致。

解決方式

下列步驟可以幫助您對此問題進行疑難排解。如果任一步驟允許「記錄讀取器代理程式」在沒有錯誤的情況下啟動,則無需完成剩餘步驟。

外部資源

SQL Server 事件識別碼 18752

Element properties:

TargetMicrosoft.SQLServer.2008.DBEngine
CategoryEventCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
RemotableTrue
Alert Message
另一個記錄讀取器正在複寫資料庫
{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.AnotherLogReaderIsReplicatingDatabaseRule" Target="SQL2008Core!Microsoft.SQLServer.2008.DBEngine" Enabled="true" 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>18752</EventNumber>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2008.AnotherLogReaderIsReplicatingDatabaseRule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>