简单查询会导致ora - 01013错误。
select count (*) as counter, 'month_stat' as name
from s_contact_x
where created < last_upd
and (sysdate - last_upd) < 1消息:查询失败ORA-01013:用户请求取消当前操作
此select查询成功地在蟾蜍编辑器中运行,但需要3-5分钟的get结果集。
据我所知,这个问题与oracle查询超时相对应,我们如何在查询中设置它?
发布于 2010-12-17 00:49:42
正如其他人所建议的,您应该首先查看更改设置和添加索引。如果这样做不起作用,那么您可能需要考虑使用并行性来加速查询:
select /*+ parallel(s_contact_x) */ count (*) as counter, 'month_stat' as name
from s_contact_x
where created < last_upd
and (sysdate - last_upd) < 1https://stackoverflow.com/questions/4459338
复制相似问题