2026-03-12 20:23:15
This commit is contained in:
21
tpt/statn.sql
Normal file
21
tpt/statn.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
|
||||
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
|
||||
|
||||
select
|
||||
n.statistic# stat#,
|
||||
trim(to_char(s.statistic#, 'XXXX')) hex#,
|
||||
n.statistic# * 8 offset,
|
||||
n.name,
|
||||
s.value
|
||||
from v$mystat s, v$statname n
|
||||
where s.statistic#=n.statistic#
|
||||
and (
|
||||
lower(n.name) like lower('%&1%')
|
||||
or lower(to_char(s.statistic#)) like lower('&1')
|
||||
or lower(trim(to_char(s.statistic#, 'XXXX'))) like lower('&1')
|
||||
or to_char(n.statistic# * 8) like '%&1%'
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user