From bac790621efed20bf79dcfaa40baa8b219dc691e Mon Sep 17 00:00:00 2001 From: iroll007 Date: Mon, 14 Dec 2015 14:53:12 +0100 Subject: [PATCH] + fix UNDO In the case of a RAC, the correct undo is displayed on the node --- database/oracle/mode/tablespaceusage.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/database/oracle/mode/tablespaceusage.pm b/database/oracle/mode/tablespaceusage.pm index 98a47f5b4..e0df54b48 100644 --- a/database/oracle/mode/tablespaceusage.pm +++ b/database/oracle/mode/tablespaceusage.pm @@ -113,6 +113,9 @@ sub run { a.tablespace_name = c.tablespace_name (+) AND a.tablespace_name = b.tablespace_name AND a.tablespace_name = d.tablespace_name (+) + AND (b.contents = 'PERMANENT' + OR (b.contents <> 'PERMANENT' + AND a.tablespace_name=(select value from v$parameter where name='undo_tablespace'))) UNION ALL SELECT d.tablespace_name "Tablespace", @@ -180,6 +183,9 @@ sub run { WHERE a.tablespace_name = c.tablespace_name (+) AND a.tablespace_name = b.tablespace_name + AND (b.contents = 'PERMANENT' + OR (b.contents <> 'PERMANENT' + AND a.tablespace_name=(select value from v$parameter where name='undo_tablespace'))) UNION ALL SELECT a.tablespace_name "Tablespace",