免费注册 查看新帖 |

Chinaunix

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

求助:error:625 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-28 11:28 |只看该作者 |倒序浏览
请问各位老大:如何进入jsbwdb数据库,555555我没有备份,数据有相当重要。请各位出手相助!谢了!!
数据库平台:syabse 11 for scounix505
故障现象:
$isql -Usa -P
>;use jsbwdb
>;go
Msg 921 ,Level 14 ,state 1
Line 1:
Database "jsbwdb" has not been recovered yet - Please wait and try again.
>;

下面是errorlog文件的出错片断:
00:04/09/27 12:08:37.35 server  Recovering database 'jsbwdb'.
00:04/09/27 12:08:37.41 server  Recovery dbid 5 ckpt (16389,0)
00:04/09/27 12:08:37.41 server  Recovery no active transactions before ckpt.
00:04/09/27 12:08:38.01 server  Error: 625, Severity: 21, State: 1
00:04/09/27 12:08:38.01 server  Could not retrieve row from logical page 16412 via RID because the entry in the offset table for that RID is less than or equal to 0.
00:04/09/27 12:08:38.01 server  Error while undoing log row in database 'jsbwdb'.  Rid pageid = 0x0; row num = 0x0.
LOG SCAN DEFINTION:
        Database id : 5
        Forward scan: starting at begining of log
        log records for object id 1

LOG RECORDS:
        INSERT         (10250,0)
        attcnt=1 rno=0 op=4 padlen=0 sessionid = (10249,21) len=132
        odc_stat=0x0000 (0x0000)
        loh_status: 0x0 (0x00000000)
        oampg=2 pageno=1 offset=1736 status=0x00 cid=0
        old ts=0x0001 0x00000586   new ts=0x0001 0x00000653
        xrow:  
80944850:  02150100 1030f400 00004300 00000000 00000000  .....0....C.........
80944864:  00000000 0e950000 d0748400 0e950000 d0748400  .........t.......t..
80944878:  00000000 00000000 00000000 00000000 00000000  ....................
8094488c:  55200000 54006a73 62775f6a 7a746b62 00000000  U ..T.jsbw_jztkb....
809448a0:  03504c42                                      .PLB.

        IINSERT         (10250,1)
        attcnt=1 rno=1 op=7 padlen=0 sessionid = (10249,21) len=72
        odc_stat=0x0000 (0x0000)
        loh_status: 0x0 (0x00000000)
        oampg=2 pageno=16 offset=32 status=0x00 cid=0
        old ts=0x0001 0x0000051f   new ts=0x0001 0x00000654
        xrow:  
809448d4:  01010001 00000015 0018006a 7362775f 6a7a746b  ...........jsbw_jztk
809448e8:  6202150b                                      b....

00:04/09/27 12:08:38.19 kernel  current process (0x30003) infected with 11
00:04/09/27 12:08:38.22 kernel  Address 0x2ef8f (bufsearch___1+0x1ab), siginfo (code, address) = (2, 0x40154)
00:04/09/27 12:08:38.22 kernel  curdb = 5 pstat = 0x1000 lasterror = 625
00:04/09/27 12:08:38.22 kernel  preverror = 0 transtate = 1
00:04/09/27 12:08:38.22 kernel  curcmd = 0 program =                              
00:04/09/27 12:08:38.34 kernel  pc: 0x2e4b85 ucbacktrace+0x55(0x0,0x1,0x80029f54,0x40154,0xb)
00:04/09/27 12:08:38.35 kernel  pc: 0x27bf terminate_process+0x33f(0x0,0xffffffff,0x0,0x4014c,0x803a94d
00:04/09/27 12:08:38.36 kernel  pc: 0x2fb95f kisignal+0x9f(0xb,0x8002a14c,0x80029f4c,0x0,0x0)
00:04/09/27 12:08:38.38 kernel  pc: 0x351a7c sigismember+0x64(0x803a94d8,0x809448e8,0x803a94d8,0x0,0x1)
00:04/09/27 12:08:38.39 kernel  pc: 0x1c90aa getcachedpage___1+0x16(0x803a94d8,0x0,0x1,0x1,0x8002a2bc)
00:04/09/27 12:08:38.39 kernel  pc: 0x1c936e getpage_nicetocache___1+0x16(0x8002a544,0xffffffff,0x8002a564,0x803a0000,0x8002a564)
00:04/09/27 12:08:38.39 kernel  pc: 0x1c94f6 getpage_ns_nicetocache+0x86(0x803a94d8,0x80998860,0x8002a544,0x8002a534,0x0)
00:04/09/27 12:08:38.40 kernel  [Handler pc: 0xf0c50 hdl_backout(num=0, sev=0) installed by the following function]
00:04/09/27 12:08:38.41 kernel  pc: 0x1f0c7c d_log+0x6fc(0x5,0x1,0x0,0x0,0x0)
00:04/09/27 12:08:38.42 kernel  [Handler pc: 0x1c29d0 getdoerr(num=0, sev=0) installed by the following function]
00:04/09/27 12:08:38.42 kernel  pc: 0x1bff86 undo+0x2d6(0x802c69d0,0x8066efac,0x8066efac,0x8002b218,0x1)
00:04/09/27 12:08:38.43 kernel  [Handler pc: 0x16a2a0 rec_handle(num=0, sev=0) installed by the following function]
00:04/09/27 12:08:38.43 kernel  pc: 0x169ae0 rec_complete+0x1d0(0x80519be0,0x1,0x8066efac,0x8066efac,0x0)
00:04/09/27 12:08:38.44 kernel  pc: 0x16b924 undo_tran_list___1+0x68(0x802c69d0,0x169785,0x8002af84,0x8002b218,0x803a8e2
00:04/09/27 12:08:38.44 kernel  [Handler pc: 0x16a2a0 rec_handle(num=0, sev=0) installed by the following function]
00:04/09/27 12:08:38.44 kernel  pc: 0x1697d9 rec_transactions+0xf39(0x80519be0,0x803a8e28,0x8066eb7c,0x8002b218,0x1)
00:04/09/27 12:08:38.44 kernel  [Handler pc: 0x16a2a0 rec_handle(num=3605, sev=25) installed by the following function]
00:04/09/27 12:08:38.44 kernel  [Handler pc: 0x16a2a0 rec_handle(num=0, sev=0) installed by the following function]
00:04/09/27 12:08:38.44 kernel  pc: 0x1680cf recovery+0x32f(0x1,0x1674bc,0x0,0x86e0,0x8002b2eb)
00:04/09/27 12:08:38.44 kernel  [Handler pc: 0x16a2a0 rec_handle(num=0, sev=0) installed by the following function]
00:04/09/27 12:08:38.44 kernel  pc: 0x1674ce dorecover+0x46e(0x0,0x0,0x0,0x0,0x5f6f7369)
00:04/09/27 12:08:38.44 kernel  [Handler pc: 0x3ca0 ds_handle(num=800, sev=0) installed by the following function]
00:04/09/27 12:08:38.44 kernel  pc: 0x1774 dsinit+0x9f4(0x0,0x8002b460,0x6a006a,0x0,0x0)
00:04/09/27 12:08:38.44 kernel  pc: 0x2f8e30 kpexit(0x0,0x0,0x5374616b,0x0,0x0)
00:04/09/27 12:08:38.44 kernel  pc: 0x6a006a frexp+0x346236(0x5374616b,0x0,0x0,0x0,0x0)
00:04/09/27 12:08:38.44 kernel  end of stack trace, spid 1, kpid 196611, suid 0
00:04/09/27 13:13:58.20 kernel  Using config area from primary master device.
00:04/09/27 13:13:58.46 kernel  Warning: Using default file '/usr/sybase/SYBASE.cfg' since a configuration file was not specified. Specify a configuration file name in the RUNSERVER file to avoid this message.
00:04/09/27 13:13:58.73 kernel  Using 110 file descriptors.
00:04/09/27 13:13:58.77 kernel  SQL Server/11.0.3/P/SCO/SCO_SV r3.2v5.0.2/2/OPT/Fri Jul 18 19:10:23 PDT 1997
00:04/09/27 13:13:58.79 kernel  Confidential property of Sybase, Inc.
00:04/09/27 13:13:58.79 kernel  (c) Copyright Sybase Inc., 1987, 1997.

论坛徽章:
0
2 [报告]
发表于 2004-09-28 14:55 |只看该作者

求助:error:625

我查询过sybase英文网站,我的E文太差,只看了个大概:Error:625的原因有两个:1、index坏了。2、硬件故障。其中1、的处理是进入该数据库,删除index然后重建Index。但是我根本进不了该数据库。

论坛徽章:
0
3 [报告]
发表于 2004-09-28 18:00 |只看该作者

求助:error:625

用-32768启动数据库后可以删除index

论坛徽章:
0
4 [报告]
发表于 2004-09-29 08:23 |只看该作者

求助:error:625

谢谢“小无赖”兄,我查找了sybase的中文网站,用以下方法该为-32768
1>;sp_configure "allow update",1
2>;go
1>;begin tran
2>;go
1>;update sysdatabases set status=-32768 where name="jsbwdb"
2>;go
(1 row affected)
1>;commit
2>;go
1>;shutdown
2>;go
$./install/startserver -f RUN_SYBASE
重启sql server后又出现错误,下面是errorlog文件的信息:
*** Bypassing recovery of database id 5

00:04/09/28 15:18:23.06 server  Error: 625, Severity: 21, State: 1
00:04/09/28 15:18:23.06 server  Could not retrieve row from logical page 16412 via RID because the entry in the offset table for that RID is less than or equal to 0.
00:04/09/28 15:18:23.16 server  Unable to proceed with the recovery of dbid <5>; because of previous errors.  Continuing with the next database.
00:04/09/28 15:18:23.26 server  Recovery complete.
00:04/09/28 15:18:23.26 server  SQL Server's default sort order is:
00:04/09/28 15:18:23.36 server          'bin_iso_1' (ID = 50)
00:04/09/28 15:18:23.36 server  on top of default character set:
00:04/09/28 15:18:23.46 server          'iso_1' (ID = 1).
00:04/09/28 15:18:52.35 server  WARNING: spid 1, with suid 0 and curdbid 5 has open system SDES #0 with dbid 1 and objid 30. PSS pstat = 0x0, p2stat = 0x110, p3stat = 0x2, pattention = 0, pcmderrs = 0x0.
00:04/09/28 15:18:52.35 server  WARNING: spid 1, with suid 0 and curdbid 5 has open system SDES #1 with dbid 5 and objid 8. PSS pstat = 0x0, p2stat = 0x110, p3stat = 0x2, pattention = 0, pcmderrs = 0x0.
00:04/09/28 15:18:52.36 server  WARNING: spid 1, with suid 0 and curdbid 5 has open system SDES #2 with dbid 5 and objid 8. PSS pstat = 0x0, p2stat = 0x110, p3stat = 0x2, pattention = 0, pcmderrs = 0x0.
00:04/09/28 15:18:52.56 server  WARNING: spid 1, with suid 0 and curdbid 5 has active XDES #0 with xactid (0, 0). PSS pstat = 0x0, p2stat = 0x110, p3stat = 0x2, pxactcnt = 0, pattention = 0, pcmderrs = 0x0, XDES dbt_dbid = 5, xstate = 0x1, xstatus = 0x8, xmode = 0x0.
00:04/09/28 15:18:52.66 server  WARNING: spid 1, with suid 0 and curdbid 5 has active XDES #1 with xactid (0, 0). PSS pstat = 0x0, p2stat = 0x110, p3stat = 0x2, pxactcnt = 0, pattention = 0, pcmderrs = 0x0, XDES dbt_dbid = 5, xstate = 0x1, xstatus = 0x8, xmode = 0x0.
00:04/09/28 15:18:52.76 server  Contact Sybase Technical Support.
00:04/09/28 15:19:53.16 server  Error: 820, Severity: 21, State: 2
00:04/09/28 15:19:53.16 server  Attempt to dirty non-log buffer BUF pointer = '0x809996a0', MASS pointer = '0x809996a0', (Buf#: '0'), page ptr = '0x80957000', dbid = '5', Mass virtpage = '33560604', Buffer page = '16412', Mass status = '0x4211008', Buffer status = '0x1', size = '2048', cache (id: 0) = 'default data cache' which is in I/O.
00:04/09/28 15:20:43.69 server  Error: 834, Severity: 20, State: 4
00:04/09/28 15:20:43.69 server  Illegal attempt to clean buffer: BUF pointer = '0x809996a0', MASS pointer = '0x809996a0', (Buf#: '0'), page ptr = '0x80957000', dbid = '5', Mass virtpage = '33560604', Buffer page = '16412', Mass status = '0x4211008', Buffer status = '0x1', size = '2048', cache (id: 0) = 'default data cache'.
00:04/09/28 15:20:43.76 kernel  ************************************
然后就不能够更改status的值了。
$isql -Usa -P
1>;select name,status from sysdatabases where name="jsbwdb"
2>;go
name                                 status
--------------------------          ---------
jsbwdb                               -32384

(1 row affected)

还有什么方法吗?!!!

论坛徽章:
0
5 [报告]
发表于 2004-09-29 08:47 |只看该作者

求助:error:625

这个好像是数据库还没有回归完成阿,等回轨完成了,会自动恢复的。如恢复不了再判断是不是index,硬件故障的问题

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-29 06:20:00
6 [报告]
发表于 2004-09-29 10:56 |只看该作者

求助:error:625

我觉得应该先看看操作系统的错误日志,看看是否和625有关

论坛徽章:
0
7 [报告]
发表于 2004-09-29 15:31 |只看该作者

求助:error:625

谢谢各位!!!
to pandu:
我已经等了24小时以上,可她就是不恢复,咳,够可怜的了。
to ahjf:
能够告诉我看那个系统日志文件吗?

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-29 06:20:00
8 [报告]
发表于 2004-09-29 17:02 |只看该作者

求助:error:625

你试试在dataserver启动开关里面加上 -T 3608 试试,这个开关是不恢复除master库外的任何其他数据库,但是你可以登上去(就是说use应该可以用了),祝好运!
另外,我也不知道sco的系统日志在哪里,不好意思!

论坛徽章:
0
9 [报告]
发表于 2004-09-30 17:13 |只看该作者

求助:error:625

to ahjf:谢谢!运气不太好!加了-T 3608 的开关还是不行,抱错说该数据库offline。

论坛徽章:
0
10 [报告]
发表于 2004-10-09 11:21 |只看该作者

求助:error:625

真的不行就截日志强行起来吧,SYBASE的恢复感觉是有问题,我恢复过几天几夜也恢复不了的,但强行起来风险太大,自己好好考虑
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP