为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:dm8_20231011_x86_rh6_64
【操作系统】:centos 7
【CPU】:
【问题描述】*:python的cursor.callproc所调用的存过中若有delete语句包含like关键词则程序运行时会一直停在这里。
如 delete t where id like '12%'
此存过包含delete语句使用manager执行call可执行成功。
同样cursor.execute("call 存过(参数)")
cursor.execute("delete from 表 where user_no like 'aaa%'")
也有此问题
没有like就可以
python:3.6
写了个简单的demo 测试未发现存在问题,可以参考一下呢
1、delete语句单独执行耗时需要多久?
2、python执行卡住时查询是否有阻塞
select datediff(ss,a.last_recv_time,sysdate) ss,
dbms_lob.substr(sf_get_session_sql(a.sess_id)),
a.sess_id,
substr(a.clnt_ip,8,13),
a.user_name,
a.state
from v$sessions a,
v$trxwait b
where a.trx_id=b.wait_for_id;