RIB - Inventory Adjustments
- Get link
- X
- Other Apps
Neste post mostro como encontrar queue tables ( inventory adjustments neste caso) e o estado das mensagens.
SQL> select owner,table_name from all_tables where table_name like 'ET%INV%';
OWNER TABLE_NAME
------------------------------ ------------------------------
RIBAQ ETINVADJUSTTABLE
RIBAQ ETINVREQTABLE
SQL> select count(0) from RIBAQ.ETINVADJUSTTABLE;
COUNT(0)
----------
544
OWNER TABLE_NAME
------------------------------ ------------------------------
RIBAQ ETINVADJUSTTABLE
RIBAQ ETINVREQTABLE
SQL> select count(0) from RIBAQ.ETINVADJUSTTABLE;
COUNT(0)
----------
544
SQL> select msgid,enq_time,deq_time from RIBAQ.ETINVADJUSTTABLE order by 2 asc
MSGID ENQ_TIME DEQ_TIME
-------------------------------- --------------------------------------------------------------------------- ---------
6511FD971CEBC0AEE0530D2810AC2B8D 13-FEB-18 10.54.58.585547 PM
6511F6994E6C6F6AE0530D2810AC0D9A 13-FEB-18 10.54.58.557901 PM
-- trunctate output
549 rows selected.
NAME QID WAITING READY EXPIRED AVERAGE_MSG_AGE TOTAL_WAIT AVERAGE_WAIT
------------------------------ ---------- ---------- ---------- ---------- --------------- ---------- ------------
ETINVADJUST 88311 0 549 0 65073 35725543 65073.8488
AQ$_ETINVADJUSTTABLE_E 88310 0 0 0 0 0 0
MSGID ENQ_TIME DEQ_TIME
-------------------------------- --------------------------------------------------------------------------- ---------
6511FD971CEBC0AEE0530D2810AC2B8D 13-FEB-18 10.54.58.585547 PM
6511F6994E6C6F6AE0530D2810AC0D9A 13-FEB-18 10.54.58.557901 PM
-- trunctate output
549 rows selected.
SQL> set lines 200
select dq.name,
--dq.queue_type,
qi.*
--dq.queue_type,
qi.*
from v$aq qi, dba_queues dq where qi.qid = dq.qid and dq.queue_table like 'ETINVADJUSTTABLE';
NAME QID WAITING READY EXPIRED AVERAGE_MSG_AGE TOTAL_WAIT AVERAGE_WAIT
------------------------------ ---------- ---------- ---------- ---------- --------------- ---------- ------------
ETINVADJUST 88311 0 549 0 65073 35725543 65073.8488
AQ$_ETINVADJUSTTABLE_E 88310 0 0 0 0 0 0
Obrigado pela leitura,
Espero que este post o tenha ajudado.
This post is for Oracle Retail pros - I'm showing how to find the queue table for Inventory Adjustments and the message status.
SQL> select owner,table_name from all_tables where table_name like 'ET%INV%';
OWNER TABLE_NAME
------------------------------ ------------------------------
RIBAQ ETINVADJUSTTABLE
RIBAQ ETINVREQTABLE
SQL> select count(0) from RIBAQ.ETINVADJUSTTABLE;
COUNT(0)
----------
544
MSGID ENQ_TIME DEQ_TIME
549 rows selected.
NAME QID WAITING READY EXPIRED AVERAGE_MSG_AGE TOTAL_WAIT AVERAGE_WAIT
------------------------------ ---------- ---------- ---------- ---------- --------------- ---------- ------------
ETINVADJUST 88311 0 549 0 65073 35725543 65073.8488
AQ$_ETINVADJUSTTABLE_E 88310 0 0 0 0 0 0
OWNER TABLE_NAME
------------------------------ ------------------------------
RIBAQ ETINVADJUSTTABLE
RIBAQ ETINVREQTABLE
SQL> select count(0) from RIBAQ.ETINVADJUSTTABLE;
COUNT(0)
----------
544
SQL> select msgid,enq_time,deq_time from RIBAQ.ETINVADJUSTTABLE order by 2 asc
MSGID ENQ_TIME DEQ_TIME
-------------------------------- --------------------------------------------------------------------------- ---------
6511FD971CEBC0AEE0530D2810AC2B8D 13-FEB-18 10.54.58.585547 PM
6511F6994E6C6F6AE0530D2810AC0D9A 13-FEB-18 10.54.58.557901 PM
-- trunctate output
549 rows selected.
SQL> set lines 200
select dq.name,
--dq.queue_type,
qi.*
--dq.queue_type,
qi.*
from v$aq qi, dba_queues dq where qi.qid = dq.qid and dq.queue_table like 'ETINVADJUSTTABLE';
NAME QID WAITING READY EXPIRED AVERAGE_MSG_AGE TOTAL_WAIT AVERAGE_WAIT
------------------------------ ---------- ---------- ---------- ---------- --------------- ---------- ------------
ETINVADJUST 88311 0 549 0 65073 35725543 65073.8488
AQ$_ETINVADJUSTTABLE_E 88310 0 0 0 0 0 0
Thank you for reading.
hope this post was helpful.
hope this post was helpful.
Comments