From 95fc6af8a32140d810365e324703a2a5ea9bf41f Mon Sep 17 00:00:00 2001 From: qgarnier Date: Thu, 22 Jul 2021 10:05:09 +0200 Subject: [PATCH] fix(oracle): tablespace-usage mode - carriage return error with sqlplus (#2980) --- database/oracle/mode/tablespaceusage.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/database/oracle/mode/tablespaceusage.pm b/database/oracle/mode/tablespaceusage.pm index 430c8aa3c..fd9aadf8d 100644 --- a/database/oracle/mode/tablespaceusage.pm +++ b/database/oracle/mode/tablespaceusage.pm @@ -334,8 +334,7 @@ sub manage_selection { FROM DBA_TABLESPACE_USAGE_METRICS tum INNER JOIN - dba_tablespaces t on tum.tablespace_name=t.tablespace_name - %s + dba_tablespaces t on tum.tablespace_name=t.tablespace_name %s }, defined($self->{option_results}->{notemp}) ? "WHERE (t.contents != 'TEMPORARY' AND t.contents != 'UNDO')" : @@ -436,8 +435,7 @@ sub manage_selection { a.tablespace_name = c.tablespace_name (+) AND a.tablespace_name = b.tablespace_name AND a.tablespace_name = d.tablespace_name (+) - %s - %s + %s %s }, defined($self->{option_results}->{notemp}) ? $tbs_sql_undo_empty : $tbs_sql_undo, defined($self->{option_results}->{notemp}) ? "AND (b.contents != 'TEMPORARY' AND b.contents != 'UNDO')" : '',