-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo_enum_io.sql
46 lines (36 loc) · 1.08 KB
/
demo_enum_io.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
-- demo_enum_io.sql: show the activity of the enum-queries...
-- helper file...
set echo off
column sql_id format A15
column exec format 999
column cpu_mcrsec format 99,999,999
column ela_mcrsec format 99,999,999
column buff_gets format 99,999
column physrds format 99,999
column sql_text format A60 trunc
column enum_name format A15
column loblength format 99,999,999
set linesize 130
set pagesize 100
set autotrace off
set echo on
-- show cpu and buffer gets..
select s.sql_id
, s.executions exec
, s.cpu_time cpu_mcrsec
, s.elapsed_time ela_mcrsec
, s.buffer_gets buff_gets
, s.physical_read_requests physrds
, s.sql_text
--, s.*
from v$sql s
where ( sql_text like '%color_enum%'
or sql_text like '%roman_enum%'
or sql_text like '%data_enum%'
or sql_text like '%data_2lov%'
or sql_text like '%into tcol%'
or sql_text like '%into trom%'
or sql_text like '%from tcol%'
or sql_text like '%from trom%' )
and sql_text not like '%sql_text%'
order by s.sql_text ;