SQL Server 2000之記錄傳送功能—問題解決

來源:互聯網
上載者:User
server|解決|問題

可能發生的錯誤

一、殘餘資料
    當您進行SQL Server 2000記錄傳送的實驗時,也許偶而會中斷設定過程。如果真是如此,那麼某些資料仍然會存入每台伺服器的記錄傳送資料表,並且影響到後續的記錄傳送設定動作。為了保證這些剩餘資料都會被清除,請確實刪除每台伺服器msdb資料庫內記錄傳送資料表之相關資料。

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

處理方法:
必須手動執行下面幾個預存程序來刪除Log Shipping在資料庫中記錄的資訊。
1、sp_delete_log_shipping_primary
   刪除msdb.dbo.log_shipping_primary表中的Primary Server資訊
2、sp_delete_log_shipping_plan
   刪除Log Shipping計劃
3、sp_delete_log_shipping_secondary
   刪除msdb.dbo.log_shipping_secondaries表中的Secondary Server資訊
4、sp_remove_log_shipping_monitor
   刪除Log Shipping監視從表msdb.dbo.log_shipping_monitor

二、資料庫的模式
   如果正確設定了Log Shipping,但是沒有辦法正常執行,在SQL Server的日誌中可以看到類似這個資訊和介面:

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)

可能是你沒有正確設定資料庫的模式,完整模式。

三、Log檔案存放路徑

在MSDN上看過一篇文章說,同一台電腦上再次設定Log Shipping時,不要使用相同的目錄存放Log檔案。這個沒有考證過,只提一下,提醒大家!

轉摘《DigJim的專欄》——實在精典,希望更多的人學習,資源共用



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.