2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Fix to remove useless SQL

This commit is contained in:
K.Cima 2016-11-28 23:51:59 +09:00
parent 7c08e6c469
commit 3e4a48abb8

View File

@ -691,8 +691,6 @@ FROM
wait_class
FROM
v\$event_name
WHERE
wait_class NOT IN ( 'Other', 'Idle' )
GROUP BY
wait_class
) en
@ -701,22 +699,7 @@ ON
en.wait_class = se.wait_class AND
se.username is not null
GROUP BY
en.wait_class
;
SELECT
'Other.value ' || count(wait_class)
FROM
v\$session
WHERE
wait_class = 'Other' AND username is not null
;
SELECT
'Idle.value ' || count(wait_class)
FROM
v\$session
WHERE
wait_class = 'Idle' AND username is not null
;
en.wait_class;
EOF
}
@ -751,7 +734,7 @@ FROM
FROM
v\$event_name
WHERE
wait_class NOT IN ( 'Other', 'Idle' )
wait_class NOT IN ( 'Idle' )
GROUP BY
wait_class
) en
@ -759,15 +742,7 @@ FROM
ON
en.wait_class = se.wait_class
GROUP BY
en.wait_class
;
SELECT
'Other.value ' || NVL( SUM(time_waited_micro), 0 )
FROM
v\$system_event
WHERE
wait_class = 'Other'
;
en.wait_class;
EOF
}