Skip to content
Advertisement

How to set timeout for anonoymous block or query in plsql?

I know you can set user profiles or set a general timeout for query.

But I wish to set timeout to a specific query inside a procedure and catch the exception, something like :

Is this possible? is there any timeout exceptions at all I can catch? per block or query? didn’t find much info on the topic.

Advertisement

Answer

No, you can not set a timeout in pl/sql. You could use a host language for this in which you embed your sql and pl/sql.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement