當 SQL Server Enterprise Manager 輪詢複寫代理程式時,如果複寫代理程式太忙而無法回應;因而 SQL Server Enterprise Manager 不清楚複寫代理程式的狀態,也無法報告複寫代理程式是否正常運作,則會發生此問題。
當 SQL Server Enterprise Manager 輪詢複寫代理程式時,如果複寫代理程式太忙而無法回應;因而 SQL Server Enterprise Manager 不清楚複寫代理程式的狀態,也無法報告複寫代理程式是否正常運作,則會發生此問題。
如果複寫代理程式失敗,您會收到下列錯誤訊息::
訊息 20536 嚴重性 10「複寫: 代理程式失敗」。
導致複寫代理程式忙碌的原因有很多:可能是正在複寫的資料太多,或者是設定或複寫設計問題導致處理序長時間執行。
若要降低訊息出現的頻率,請增加無活動臨界值。
變更此值不能解決任何問題,只是變更了輪詢複寫代理程式目前狀態的頻率。若要變更無活動臨界值::
在 SQL Server Enterprise Manager 的 [複寫監視器] 下,在複寫代理程式資料夾上按一下滑鼠右鍵,然後按一下 [重新整理速度和設定值]。
設定複寫監視器輪詢複寫代理程式期間所等待的時間 (分鐘)。
除非您收到顯示複寫代理程式發生問題的其他錯誤訊息,否則「代理程式可疑」訊息僅為參考用訊息。收到此訊息時,如果沒有發生其他相關錯誤,無需停止複寫代理程式。如果停止複寫代理程式,則會復原其使用的處理序,然後您必須重新啟動處理序;不然請等待處理序完成。
名稱 | 描述 | 預設值 |
已啟用 | 啟用或停用該工作流程。 | 是 |
優先順序 | 定義警示優先順序。 | 1 |
嚴重性 | 定義警示嚴重性。 | 2 |
Target | Microsoft.SQLServer.2014.Agent | ||
Category | EventCollection | ||
Enabled | True | ||
Event_ID | 20554 | ||
Event Source | $Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.DBEngine"]/ServiceName$ | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Application | ||
Comment | Mom2014ID='{C65DF52B-B877-48C3-B546-67D69C494E84}';MOM2014GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74} |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ | DataSource | Microsoft.Windows.EventProvider | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SQLServer.2014.The_agent_is_suspect._No_response_within_last_minutes_1_5_Rule" Target="SQL2014Core!Microsoft.SQLServer.2014.Agent" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2014ID='{C65DF52B-B877-48C3-B546-67D69C494E84}';MOM2014GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>20554</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2014.The_agent_is_suspect._No_response_within_last_minutes_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>