You can use the following query against the internal queue table for load balancing advisory FAN events to monitor load balancing advisory events generated for an instance:
SET PAGES 60 COLSEP '|' LINES 132 NUM 8 VERIFY OFF FEEDBACK OFF COLUMN user_data HEADING "AQ Service Metrics" FORMAT A60 WRAP BREAK ON service_name SKIP 1 SELECT TO_CHAR(enq_time, 'HH:MI:SS') Enq_time, user_data FROM sys.sys$service_metrics_tab ORDER BY 1 ;
The results of this query contain rows similar to the following:
02:56:05|SYS$RLBTYP('hr', 'VERSION=1.0 database=sales service=hr { {instance=sales_4 percent=38 flag=GOOD aff=TRUE}{instance=sales_1 percent=62 flag=GOOD aff=TRUE} } timestamp=2012-07-16 07:56:05')
Following is an example of a load balancing advisory event for the lba_serv
service offered on two instances (orcl1
and orcl2
), as captured from Oracle Notification Service using the Oracle RAC FAN API:
Notification Type: database/event/servicemetrics/lba_serv.example.com VERSION=1.0 database=orcl service=lba_serv.example.com { {instance=orcl2 percent=50 flag=UNKNOWN aff=FALSE}{instance=orcl1 percent=50 flag=UNKNOWN aff=FALSE} } timestamp=2012-07-06 13:19:12
Note:
The SERVICMETRICS
events are not visible through the FAN callout mechanism.