您的位置:首頁技術文章
文章詳情頁

SQL Server 2000之日志傳送功能—問題解決

瀏覽:20日期:2023-11-05 08:37:53

可能發生的錯誤

一、殘余數據 當您進行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 (...)

SQL Server 2000之日志傳送功能—問題解決

處理方法:必須手動執行下面幾個存儲過程來刪除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-1Administrator' (trusted)Starting maintenance plan 'LOG_Plan_9' on 2003-9-4 14:42:02Backup 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:02SQLMAINT.EXE Process Exit Code: 1 (Failed)

可能是你沒有正確設置數據庫的模式,完整模式。

三、Log文件存放路徑

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

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

標簽: Sql Server 數據庫
国产综合久久一区二区三区