update statistics的问题
本帖最后由 tking 于 2012-5-20 17:39 编辑sybase11.9.2,为了清理碎片,准备利用bcp out/in,数据重新导入后,有若干表执行update statistics报错,sql advantage奔溃。
提示错误编号5702,无其他辅助信息,errorlog情况如下:
————————————————————
01:00000:00009:2012/05/21 14:18:03.43 kernelSQL Server system exception (0xc00000fd) generated by a stack overflow.
01:00000:00009:2012/05/21 14:18:03.43 kernel************************************
01:00000:00009:2012/05/21 14:18:03.43 kernelSQL causing error : update statistics FQD2
01:00000:00009:2012/05/21 14:18:03.43 kernel************************************
01:00000:00009:2012/05/21 14:18:03.43 serverSQL Text: update statistics FQD2
01:00000:00009:2012/05/21 14:18:03.43 kernelcurdb = 7 pstat = 0x10000 lasterror = 0
01:00000:00009:2012/05/21 14:18:03.43 kernelpreverror = 0 transtate = 1
01:00000:00009:2012/05/21 14:18:03.43 kernelcurcmd = 241 program = SQL_Advantage
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x466cca collocate+ 0x17a (0x101ea40, 0xfffffffb, 0x0, 0x1e)
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x466cca collocate+ 0x17a (0x101ea00, 0x101f220, 0x101fa2c, 0x7)
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x51f89b sortcmp+ 0x2fb (0x101f9f0, 0x2014b440, 0x101f6f4, 0xffffffff)
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x91eb3e ups_build+ 0x46e (0x2014b440, 0x800000, 0x0, 0x4)
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x91d83f update_statistics+ 0x16f (0x21898418, 0xf1, 0x20011a20, 0x202e6440)
01:00000:00009:2012/05/21 14:18:03.43 kernel
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x91cc5f ups_main+ 0x2ef (0x21, 0x202e6440, 0x202e6440, 0x202a3e30)
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x653725 s_execute+ 0x11e5 (0x2185c000, 0x21, 0x202ed67d, 0x202e6440)
01:00000:00009:2012/05/21 14:18:03.43 kernel
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x63678f sequencer+ 0x15f (0x0, 0x20019b58, 0x220022, 0x20018460)
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x436d31 tdsrecv_language+ 0xc1 (0x2, 0x4000, 0x20019b58, 0x220022)
01:00000:00009:2012/05/21 14:18:03.43 kernel
01:00000:00009:2012/05/21 14:18:03.43 kernel
01:00000:00009:2012/05/21 14:18:03.43 kernel
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x40dc1c conn_hdlr+ 0xb5c (0x20019b58, 0x20018460, 0x220022, 0x20019b58)
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x89c1c6 kpntwrapper+ 0x96 (0x89c130, 0x20019b58, 0x0, 0xc1)
01:00000:00009:2012/05/21 14:18:03.43 kernelpc: 0x7c80b6d9 kernel32.dll (0x0, 0x0, 0x0, 0x0)
01:00000:00009:2012/05/21 14:18:03.43 kernelend of stack trace, spid 9, kpid 2293795, suid 7
-----------------------
请教问题出在哪里?dbcc检查表没问题
再测试一下看看。
检查表明是摸个index导致的,单独更新index时有个提示:
ct_send():network packet layer:internal Client Library error:
Stat error:trying to write when connection is expecting a read.
页:
[1]