Q
Problem solve Get help with specific problems with your technologies, process and projects.

Ways to monitor when database queries exceed 5 minutes

We are having problems with users kicking off long running queries. We want to write a stored procedure to monitor when a query is taking over 5 minutes and send out an alert to the DBAs. I have looked at the tables V$sql, V$sqlarea etc., but I don't see a query start time that I can use. Can you tell me where I will find the query start time in date format, or give me a another way to accomplish what I want to do?
You could set up a timing system by using triggers and log tables, but why not use Oracle's resource profile capability to set limits on SQL runtime? See the documentation on CREATE PROFILE.

Dig Deeper on Oracle database performance problems and tuning

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close