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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
| ---------------------------------------------------
-- SYS_TIME_MODEL indenté
---------------------------------------------------
set linesize 120
set pagesize 100
col stat_name format A80
SELECT LPAD(' ', 2*level-1)||stat_name stat_name,
to_char(trunc(value/1e6,2), '999G999G990D99') seconds
FROM (
select 0 id, 9 pid, null stat_name, null value from dual union
select decode(stat_name,'DB time',10) id ,
decode(stat_name,'DB time',0) pid , stat_name, value
from v$sys_time_model
where stat_name = 'DB time' union
select decode(stat_name,'DB CPU',20) id ,
decode(stat_name,'DB CPU',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'DB CPU' union
select decode(stat_name,'connection management call elapsed time',21) id ,
decode(stat_name,'connection management call elapsed time',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'connection management call elapsed time' union
select decode(stat_name,'sequence load elapsed time',22) id ,
decode(stat_name,'sequence load elapsed time',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'sequence load elapsed time' union
select decode(stat_name,'sql execute elapsed time',23) id ,
decode(stat_name,'sql execute elapsed time',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'sql execute elapsed time' union
select decode(stat_name,'parse time elapsed',24) id ,
decode(stat_name,'parse time elapsed',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'parse time elapsed' union
select decode(stat_name,'hard parse elapsed time',30) id ,
decode(stat_name,'hard parse elapsed time',24) pid , stat_name, value
from v$sys_time_model
where stat_name = 'hard parse elapsed time' union
select decode(stat_name,'hard parse (sharing criteria) elapsed time',40) id ,
decode(stat_name,'hard parse (sharing criteria) elapsed time',30) pid , stat_name, value
from v$sys_time_model
where stat_name = 'hard parse (sharing criteria) elapsed time' union
select decode(stat_name,'hard parse (bind mismatch) elapsed time',50) id ,
decode(stat_name,'hard parse (bind mismatch) elapsed time',40) pid , stat_name, value
from v$sys_time_model
where stat_name = 'hard parse (bind mismatch) elapsed time' union
select decode(stat_name,'failed parse elapsed time',31) id ,
decode(stat_name,'failed parse elapsed time',24) pid , stat_name, value
from v$sys_time_model
where stat_name = 'failed parse elapsed time' union
select decode(stat_name,'failed parse (out of shared memory) elapsed time',41) id ,
decode(stat_name,'failed parse (out of shared memory) elapsed time',31) pid , stat_name, value
from v$sys_time_model
where stat_name = 'failed parse (out of shared memory) elapsed time' union
select decode(stat_name,'PL/SQL execution elapsed time',25) id ,
decode(stat_name,'PL/SQL execution elapsed time',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'PL/SQL execution elapsed time' union
select decode(stat_name,'inbound PL/SQL rpc elapsed time',26) id ,
decode(stat_name,'inbound PL/SQL rpc elapsed time',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'inbound PL/SQL rpc elapsed time' union
select decode(stat_name,'PL/SQL compilation elapsed time',27) id ,
decode(stat_name,'PL/SQL compilation elapsed time',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'PL/SQL compilation elapsed time' union
select decode(stat_name,'Java execution elapsed time',28) id ,
decode(stat_name,'Java execution elapsed time',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'Java execution elapsed time' union
select decode(stat_name,'repeated bind elapsed time',29) id ,
decode(stat_name,'repeated bind elapsed time',10) pid , stat_name, value
from v$sys_time_model
where stat_name = 'repeated bind elapsed time' union
select decode(stat_name,'background elapsed time',1) id ,
decode(stat_name,'background elapsed time',0) pid , stat_name, value
from v$sys_time_model
where stat_name = 'background elapsed time' union
select decode(stat_name,'background cpu time',2) id ,
decode(stat_name,'background cpu time',1) pid , stat_name, value
from v$sys_time_model
where stat_name = 'background cpu time' union
select decode(stat_name,'RMAN cpu time (backup/restore)',3) id ,
decode(stat_name,'RMAN cpu time (backup/restore)',2) pid , stat_name, value
from v$sys_time_model
where stat_name = 'RMAN cpu time (backup/restore)')
CONNECT BY PRIOR id = pid START WITH id = 0; |
Partager