TimerJobHistory表和作业删除作业历史计时器作业 [英] TimerJobHistory Table and job-delete-job-history Timer Job

查看:102
本文介绍了TimerJobHistory表和作业删除作业历史计时器作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经选择了SharePoint 2013实例的管理,并注意到TimerJobHistory表很大(这会对可用存储造成压力)。在进一步调查中,作业删除作业历史任务已经运行了2年多。
已经尝试过多个脚本来使其工作,包括一次几天逐步清除日志的脚本。 


这些操作都没有起作用似乎相关的计时器工作似乎不想工作。


有关所有其他计时器工作正在运行的信息,我已清除缓存。 


有关如何克服此问题的任何想法? 


干杯

解决方案

您好mchinds,


创建新服务器场时,默认情况下会配置计时器作业"job-delete-job-history"。它可以通过以下命令恢复:

 


farm = Get-SPFarm


< blockquote> farm.TimerService.EnsureDefaultJobs()

然后对特定的Web应用程序运行以下命令:

  

Hi,

I have picked up management of an instance of SharePoint 2013 and noticed that the TimerJobHistory table is huge (which is putting a strain on the available storage). On further investigation the job-delete-job-history task has not run for over 2 years. Have tried multiple scripts to get it to work, including the one which gradually purges the log a few days at a time. 

None of these actions have worked and it seems like the relevant timer job just doesn't want to work.

For information all other Timer Jobs are working and I have cleared the cache. 

Any ideas on how to overcome this? 

Cheers

解决方案

Hi mchinds,

Timer job "job-delete-job-history" is configured by default when a new farm is created. It can be restored by running command below:


farm = Get-SPFarm


farm.TimerService.EnsureDefaultJobs()

Then run the command below for specific web application:


这篇关于TimerJobHistory表和作业删除作业历史计时器作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆