Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulation of long-running Oracle DB query

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?

like image 291
Andrey Adamovich Avatar asked Sep 07 '09 14:09

Andrey Adamovich


2 Answers

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

like image 132
Vitaliy Ulantikov Avatar answered Oct 29 '22 18:10

Vitaliy Ulantikov


DBMS_LOCK.sleep

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

like image 40
Paul Wagland Avatar answered Oct 29 '22 18:10

Paul Wagland