Chinaunix首页 | 论坛 | 博客
  • 博客访问: 706549
  • 博文数量: 147
  • 博客积分: 5347
  • 博客等级: 大校
  • 技术积分: 1453
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-06 11:11
文章分类

全部博文(147)

文章存档

2014年(4)

2012年(9)

2011年(5)

2010年(28)

2009年(21)

2008年(29)

2007年(15)

2006年(17)

2005年(19)

我的朋友

分类: Oracle

2012-07-09 17:38:58

重新创建 syspolicy_purge_history 作业要重新创建syspolicy_purge_history作业,请运行以下 ¡ SQL 语句。
DECLARE @jobId uniqueidentifier -- Obtain the current job identifier that is associated with the PurgeHistory SELECT @jobId = CAST(current_value AS uniqueidentifier) FROM msdb.dbo.syspolicy_configuration_internal WHERE name = N'PurgeHistoryJobGuid' -- Delete the job identifier association in the syspolicy configuration DELETE FROM msdb.dbo.syspolicy_configuration_internal WHERE name = N'PurgeHistoryJobGuid' -- Delete the offending job EXEC msdb.dbo.sp_delete_job @job_id = @jobId -- Re-create the job and its association in the syspolicy configuration table EXEC msdb.dbo.sp_syspolicy_create_purge_job
阅读(5716) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~