+ fix UNDO

In the case of a RAC, the correct undo is displayed on the node
This commit is contained in:
iroll007 2015-12-14 14:53:12 +01:00
parent 7c109b7f9c
commit bac790621e
1 changed files with 6 additions and 0 deletions

View File

@ -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",