首页 技术 正文
技术 2022年11月18日
0 收藏 463 点赞 4,468 浏览 1126 个字

Symptom

===

sp_MScdc_capture_job in the CDC job raised error message

Msg 217, Level 16, State 1, Procedure msdb.dbo.sp_cdc_sqlagent_log_jobhistory, Line 19 [Batch Start Line 12]    Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32).

产品组已经确认这是一个bug,会在后续的cu中解决。

workaround

===

1) Stop and disable CDC capture job. Make sure the job is not invoked till the fix is out.(If it runs again, CDC will break)

2) Use below query to identify the job_id for the capture job. Note – We need to execute below query for every DB that has CDC enabled –

select c.job_id, s.run_date, s.run_time from msdb.dbo.cdc_jobs c join msdb.dbo.sysjobhistory s on c.job_id = s.job_id where c.database_id = db_id() and c.job_type = N’capture’ and s.step_id = 1

3) Use query similar to below to delete the record from msdb.dbo.sysjobhistory for capture job’s step id 1

delete from msdb.dbo.sysjobhistory where job_id = ‘job_id that we got from #2’ and step_id = 1

Note – Please be careful/cautious while doing this step. If required then please wrap this under a transaction to avoid affecting other rows.

4) After this you can either run sys.sp_MScdc_capture_job manually for every CDC enabled DB or create another job that executes sys.sp_MScdc_capture_job for every CDC enabled DB

=====2018.3.27====

该问题已经已经在sql 2007 cu5中解决

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,084
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,559
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,408
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,181
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,818
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,901