免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5192 | 回复: 8

实战:解决数据库7411报错! [复制链接]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
发表于 2005-10-25 14:20 |显示全部楼层
环境:119.2/10490 +AIX
问题:数据库重新启动的时候报7411错,该应用数据库不能online,无法访问该数据库上的应用数据。
解决办法:查手册7411的表述入下
   Table 'systhresholds' in database '%.*s' is not in its
     correct sort order. Either the clustered index is
     missing or there is data corruption in the table.
和日志中表述一样,按照提示,执行dbcc
错误信息如下:
    Keys of index id 1 for table 'systhresholds' in data page not    in correct order. Drop and re-create the index. (index page 337)
           The total number of data pages in this table is 1.
           Table has 4 data rows.
           DBCC execution completed. If DBCC printed error messages, contact a user with System Administrator (SA) role.

最后的解决办法是:
update sysdatabases set status = -32768 where dbid = <x>;(后来请教高手,这行也许可以没有)
   update sysdatabases set status2 = -32768 where dbid = <x>;
   go
   shutdown
   go
   use <dbname>;
   go
   select first from sysindexes where id = object_id("systhresholds"
   go
   select count(*) from systhresholds
   go
   dbcc traceon(3604)
   go
   dbcc delete_row(<dbid>;,<first>;, row, 0)
   go
   dbcc delete_row(<dbid>;,<first>;, row, 1)
   go
   dbcc delete_row(<dbid>;,<first>;, row, 2)
   go
   dbcc delete_row(<dbid>;,<first>;, row, 3)
   go
   select count(*) from systhresholds
   go
   use master
   go
   update sysdatabases set status = 0 where dbid = x
   go
   shutdown with nowait
   go
   此时启动正常了。。做dbcc检查,没有报错!

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
发表于 2005-10-25 21:56 |显示全部楼层

实战:解决数据库7411报错!

dbcc 加fix行不行?
truncate table行不行?
Keys of index id 1 for table 'systhresholds'应该是索引的问题呀,drop index and reindex 行不行?

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
发表于 2005-10-26 10:51 |显示全部楼层

实战:解决数据库7411报错!

不行,因为重新启动server时,该应用库不能online,只能在-32768状态下操作,可以bcp数据,但drop index和truncate table等都不能执行,dbcc修复不成功

论坛徽章:
71
15-16赛季CBA联赛之同曦
日期:2018-08-23 15:41:42辰龙
日期:2014-08-15 09:07:43狮子座
日期:2014-06-03 13:55:33亥猪
日期:2014-06-02 11:17:08巨蟹座
日期:2014-05-06 10:02:03午马
日期:2014-05-04 08:18:27亥猪
日期:2014-04-29 11:11:32技术图书徽章
日期:2014-04-24 15:51:26技术图书徽章
日期:2014-04-17 11:01:53辰龙
日期:2014-04-15 12:45:46亥猪
日期:2014-04-11 09:06:23射手座
日期:2014-04-01 15:28:10
发表于 2005-10-26 12:29 |显示全部楼层

实战:解决数据库7411报错!

请问dbcc delete_row(<dbid>;,<first>;, row, 3) 里的
<first>;是什么?

论坛徽章:
0
发表于 2005-10-26 14:52 |显示全部楼层

实战:解决数据库7411报错!

贴出sp_sp_helpthreshold
和select * from systhresholds
结果,
给个例子,也是我实际实际error7411的方法,
可以参考一下:

systhresholds系统表是数据库定义的free space的阀值
5840 由sp_helpthreshold 得出的

sp_dropthreshold DZGeneralDB,"logsegment",5840

sp_addthreshold DZGeneralDB,"logsegment",5840,sp_thresholdaction

update systhresholds set status=1
chinadragon 该用户已被删除
发表于 2006-02-28 09:11 |显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
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-28 09:23 |显示全部楼层
it is lucky that only index pages encounter corruption,especially for clusterd index

论坛徽章:
0
发表于 2006-02-28 10:32 |显示全部楼层
dbcc delete_row
没看过dbcc 有这个选项阿,
这个命令是什么意思? 有什么功能啊?
:)

论坛徽章:
0
发表于 2006-02-28 16:10 |显示全部楼层
在你这个里面fist是不是就是337?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP