ASO - ORDER - FEEDBACK - T Purging
ASO - ORDER - FEEDBACK - T Purging
ASO - ORDER - FEEDBACK - T Purging
Overview:
The ASO.ASO_ORDER_FEEDBACK_T table contains millions of records. It contains record for two consumers
OKS & OZF. Cousmer OZF record has a status of 'READY'. This is not correct. Query to identify the
Consumers (Product) of the queue
As per document 181410.1 all the inactive cosumer can be purge. Consumer OZF is inactive in our enviorment.
Thus it can be purged.
How to find the inactive consumer ? Log in to Oracle Forms using the 'Quoting Sales Manager' responsibility
and navigate to QuickCodes.Query for the lookup entries in the lookup 'ASO_ORDER_FEEDBACK_CRM_APPS'.
Make sure each entry is active and (preferably) has an old start-date and no end-date. But OZF has an old end-date,
thus it’s inactive. Please refer to to the scrren shot below.
How to purge:
a.) Create procedure CLEAN_QUEUE procedure in apps schema. The purpose of this utility is to change the status
from READY to PROCESSED for Consumers that are NOT being used. This will allow the database background
process to purge these rows.
sqlplus apps
@clean_aq1lck [Refer doc 181410.1]
C:\clean_aq1lck.sql
aqcoalesce.sql
c) Before executing the CLEAN_QUEUE procedure, need to make sure queues are started. Run the following sql to
check whether the queues for ASO_ORDER_FEEDBACK are started or not.
select name, queue_table, enqueue_enabled, dequeue_enabled from dba_queues where name like 'ASO_O%';
It’ll returned 4 rows. If the queues are not started then run the following to start the
ASO_ORDER_FEEDBACK_T queues
d). Remove the end_date for the cousmer OZF from lookup 'ASO_ORDER_FEEDBACK_CRM_APPS'
We have customized the purging procedure clean_queue to do the purging in batckes of 100K. Thus we need to
do the step E & F 22 times.
Defragmentation:
Move_aqt.plb
[Refer to doc 304522.1 for move_aqt.plb]
exec move_aqt.move('ASO','ASO_ORDER_FEEDBACK_T');
References:
181410.1 - Quoting/Order Capture Order Feedback Queue
3-1678838781 : Purgin of OZF customer of ASO_ORDER_FEEDBACK_T table taking a very long time
421474.1 : How do I reduce the High Watermark (HWM) of Advanced Queueing objects?
271855.1 - Procedure to manually Coalesce all the IOTs/indexes Associated with Advanced Queueing
tables to maintain Enqueue/Dequeue performance, reduce QMON CPU usage and Redo generation