0% found this document useful (0 votes)
931 views1 page

Business Event and Subscription Query

This document provides two SQL queries to find information about business events and their subscriptions from database tables, as well as to check the trigger status of business events. The first query selects the name, status, phase, and other details of events and their subscriptions from the wf_events and wf_event_subscriptions tables. The second query counts and groups the status of deferred messages for a specific business event from the applsys.aq$wf_deferred table to check if it was triggered within the last day.

Uploaded by

srains123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
931 views1 page

Business Event and Subscription Query

This document provides two SQL queries to find information about business events and their subscriptions from database tables, as well as to check the trigger status of business events. The first query selects the name, status, phase, and other details of events and their subscriptions from the wf_events and wf_event_subscriptions tables. The second query counts and groups the status of deferred messages for a specific business event from the applsys.aq$wf_deferred table to check if it was triggered within the last day.

Uploaded by

srains123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Query to find business events and it's subscription

select we.name
,we.status event_status
,wes.status subscription_status
,nvl(wes.phase,0) subscription_phase
,wes.licensed_flag subscription_licensed_flag
,we.licensed_flag event_licensed_flag
,wes.rule_function
from wf_events we
,wf_event_subscriptions wes
where
we.name like 'oracle.apps.fnd.%'
and wes.event_filter_guid = we.guid;

Below query can be used to check Business events trigger status in oracle from
database:

SELECT COUNT(1),
a.msg_state,
a.user_data.event_name,
a.user_data.send_date
FROM applsys.aq$wf_deferred a
WHERE a.user_data.event_name LIKE 'oracle.apps.ont.oi.xml_int.status' --Business
event name
AND a.user_data.send_date > SYSDATE - 1
GROUP BY a.msg_state, a.user_data.event_name, a.user_data.send_date
ORDER BY 1, 2 ;

You might also like