免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234下一页
最近访问板块 发新帖
查看: 10596 | 回复: 39

syscolumns表报错629,需要重新建立索引 [复制链接]

论坛徽章:
0
发表于 2006-02-16 14:09 |显示全部楼层
错误信息:
00:00000:00011:2006/02/11 03:00:30.32 server  Error: 629, Severity: 21, State: 1
00:00000:00011:2006/02/11 03:00:30.34 server  Clustered index row entry for data page 9569798 is missing in index page 43 of table

'syscolumns' in database 'db1'; index row contains data page 755231 instead. You can recreate the clustered index to fix this error.

Xactid is (3653682,16).

我尝试着用sa登录:
sp_helpindex syscolumns              看一下索引名,类型,在那几个字段上。
drop index syscolumns.index_name
create index on syscolumns(****)        ****是用sp_helpindex 看到的字段
结果,第二步失败:
Cannot drop the index 'syscolumns.syscolumns' because it is a system index.

请教大家:
我该怎么办?

论坛徽章:
0
发表于 2006-02-16 14:48 |显示全部楼层
try:

sp_configure "allow updates to system tables",1

论坛徽章:
4
2015年亚洲杯之阿联酋
日期:2015-03-10 10:32:022015年亚洲杯之阿曼
日期:2015-03-10 14:53:222015亚冠之水原三星
日期:2015-07-18 15:40:262015亚冠之塔什干棉农
日期:2015-07-27 20:52:05
发表于 2006-02-16 14:52 |显示全部楼层
sp_fixindex dbname,table_name,index_id
just try

论坛徽章:
0
发表于 2006-02-16 15:46 |显示全部楼层
谢谢楼上2位!
非常!非常!

论坛徽章:
0
发表于 2006-02-16 15:50 |显示全部楼层
原帖由 1017of 于 2006-2-16 14:52 发表
sp_fixindex dbname,table_name,index_id
just try


ASE12.5,好像没有这个存储过程,我用sp_syntax 'index'没找到。请指教。

论坛徽章:
0
发表于 2006-02-16 16:04 |显示全部楼层
怎么会没有,呵呵,在sybsystemprocs数据库里面

论坛徽章:
0
发表于 2006-02-16 16:33 |显示全部楼层
原帖由 hobbylu 于 2006-2-16 16:04 发表
怎么会没有,呵呵,在sybsystemprocs数据库里面


还真有,sp_syntax中没有它的语法,我笨

论坛徽章:
0
发表于 2006-02-17 10:18 |显示全部楼层
郁闷,楼上2种方法都失败了,
第一种,修改参数后,仍然提示系统表,不能删除index
第二种,sp_fixindex db1,syscolumns,1
错误信息如下:
Msg 605, Level 16, State 1:
Server 'pp2db', Procedure 'sp_fixindex', Line 107:
An attempt was made to fetch logical page '257' in database 'master' from cache 'default data cache'. Page belongs to object with id '45', not to object 'sysdatabases'.
DBCC execution completed. If DBCC printed error messages, contact a user with System Administrator (SA) role.

请各位继续指教!谢谢

论坛徽章:
0
发表于 2006-02-17 10:51 |显示全部楼层
你这个问题比较麻烦了

论坛徽章:
4
2015年亚洲杯之阿联酋
日期:2015-03-10 10:32:022015年亚洲杯之阿曼
日期:2015-03-10 14:53:222015亚冠之水原三星
日期:2015-07-18 15:40:262015亚冠之塔什干棉农
日期:2015-07-27 20:52:05
发表于 2006-02-17 11:04 |显示全部楼层
dbcc traceon(3604)
go
dbcc page(db1,257)
go
dbcc tablealloc(3)
go

[ 本帖最后由 1017of 于 2006-2-17 11:28 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP