Sunteți pe pagina 1din 7

Upload Log In Sign Up Browse Books ReligionFiction & LiteratureBody, Mind & SpiritScience FictionRomanceSelf-helpScienceBusinessHistoryTravel Other Content School

WorkCreative WritingResearchBrochures & CatalogsMagazines/NewspapersHow-To Guides/ManualsRecipes/MenusGovernment & PoliticsComicsPresentations

Read without ads and support Scribd by becoming a Scribd Premium Reader. See Premium Plans Language: Download Go BackAdd Note Link Embed Save of 00 Readcast Tweet

Purging of unwanted records from ASO_ORDER_FEEDBACK_T queue table


By: Rahul Gupta ecengineer84@gmail.com

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
SELECT q.consumer_name,q.msg_state, COUNT(*) FROM aso.aq$aso_order_feedback_t q GROUP BY q.consumer_name, q.msg_state order by q.consumer_name, q.msg_state
CONSUMER_NAME -----------------------------OKS OKS
OZF

MSG_STATE COUNT(*) ------------- ---------PROCESSED 72269 READY 1905


READY 2160680

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 its 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

b) Create maintenance procedure aqcoalesce in sys schema. Sqlplus /as sysdba @aqcoalesce [ Refer to doc 271855.1 for aqcolesce.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%'; Itll returned 4 rows. If the queues are not started then run the following to start the ASO_ORDER_FEEDBACK_T queues execute dbms_aqadm.start_queue('ASO.ASO_OF_Q', TRUE, TRUE); execute dbms_aqadm.start_queue('ASO.ASO_OF_Q_E', FALSE,TRUE); execute dbms_aqadm.start_queue('ASO.ASO_OF_EXCP_Q', TRUE, TRUE); execute dbms_aqadm.start_queue('ASO.ASO_OF_EXCP_Q_E', FALSE,TRUE);:

d). Remove the end_date for the cousmer OZF from lookup 'ASO_ORDER_FEEDBACK_CRM_APPS'

This can be verified from the query below :

select lookup_type, lookup_code, enabled_flag, END_DATE_ACTIVE from apps.FND_LOOKUP_VALUES where lookup_type = 'ASO_ORDER_FEEDBACK_CRM_APPS' and lookup_code='OZF' and END_DATE_ACTIVE is not null; This will return no rows. e.) Now run the purging procedure SQL> conn apps Enter password: Connected. execute clean_queue('OZF'); commit; f.) Run the maintenance procdure SQL> conn / as sysdba Connected. exec aqcoalesce;
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.

g.) Remove the customer OZF from the lookup 'ASO_ORDER_FEEDBACK_CRM_APPS'

Defragmentation:
1. Create the defragmentation procedure Sqlplus /as sysdba @move_aqt.plb

Move_aqt.plb

[Refer to doc 304522.1 for move_aqt.plb]

2. Check the size of queue table before defragmentation select sum(bytes)/1024/1024 from dba_segments where segment_name='ASO_ORDER_FEEDBACK_T'; 3. Run the defragmentation procedure. exec move_aqt.move('ASO','ASO_ORDER_FEEDBACK_T'); 4. Check the size of table after defragmentation

select sum(bytes)/1024/1024 from dba_segments where segment_name='ASO_ORDER_FEEDBACK_T'; 5. Run utrlp.sql to compile the invalids

References:

Search This Document

Search Search History: Searching... Result 00 of 00 00 results for result for p.

ASO_ORDER_FEEDBACK_T Purging
Download or Print Add To Collection 1.4K Reads 3 Readcasts 8 Embed Views

Published by Rahul Gupta Follow


Search This Document

Search TIP Press Ctrl-FF to search anywhere in the document. Read without ads and support Scribd by becoming a Scribd Premium Reader. See Premium Plans

Get Scribd Mobile


To get Scribd mobile enter your number and we'll send you a link to the Scribd app for iPhone & Android.We've sent a link to the Scribd app. If you didn't receive it, try again.
(xxx) xxx-xxxx

Text me We'll never share your phone number.

iTunes App Store | Google Play Store

Info and Rating


Category: How-To Guides/Manuals Rating: Upload Date: 09/19/2010 Copyright: Attribution Non-commercial Tags: No tags Free download as PDF File (.pdf), Text file (.txt) or read online for free. Flag for inappropriate content

Download and print this document


Read offline in your PDF viewer Edit this document in Adobe Acrobat, Notepad Keep a copy in case this version is deleted from Scribd Read and print without ads Email the file

Choose a format to download in

.PDF

.TXT Download Read without ads and support Scribd by becoming a Scribd Premium Reader. See Premium Plans

More From This User


5 p. Adding Language R12 Rahul Gupta 692 Reads 20 p. IMT Sem2 Presentation Rahul Gupta 1039 Reads 18 p. MPO Workbook Rahul Gupta 280 Reads 7 p.

Plan Stabalization Using Outline Rahul Gupta 262 Reads 5 p. How to create a host based concurrent program Rahul Gupta 1114 Reads 8 p. Transport tablespace from one database to another Rahul Gupta 3211 Reads 2 p. Ddl Trigger Rahul Gupta 320 Reads 1 p. Script Reorg Script Auto Rahul Gupta 349 Reads 2 p. Tunning Autoconfig Rahul Gupta 1645 Reads 4 p. How to Create a Physical Standby Database in ORACLE 9i Rahul Gupta 5035 Reads 4 p. Host Name changed of AP Node Rahul Gupta 1895 Reads 14 p. Export File Not Working Rahul Gupta 1946 Reads 30 p. Profile Options in 11i ( APPS ) Rahul Gupta 4147 Reads 27 p. 11i Cloning Using Rapid Clone_RAHUL Rahul Gupta 5395 Reads 11 p. Upgradation to oracle 9.2.0.7/9.2.0.8 Rahul Gupta 6859 Reads 17 p. 9i to 10g UpGradation Rahul Gupta 912 Reads Notes Load more

S-ar putea să vă placă și