首頁
編程語言
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_primarymsdb.dbo.log_shipping_primary 主要伺服器資訊
sp_delete_log_shipping_plan記錄傳送計畫
sp_delete_log_shipping_secondarymsdb.dbo.log_shipping_secondaries 次要伺服器資訊
sp_remove_log_shipping_monitormsdb.dbo.log_shipping_monitor 監視資訊

依序執行上述程序可徹底清除殘留設定。

問題二:資料庫復原模式設定錯誤

若記錄傳送設定正確但無法執行,SQL Server Agent 作業記錄會顯示:

Backup can not be performed on database 'ERPLogShipping'. This sub task is ignored.
SQLMAINT.EXE Process Exit Code: 1 (Failed)

原因: 資料庫未設為「完整復原模式」。記錄傳送要求來源資料庫必須使用完整復原模式才能進行交易記錄備份。

問題三:記錄檔儲存路徑衝突

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

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