免费注册 查看新帖 |

Chinaunix

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

各位,又出新问题了,很奇怪。在线等。(已解决,谢谢大家的帮助) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-22 10:09 |只看该作者 |倒序浏览
本帖最后由 silamuwang 于 2010-03-23 11:03 编辑

业务程序对一张表进行查询时报错,用PB连上执行语句也报错,日志错误代码:
00:00000:00221:2010/03/22 08:34:27.16 server  Starting diagnostics for read failure:
00:00000:00221:2010/03/22 08:34:27.16 server  Device Information:
                                 Device number = 22
                                 Phyname = /sybdata/erp_logdevice
00:00000:00221:2010/03/22 08:34:27.16 server  Buffer Information:
                                 Buf addr = 0x29e183fd8, Mass addr = 0x29e183fd8
                                 Buf pageno = 6265144, Mass pageno = 6265144, dbid = 5
00:00000:00221:2010/03/22 08:34:27.16 server  
                                 Buf virtpg = 371267896, Mass virtpg = 371267896
                                 Buf stat = 0x1, Mass stat = 0x46001008
                                 Mass keep = 1, Mass awaited = 0
00:00000:00221:2010/03/22 08:34:27.16 server  Page Information from first read attempt: Page read from cache ppageno = 6265144, pobjid = 2121771585, pindid = 1 pnextpg = 6046387, pprevpg = 3318759 plevel = 0, pstat = 0x80 pts_hi = 0, pts_lo = 1114648987
00:00000:00221:2010/03/22 08:34:27.16 server  Page Information from second read attempt: Page read from disk ppageno = 6265144, pobjid = 2121771585, pindid = 1 pnextpg = 6046387, pprevpg = 3318759 plevel = 0, pstat = 0x80 pts_hi = 0, pts_lo = 1114648987
00:00000:00221:2010/03/22 08:34:27.16 server  SDES Information:
                                 dbid = 5, objid = 1492197335, scur.pageid = 6265144
                                 sstat = 0x2000040, sstat2 = 0x20
                                 suid = 1, cacheid = 0
00:00000:00221:2010/03/22 08:34:27.16 server  PSS Information:
                                 pstat = 0x10100, pcurdb = 5, pspid = 221
                                 p2stat = 0x1000, p3stat = 0x81a
                                 plasterror = 0, preverror = 0, pattention = 0
00:00000:00221:2010/03/22 08:34:27.16 server  End diagnostics for read failure:
00:00000:00221:2010/03/22 08:34:27.16 server  Run the DBCC command 'dbcc tablealloc' for both the objects 1492197335, 2121771585
00:00000:00221:2010/03/22 08:34:27.17 server  Error: 605, Severity: 21, State: 1
00:00000:00221:2010/03/22 08:34:27.17 server  An attempt was made to fetch logical page '6265144' in database 'hjerp' from cache 'default data cache'. Page belongs to object with id '2121771585', not to object 'invt06_c'.

如何解决?

论坛徽章:
0
2 [报告]
发表于 2010-03-22 10:25 |只看该作者
后执行
1> dbcc checktable (1492197335)
2> go
Checking invt06_c: Logical pagesize is 2048 bytes
The total number of data pages in this table is 76660.
The total number of empty pages (with all deleted rows) in this table is 23.
The total number of pages which could be garbage collected to free up some space
is 23396.
Table has 378289 data rows.
Msg 605, Level 16, State 1:
Line 1:
An attempt was made to fetch logical page '6265160' in database 'hjerp' from
cache 'default data cache'. Page belongs to object with id '956527410', not to
object 'invt06_c'.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
1> dbcc checktable (2121771585)
2> go
Checking prdm33: Logical pagesize is 2048 bytes
The total number of data pages in this table is 71752.
The total number of TEXT/IMAGE pages in this table is 740.
Table has 262639 data rows.
Msg 7931, Level 16, State 1:
Line 1:
Table Corrupt: keys in right child precede the parent key; check right child
page 3993338.
Msg 7931, Level 16, State 1:
Line 1:
Table Corrupt: keys in right child precede the parent key; check right child
page 3993339.
Msg 7931, Level 16, State 1:
Line 1:
Table Corrupt: keys in right child precede the parent key; check right child
page 3993340.
Msg 605, Level 16, State 1:
Line 1:
An attempt was made to fetch logical page '3700304' in database 'hjerp' from
cache 'default data cache'. Page belongs to object with id '1227200441', not to
object 'prdm33'.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
1>

怎么解决这个问题?多谢各位了

论坛徽章:
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
3 [报告]
发表于 2010-03-22 10:31 |只看该作者
又是一个605错误?

论坛徽章:
0
4 [报告]
发表于 2010-03-22 10:37 |只看该作者
试一下 reorg rebuild?

论坛徽章:
0
5 [报告]
发表于 2010-03-22 10:49 |只看该作者
回复 4# taker2001


    reorg rebuild tb 会引起其他错误吗?

论坛徽章:
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
6 [报告]
发表于 2010-03-22 10:52 |只看该作者
pindid = 1 ,有问题的页面时表上的聚簇索引页。

reorg rebuild 会有问题的。

sybase的官方建议就是bcp出来数据,在你允许数据损失的情况下。

论坛徽章:
0
7 [报告]
发表于 2010-03-22 10:56 |只看该作者
本帖最后由 silamuwang 于 2010-03-22 11:03 编辑

回复 6# andkylee


    andkylee的解决办法能说的详细点吗? 是把这个表bcp倒出来,然后建新表再导进去?
   另外有没有不丢失数据的办法。

论坛徽章:
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
8 [报告]
发表于 2010-03-22 11:03 |只看该作者
对。只能这么干了。 既然你用dbcc tablealloc(xxxxx,full,fix) 都搞不定的话。

论坛徽章:
0
9 [报告]
发表于 2010-03-22 11:04 |只看该作者
605错误的数据拯救一般可以这样来做
第一、用dbcc pglinkage来确定数据页链的准确性
第二、使数据的页链变得正确,绕过错误的页面
第三、如何修改页链,得借助工具,请看我的powersybedit
第四、修改好之后,bcp out 数据
第五、验证数据

论坛徽章:
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
10 [报告]
发表于 2010-03-22 11:08 |只看该作者
对605,我也有一定的办法。用工具修改页面信息。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP