免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 11488 | 回复: 5
打印 上一主题 下一主题

求助sysprocedures和syscomments表损坏 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-12-06 21:10 |只看该作者 |倒序浏览
本帖最后由 其实我有点晕 于 2013-12-06 21:20 编辑

因为盘柜硬盘坏了,更换后硬盘后,用户库恢复失败,做rebuild_log后正常,但sysprocedures和syscomments做dbcc报错,按照How to Fix a Corrupted Index on System Tables修复不成功。

一、对sysprocedures表做dbcc,tablealloc正常,checktable报错
1> dbcc checktable(sysprocedures)
2> go
Checking sysprocedures: Logical pagesize is 8192 bytes
Msg 2507, Level 16, State 1:
Server 'TVM_DS', Line 1:
Table Corrupt: Offset table is incorrect (page#=5507  row#=8 offset in offset
table is=62  correct offset is=18)
Msg 614, Level 16, State 7:
Server 'TVM_DS', Line 1:
Adaptive Server accessed a row that has an illegal length of 18458 while in data
base 'tvmdb'.
Invalid pointer param number 4, pointer value 0x(nil)
     . The
minimum row length is 16. The page size is 8192.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.

select * from sysprocedures报错

     // 省略前边的  //

      2   884195169          50   1152      1       12500
      2   887671179           0   1152      1  -939191599
CT-LIBRARY error:
        ct_fetch(): protocol specific layer: external error: There is a tds protocol error. An illegal token was received.


二、对syscomments表做dbcc,tablealloc正常,checktable报错
1> dbcc checktable(syscomments)
2> go
Checking syscomments: Logical pagesize is 8192 bytes
Msg 2507, Level 16, State 2:
Server 'TVM_DS', Line 1:
Table Corrupt: Offset table is incorrect (page#=3066  row#=22 offset in offset
table is=17  correct offset is=35)
The total number of data pages in this table is 96.
Table has 2874 data rows.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.

select * from syscomments正常。


在数据库日志里,也没有见到这两个表的报错信息。
请问,还有其它解决方法吗?谢谢。


论坛徽章:
7
数据库技术版块每日发帖之星
日期:2015-08-09 06:20:00数据库技术版块每日发帖之星
日期:2015-11-03 06:20:00数据库技术版块每日发帖之星
日期:2016-02-20 06:20:00数据库技术版块每日发帖之星
日期:2016-07-13 06:20:00数据库技术版块每日发帖之星
日期:2016-07-31 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
2 [报告]
发表于 2013-12-06 22:17 |只看该作者
从DDL再重导procedure, triger和view吧

论坛徽章:
0
3 [报告]
发表于 2013-12-10 11:13 |只看该作者
回复 2# Eisen


    谢谢,工作量挺大,没修复,现在业务好像也没啥影响。

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
4 [报告]
发表于 2013-12-10 18:55 |只看该作者
导出syscomments的数据,根据syscomments生成存储过程、视图的创建语法,重建procedure, triger和view吧~

论坛徽章:
0
5 [报告]
发表于 2013-12-11 08:04 |只看该作者
回复 4# andkylee


    谢谢

论坛徽章:
7
数据库技术版块每日发帖之星
日期:2015-08-09 06:20:00数据库技术版块每日发帖之星
日期:2015-11-03 06:20:00数据库技术版块每日发帖之星
日期:2016-02-20 06:20:00数据库技术版块每日发帖之星
日期:2016-07-13 06:20:00数据库技术版块每日发帖之星
日期:2016-07-31 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
6 [报告]
发表于 2013-12-12 14:59 |只看该作者
ddlgen能帮你很快地从syscomments导出那些DDL来
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP