首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式碼之家 >> 數據庫知識 >  >> SQL Server 資料庫 >> 關於SqlServer

SQL Server 2000 記錄傳送問題解決:殘留資料清除、資料庫模式檢查與錯誤代碼對照

     編輯:關於SqlServer

常見錯誤與解決方案

一、殘留資料干擾

設定中斷導致 msdb 系統資料表殘留記錄傳送設定資料。

錯誤代碼

Error 14261: The specified primary_server_name.primary_database_name ('N') already exists.
Error 14426: A log shipping monitor is already defined (...)

清理預存程序

程序功能
sp_delete_log_shipping_primary刪除 log_shipping_primary 主要伺服器資訊
sp_delete_log_shipping_plan刪除記錄傳送計畫
sp_delete_log_shipping_secondary刪除 log_shipping_secondaries 次要伺服器資訊
sp_remove_log_shipping_monitor刪除 log_shipping_monitor 監視資訊

二、資料庫復原模式錯誤

SQL Server Agent 作業記錄顯示:

Microsoft (R) SQLMaint Utility (Unicode), Version
Logged on to SQL Server 'ZTAO-1' as 'ZTAO-1\Administrator' (trusted)
Starting maintenance plan 'LOG_Plan_9' on 2003-9-4 14:42:02
Backup can not be performed on database 'ERPLogShipping'. This sub task is ignored.
Deleting old text reports... 0 file(s) deleted.
End of maintenance plan 'LOG_Plan_9' on 2003-9-4 14:42:02
SQLMAINT.EXE Process Exit Code: 1 (Failed)

資料庫屬性對話框

解決: 確認來源資料庫設為「完整復原模式」。

三、記錄檔儲存路徑建議

MSDN 建議:同一電腦重複設定記錄傳送時,勿使用相同目錄儲存記錄檔,避免衝突。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved