长时间运行的Oracle DB查询的仿真 [英] Simulation of long-running Oracle DB query
本文介绍了长时间运行的Oracle DB查询的仿真的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Oracle DB中运行数据库查询要花费很长时间(至少几分钟)的最简单的方法(最好不创建任何新表)是什么?
What is the simplest (preferably without any new table creation) way of running a database query which takes long time (at least several minutes) in Oracle DB?
推荐答案
考虑使用 DBMS_LOCK.SLEEP(300),其中参数-等待的秒数.
Consider using DBMS_LOCK.SLEEP(300), where parameter - number of seconds to wait.
这篇关于长时间运行的Oracle DB查询的仿真的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文