From 3e4a48abb853642a07f5c91710974d0dff85d9e7 Mon Sep 17 00:00:00 2001 From: "K.Cima" Date: Mon, 28 Nov 2016 23:51:59 +0900 Subject: [PATCH] Fix to remove useless SQL --- plugins/oracle/oracle_sysstat_ | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/plugins/oracle/oracle_sysstat_ b/plugins/oracle/oracle_sysstat_ index 4cbace67..e72872f2 100755 --- a/plugins/oracle/oracle_sysstat_ +++ b/plugins/oracle/oracle_sysstat_ @@ -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 }