views:

129

answers:

2

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?

+7  A: 

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

Veton
Thanks, that's what I really need :)
Superfilin
+1 Very useful, thanks for the tip!
javashlook
+3  A: 

DBMS_LOCK.sleep

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

Paul Wagland
Thanks, but Veton was faster :).
Superfilin
weeeeeeee!!! :)
Veton