I wrote a generic SQL select statement executor with "Groovy-SQL" (=Java JDBC Wrapper). It has got a timeout feature.
To test the timeout feature in an automated integration test I'd like to issue a SQL select like
SELECT sleep(10) from DUAL;
which should run for 10 seconds and then return. Like MySql's http://dev.mysql.com/doc/refman/5.6/en/miscellaneous-functions.html#function_sleep.
Is there something like this also in Oracle to simulate a "long running" query? I'd like to have a plain SQL query, without any PL/SQL or special grants like in the Sleep function in ORACLE discussion.