上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
  2011年4月10日
摘要: 1 Replication-replication distribution subsystem agent null failed. the publication XXX does not exist 从字面上可以看到,当前订阅的发布已经不存在了,而相应的分发代理却因为某些原因没有被删除,继续运行,就会出现这种错误。 这个错误可以在distributor的错误日志中,或者MSrepl_errors表中看到. A1 如何解决:在distributor服务器中的分发数据库中执行如下语句 select publisher,subscriber From MSsubscriber_info 上面的 阅读全文
posted @ 2011-04-10 18:16 stswordman 阅读(3703) 评论(2) 推荐(3) 编辑
  2011年4月8日
摘要: 1添加一个article到发布pub1,点击“查看快照代理状态”,发现pub1中所有的aritlce都生成了快照…在发布库执行selectimmediate_syncFromsyspublicationsorsp_helppublication发现immediate_sync为1. 将immediate_sync改成0即可:sp_changepublication@publication='publicationName',@property='immediate_sync',@value=false原因,可能是在添加发布时选中了immediate_sync选项 阅读全文
posted @ 2011-04-08 09:44 stswordman 阅读(510) 评论(0) 推荐(1) 编辑
  2011年4月7日
摘要: 环境如下 testdb2为发布服务器, pub2为发布的数据库,发布其中的表tatestdb3为分发服务器,分发数据库为distributiontestdb4为订阅服务器,订阅数据库为sub2现在要建立从testdb4到testdb2的拉模式的订阅三个数据库实例的启动账户和代理启动账户都是域账户(domain1\xxx),该域账户在OS没有显示授权,在SQLSERVER中也无法登陆,没有任何权限.还有三个域账户,用于配置snapshot agent,log reader agent和 distribution agent domain1\snapshotAgentAdmindomain1\lo 阅读全文
posted @ 2011-04-07 22:42 stswordman 阅读(2004) 评论(4) 推荐(3) 编辑
  2011年4月5日
摘要: 1222将死锁(deadlock)信息输出到errorlogdbcctraceon(1222,-1)--全局有效dbcctraceon(1222,1)--当前session有效或者在启动参数中添加3004,3605如果SQLSERVER开启了快速初始化功能,会将相关信息输入到errorlogdbcctraceon(3004,3605,-1)http://www.cnblogs.com/stswordman/archive/2011/01/03/1925072.html3505关闭checkpointdbcctraceon(3505,-1) 阅读全文
posted @ 2011-04-05 22:28 stswordman 阅读(547) 评论(0) 推荐(0) 编辑
  2011年3月28日
摘要: functionfunhelp(){$helpText=@"NAME:Collect_dm_os_wait_stats.ps1ThisscriptCollectWaitandQueueinformationfromDMVsys.dm_os_wait_statsThisisahardcodescript,youdon'tneedtospecifyanyparameter.Pleasemodify'computerList'ifyouwanttoaddmorecomputers..MakesureyouhaveaDisk_databaseinthehostwher 阅读全文
posted @ 2011-03-28 16:35 stswordman 阅读(375) 评论(0) 推荐(0) 编辑
  2011年3月27日
摘要: select case df.database_id when DB_ID('distribution') then 'distDB' when DB_ID('tempdb') then 'tempdb' --add other needed database else 'otherDBs' end as dbName, case df.type when 0 then 'datafile' when 1 then 'logfile' else 'otherfile' 阅读全文
posted @ 2011-03-27 23:00 stswordman 阅读(521) 评论(0) 推荐(0) 编辑
  2011年2月16日
摘要: [代码] 阅读全文
posted @ 2011-02-16 17:12 stswordman 阅读(385) 评论(0) 推荐(0) 编辑
  2011年1月10日
摘要: 'SQLServer:Buffer Manager\Page writes/sec' :Number of physical database page writes issued per second我们可以通过这个性能计数器(下文中简称PW)来观察SQLSERVER何时会将脏页(这里不包含日志)写回磁盘。文中讨论的脏页均为数据页,不包含脏日志(虽然SQLSERVER认为日志也是脏的…)Checkpoint: Checkpoint发生是,SQLSERVER会将脏页(包含了未提交事务脏页和已提交事务的脏页)写回磁盘。 Checkpoint的作用是缩短数据库恢复(recovery 阅读全文
posted @ 2011-01-10 15:23 stswordman 阅读(2569) 评论(15) 推荐(1) 编辑
摘要: [代码] 阅读全文
posted @ 2011-01-10 10:24 stswordman 阅读(277) 评论(0) 推荐(0) 编辑
  2011年1月6日
摘要: [代码] 阅读全文
posted @ 2011-01-06 11:04 stswordman 阅读(346) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页