- 论坛徽章:
- 0
|
小弟在处理一程序时,数据库在即将结束时报"<-16843010>;--<ct_cmd_alloc(): user api layer: external error: error string not available>;"异常.该种情况已经出现很多次了,万望各位指教!
操作系统为S85,数据库版本为Adaptive Server Enterprise/12.5.0.3/EBF 11443 ESD#4/P/RS6000/AIX 4.3.3/rel12503/1939/32-bit/FBO/Sun Sep 21 00:54:50 2003.
查看SYBASE.log,该时间点附近为:
02:00000:00011:2005/04/08 03:33:14.15 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.
01:00000:00017:2005/04/08 05:50:22.34 server Error: 1608, Severity: 18, State:4
01:00000:00017:2005/04/08 05:50:22.34 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.
请问:在何种情况下可能出现该种异常?如何避免该种异常?
程序框架如下
declare tmp_cur cursor for
.......
open tmp_cur;
while(1)
{
fetch tmp_cur;
if(sqlcode!=0) break;
........
sub_proc();
........
if(proc_cnt%1000)=0
printf(" roc cnt<%d>;" ;
}
if(sqlcode!=100) /*此处报错*/
{
WriteErrLog(...)
close tmp_cur;
deallocate cursor tmp_cur;
rollback;
return -1
}
close tmp_cur;  |
|