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.