Skip to Main Content
Oracle Distributed Systems
book

Oracle Distributed Systems

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

busydisp.sql

---------------------------------------------------------------------------
-- Filename:    busydisp.sql
-- Purpose:     Provides stats indicating whether the dispatcher processes
--              are overly taxed.
-- Author:      Chas. Dye (cdye@excitecorp.com)
-- Date:        6-Aug-1998
--------------------------------------------------------------------------- 
column network  heading "Protocol"                              format a40
column rate     heading "Total Busy Rate|>50%=>Add Dispatchers" format 99.99

SELECT  network,
        100*(sum(busy)/(sum(busy)+sum(idle))) rate
FROM    v$dispatcher
GROUP BY network
/
column protocol heading "Protocol"                              format a40
column Wait     heading "Average Wait|(hundredths of seconds)"  format a30

SELECT  network Protocol,
        decode( sum(totalq), 0, 'No Responses',
        to_char(sum(wait)/sum(totalq), 'FM9999.90')) Wait
FROM    v$queue q, v$dispatcher d
WHERE   q.type = 'DISPATCHER'
AND     q.paddr = d.paddr
GROUP BY network
/
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

Oracle Internals

Oracle Internals

Donald K. Burleson
Expert Oracle RAC 12c

Expert Oracle RAC 12c

Syed Jaffar Hussain, Tariq Farooq, Riyaj Shamsudeen, Kai Yu
Expert Oracle Exadata, Second Edition

Expert Oracle Exadata, Second Edition

Martin Bach, Karl Arao, Andy Colvin, Frits Hoogland, Randy Johnson, Kerry Osborne, Tanel Poder

Publisher Resources

ISBN: 1565924320Supplemental ContentCatalog PageErrata