Skip to Content
Oracle Distributed Systems
book

Oracle Distributed Systems

by Charles Dye
April 1999
Intermediate to advanced
552 pages
15h 39m
English
O'Reilly Media, Inc.
Content preview from Oracle Distributed Systems

busyq.sql

---------------------------------------------------------------------------
-- Filename:    busyq.sql
-- Purpose:     Provides stats indicating whether a given queue is overly 
--              taxed in a Multi-Threaded Server environment.
--              If the COMMON queue is overly taxed, consider adding more
--              servers.
-- Author:      Chas. Dye (cdye@excitecorp.com)
-- Date:        6-Aug-1998
---------------------------------------------------------------------------
column type     heading "Queue|Type"                format a10
column circuit  heading "Name"                      format a8
column queued   heading "Items|Queued"              format 999,999
column wait     heading "Total|Time|Waited"         format 999,999,999
column totalq   heading "Total|Items|Processed"     format 999,999,999,999
column avgwait  heading "Average|Wait"              format 9,999.90

set head off 
set feedback off 

SELECT  sysdate 
FROM    dual 
/ 
set head on 
set feedback on 

SELECT  paddr,
        type,
        queued,
        wait,
        totalq,
        decode(totalq, 0, 0, wait)/decode(totalq, 0, 1, totalq) avgwait
FROM    v$queue
/
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expert Oracle Exadata, Second Edition

Expert Oracle Exadata, Second Edition

Martin Bach, Karl Arao, Andy Colvin, Frits Hoogland, Randy Johnson, Kerry Osborne, Tanel Poder
Expert Oracle RAC 12c

Expert Oracle RAC 12c

Syed Jaffar Hussain, Tariq Farooq, Riyaj Shamsudeen, Kai Yu

Publisher Resources

ISBN: 1565924320Supplemental ContentCatalog PageErrata