WFCJZ 发表于 2008-12-10 10:37

如何DROP SYSTEM INDEX

现在应用库出现问题,数据无法正常取出,提示为:

00:00000:00016:2008/12/10 08:28:26.84 serverError: 644, Severity: 21, State: 1
00:00000:00016:2008/12/10 08:28:26.84 serverIndex row entry for data row id (620318, 6) is missing from index page 799501 of index id 2 of table 'Tbs_Goods' in database 'market50'. Xactid is (2751845,13). Drop and re-create the index.
00:00000:00021:2008/12/10 08:31:16.31 serverError: 644, Severity: 21, State: 1
00:00000:00021:2008/12/10 08:31:16.31 serverIndex row entry for data row id (620318, 6) is missing from index page 799501 of index id 2 of table 'Tbs_Goods' in database 'market50'. Xactid is (2757595,7). Drop and re-create the index.

按照提示,对出错的表进行查询:
dbcc tablealloc (7)
dbcc tablealloc (13)
dbcc tablealloc (6)

提示为三个表,分别为syskeys ,syssegments,syscomments。三个表均为应用库的系统表,需要重建INDEX,对上述三个表做DROP,提示不让删除,无法重建!

高人指点!

sybfresher 发表于 2008-12-10 11:09

回复 #1 WFCJZ 的帖子

明明是'Tbs_Goods' 上索引有问题,为什么要修复那三张系统?

另外,用户表可以使用删除重建的方法修复索引,系统表的索引修复好像要使用一个叫做sp_fixindex的存储过程吧

zhangyh123 发表于 2008-12-10 11:11

market50 数据库的表 'Tbs_Goods'的索引删除重建

WFCJZ 发表于 2008-12-10 11:12

原帖由 sybfresher 于 2008-12-10 11:09 发表 http://bbs.chinaunix.net/images/common/back.gif
明明是'Tbs_Goods' 上索引有问题,为什么要修复那三张系统?

另外,用户表可以使用删除重建的方法修复索引,系统表的索引修复好像要使用一个叫做sp_fixindex的存储过程吧


谢谢,没看清日志,就胡发,这会就做
页: [1]
查看完整版本: 如何DROP SYSTEM INDEX