该信息为ASE 15.7 ESD#4.2 的一个bug,bugid为722898,已经在3013年5月30号发布的EBF 21148中做了修复
1.错误信息:
Cannot truncate table 'CRM_TB_BA_PRODUCT' because there are one or more
isolation level 0 scans, or REORG command, active on the table.
2.SYBASE ASE BUG信息
During connection termination an error 4720 may be raised for a #table (temporary table). Error:4270 = > "Cannot truncate table '%.*s' because there are one or more isolation level 0 scans, or REORG command, active on the table." The #table here is found to have a dlevel0cnt = 12.
3.EBF FIX BUG LIST
未升级补丁的话,解决的办法为再次执行命令
补充:后续和sybase厂家技术人员沟通,说该bug为存储过程中删除临时表的问题,而不是实体表,后通过程序日志分析,造成的原因可能是一个事物在用这个表,而另一个事务试图truncate,修改了存储过程的运行时间后,该问题解决,但是具体原因还是不明白。
查询进程隔离界别
select spid, convert(int,pssinfo(spid,"isolation_level")) isolation_level from master..sysprocesses