blob: 720445ca54b8794d1ab6f387b9d11c686d5e8ef8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff -u -r nagios-plugins-1.4.11\plugins-scripts\check_oracle.sh nagios-plugins-1.4.11-patch\plugins-scripts\check_oracle.sh
--- nagios-plugins-1.4.11\plugins-scripts\check_oracle.sh Sat Jul 07 13:40:30 2007
+++ nagios-plugins-1.4.11-patch\plugins-scripts\check_oracle.sh Thu Jan 17 13:47:50 2008
@@ -247,13 +247,10 @@
set pagesize 0
set numf '9999999.99'
select NVL(b.free,0.0),a.total,100 - trunc(NVL(b.free,0.0)/a.total * 1000) / 10 prc
-from (
-select tablespace_name,sum(bytes)/1024/1024 total
-from dba_data_files group by tablespace_name) A
-LEFT OUTER JOIN
-( select tablespace_name,sum(bytes)/1024/1024 free
-from dba_free_space group by tablespace_name) B
-ON a.tablespace_name=b.tablespace_name WHERE a.tablespace_name='${5}';
+from
+ ( select tablespace_name,sum(bytes)/1024/1024 total from dba_data_files group by tablespace_name) A
+, ( select tablespace_name,sum(bytes)/1024/1024 free from dba_free_space group by tablespace_name) B
+WHERE a.tablespace_name(+)=b.tablespace_name AND a.tablespace_name='${5}';
EOF`
if [ -n "`echo $result | grep ORA-`" ] ; then
|