Simulation of long-running Oracle DB query

隐身守侯 提交于 2020-01-13 10:26:09

问题


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?


回答1:


Consider using DBMS_LOCK.SLEEP(300), where parameter - number of seconds to wait.




回答2:


DBMS_LOCK.sleep

(http://www.oracle-base.com/articles/9i/UsefulProceduresAndFunctions9i.php)



来源:https://stackoverflow.com/questions/1389586/simulation-of-long-running-oracle-db-query

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!