- Number of waiting messages per queue
- Number of expired messages per queue
- Number of messages on status ready per queue
- Average waiting time per queue
- Total waiting time per queue
Oracle Enterprise Manager (OEM) is such a tool. OEM provides functionality to specify User-defined SQL-based metrics that allows you to easily integrate your own SQL monitoring scripts in OEM together with defined thresholds on the metrics, OEM will trigger alert notifications. The SQL queries below can be used for creating SQL based User-defined metrics in OEM to monitor specific queues on specific aspects:
-- Average wait metric
select dbaq.name, vaq.average_wait from sys.dba_queues dbaq, sys.V_$AQ vaq where dbaq.name in ('SOME_Q_A', 'SOME_Q_B') and dbaq.qid = vaq.qid
-- Total wait metric
select dbaq.name, vaq.total_wait from sys.dba_queues dbaq, sys.V_$AQ vaq where dbaq.name in ('SOME_Q_A', 'SOME_Q_B') and dbaq.qid = vaq.qid
-- Expired messages metric
select dbaq.name, vaq.expired from sys.dba_queues dbaq, sys.V_$AQ vaq where dbaq.name in ('SOME_Q_A', 'SOME_Q_B') and dbaq.qid = vaq.qid
-- Ready messages metric
select dbaq.name, vaq.ready from sys.dba_queues dbaq, sys.V_$AQ vaq where dbaq.name in ('SOME_Q_A', 'SOME_Q_B') and dbaq.qid = vaq.qid;
Notes:
- The queries are Two-Column queries and the Metric type is Number
- Determine a correct value for Consecutive Occurrences Preceding Notification option to prevent false positives
- Set a correct interval. Keep in mind that monitoring causes some minor overhead...so don't set the interval too small.. 30 minutes should be sufficient in most scenario's

3 comments:
Interesting, I too am working in Utrecht on a project for Oracle:-)
You have defined very well Metrics but i like the most that you have mentioned in notes like:* The queries are Two-Column queries and the Metric type is Number,* Determine a correct value for Consecutive Occurrences Preceding Notification option to prevent false positives,*Set a correct interval.
sap testing
All the contents you provide in post is too good and useful . I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Oracle Goldengate
Post a Comment