![](https://static.wixstatic.com/media/1cce54_7f23636eba324fef83c71b3e0d15f7c9~mv2.jpg/v1/fill/w_643,h_364,al_c,q_80,enc_auto/1cce54_7f23636eba324fef83c71b3e0d15f7c9~mv2.jpg)
The SQL could probably use some dressing up, however these queries help me to understand the overall error rate of IB processes.
-- SYNCHRONOUS API Calls
--Summary
SELECT
statusstring,
count(pubnode)
FROM sysadm.PSIBLOGHDR
where trunc(publishtimestamp) between '01-JUN-21' and '01-SEP-21'
group by statusstring;
--Detail
SELECT
ib_operationname,
statusstring,
count(pubnode)
FROM sysadm.PSIBLOGHDR
where trunc(publishtimestamp) between '01-JUN-21' and '01-SEP-21'
group by statusstring, ib_operationname;
-- AYNCHRONOUS API Calls
--Summary
SELECT
count(*)
FROM sysadm.PSAPMSGSUBCON
where trunc(createdttm) between '01-JUN-21' and '01-SEP-21';
--Detail
SELECT
count(actionname) total_retries,
queuename,
retrycount
FROM sysadm.PSAPMSGSUBCON
where trunc(createdttm) between '01-JUN-21' and '01-SEP-21'
and retrycount <> '0'
group by retrycount,queuename;
--Alternate SQL for between today and a number of days prior
SELECT
count(actionname) total_retries,
queuename,
retrycount
FROM sysadm.PSAPMSGSUBCON
where trunc(createdttm) between trunc(systimestamp)-90 and trunc(systimestamp)
and retrycount <> '0'
group by retrycount,queuename;
--References
コメント