• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

SQL Server 2000之日志传送功能 - 问题解决

发布: 2007-7-02 11:08 | 作者: admin | 来源: | 查看: 8次 | 进入软件测试论坛讨论

领测软件测试网
SQL Server 2000之日志传送功能
可能發生的錯誤

一、残余数据
    当您进行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文件。这个没有考证过,只提一下,提醒大家!

 

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网