2026-03-12 20:23:15
This commit is contained in:
24
vdh/run_enqwaits.sql
Normal file
24
vdh/run_enqwaits.sql
Normal file
@@ -0,0 +1,24 @@
|
||||
/**********************************************************************
|
||||
* File: run_enqwaits.sql
|
||||
* Type: SQL*Plus script
|
||||
* Author: Tim Gorman (Evergreen Database Technologies, Inc.)
|
||||
* Date: 05Feb01
|
||||
*
|
||||
* Description:
|
||||
* Script to execute the ENQWAITS stored procedure.
|
||||
*
|
||||
* Modifications:
|
||||
* TGorman 05feb01 written
|
||||
*********************************************************************/
|
||||
set serveroutput on size 1000000 feedback off trimspool on termout off
|
||||
col instance new_value V_INSTANCE noprint
|
||||
select lower(replace(t.instance,chr(0),'')) instance
|
||||
from sys.v_$thread t,
|
||||
sys.v_$parameter p
|
||||
where p.name = 'thread'
|
||||
and t.thread# = to_number(decode(p.value,'0','1',p.value));
|
||||
spool enqwaits_&&V_INSTANCE
|
||||
execute enqwaits
|
||||
spool off
|
||||
set termout on
|
||||
ed enqwaits_&&V_INSTANCE..lst
|
||||
Reference in New Issue
Block a user