Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: AQ query from dequeuw procedure not using index -URGENT

RE: AQ query from dequeuw procedure not using index -URGENT

From: John Kanagaraj <john.kanagaraj_at_hds.com>
Date: Mon, 09 Dec 2002 11:49:04 -0800
Message-ID: <F001.005157C6.20021209114904@fatcity.com>


Shaleen,  

Have you considered using Outlines?
John Kanagaraj
Oracle Applications DBA
DBSoft Inc
(W): 408-970-7002

So WHO is the Reason for the Season?! Write me for details!

-----Original Message-----
Sent: Monday, December 09, 2002 10:04 AM To: Multiple recipients of list ORACLE-L

All,  

We are using a third party application (Retek Warehouse management) which uses AQ as communication mechanism between processes. The problem we are facing is that the AQ query behind Dequeue is doing a full tablescan on queue table which is causing about 5Billion logical reads/day and is bringing the DB to its knees.  

Following is the query which I gleaned from tracing the process  

select /*+ FIRST_ROWS */ qt.rowid, qt.msgid, qt.corrid, qt.priority,

qt.delay, qt.expiration, qt.retry_count, qt.exception_qschema,
qt.exception_queue, qt.chain_no, qt.local_order_no, qt.enq_time,
qt.time_manager_info, qt.state, qt.enq_tid, qt.step_no from
PAR3214.GENERICTCP qt where q_name = :1 and state = :2 order by q_name, state, enq_time, step_no, chain_no, local_order_no for update skip locked  

The procedure call is following
DBMS_AQ.DEQUEUE( 'par3214.' || qname, queueopts, msgprops, msg_obj, msgid );  

Since this is an internal query, I can not change the HINT ( Itested that removing the hint drops logical reads from 2400 to 3).  

Any ideas?  

Thanks
Shaleen  

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: John Kanagaraj
  INET: john.kanagaraj_at_hds.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Mon Dec 09 2002 - 13:49:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US