複寫代理程式已關閉,而未將原因寫入適當的記錄資料表,或者代理程式在處理序仍執行時關閉。
重新啟動代理程式,查看其能否正常執行。如需詳細資訊,請參閱《SQL Server 線上叢書》中的<如何:啟動和停止複寫代理程式 (SQL Server Management Studio)>及<複寫代理程式可執行檔程式設計>。
請檢查代理程式記錄和作業記錄是否同時發生其他錯誤。如需檢視複寫監視器中的代理程式狀態及錯誤詳細資料,請參閱《SQL Server 線上叢書》中的下列主題:
對於快照集代理程式、記錄讀取器代理程式和佇列讀取器代理程式,請參閱<如何:檢視與發行集相關聯之代理程式的資訊並執行工作 (複寫監視器)>。
針對散發代理程式和合併代理程式,請參閱<如何:檢視與訂閱相關聯之代理程式的資訊並執行工作 (複寫監視器)>。
確認代理程式所存取的電腦之間的基本連線運作正常,然後使用例如 sqlcmd 等公用程式連線至各電腦。連接時,請使用代理程式建立連接的相同帳戶。如需有關各代理程式帳戶所需權限的詳細資訊,請參閱《SQL Server 線上叢書》中的<複寫代理程式安全性模型>。
如果在建立或套用快照集時發生錯誤,則請檢查快照集目錄中的檔案以找到錯誤。
若錯誤繼續發生,請增加代理程式的記錄,並指定記錄的輸出檔。視錯誤內容的不同,可提供導致錯誤的步驟和其他錯誤訊息。如需設定複寫記錄的詳細資訊,請參閱 Microsoft 知識庫文件 312292。
Target | Microsoft.SQLServer.2012.Agent | ||
Category | EventCollection | ||
Enabled | True | ||
Event_ID | 20557 | ||
Event Source | $Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$ | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Application | ||
Comment | Mom2012ID='{0198CCE6-7B4A-45C7-B7DB-EB7777D76360}';MOM2012GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74} |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ | DataSource | Microsoft.Windows.EventProvider | Microsoft.SQLServer.SQLDefaultAccount |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SQLServer.2012.Agent_shutdown._For_more_information_see_the_SQL_Server_Agent_job_history_for_job_1_5_Rule" Target="SQL2012Core!Microsoft.SQLServer.2012.Agent" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2012ID='{0198CCE6-7B4A-45C7-B7DB-EB7777D76360}';MOM2012GroupID={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" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<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="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>20557</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.2012.Agent_shutdown._For_more_information_see_the_SQL_Server_Agent_job_history_for_job_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>