Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

mts_dispatcher_status.sql

$
0
0
SET TERMOUT OFF;
COLUMN current_instance NEW_VALUE current_instance NOPRINT;
SELECT rpad(instance_name, 17) current_instance FROM v$instance;
SET TERMOUT ON;

PROMPT
PROMPT +------------------------------------------------------------------------+
PROMPT | Report : Multi-threaded Server: Dispatcher Status |
PROMPT | Instance : &current_instance |
PROMPT +------------------------------------------------------------------------+

SET ECHO OFF
SET FEEDBACK 6
SET HEADING ON
SET LINESIZE 180
SET PAGESIZE 50000
SET TERMOUT ON
SET TIMING OFF
SET TRIMOUT ON
SET TRIMSPOOL ON
SET VERIFY OFF

CLEAR COLUMNS
CLEAR BREAKS
CLEAR COMPUTES

COLUMN instance_name FORMAT a10 HEAD 'Instance'
COLUMN dispatcher_name FORMAT a16 HEAD 'Dispatcher Name'
COLUMN dispatcher_status FORMAT a10 HEAD 'Status'
COLUMN accept FORMAT a10 HEAD 'Accept'
COLUMN created HEAD 'Created'
COLUMN conf_indx HEAD 'Config. Index'
COLUMN network FORMAT a70 HEAD 'Network'

SELECT
i.instance_name instance_name
, d.name dispatcher_name
, d.status dispatcher_status
, d.accept accept
, d.created created
, d.conf_indx conf_indx
, d.network network
FROM
gv$instance i
, gv$dispatcher d
WHERE
i.inst_id = d.inst_id
ORDER BY
i.instance_name
, d.name;


Viewing all articles
Browse latest Browse all 1640

Trending Articles