Quantcast
Channel: Question and Answer » oracle
Viewing all articles
Browse latest Browse all 717

How to make sqlplus output appear in one line when running using shell script?

$
0
0

For example i have an output as below :

exec dbms_stats.gather_table_stats(ownname =>’ABC’,tabname=>’XYZ’, no_invalidate=> FALSE, estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=> ‘FOR ALL COLUMNS SIZE 1′, cascade=>
TRUE, degree=>4);

exec dbms_stats.gather_table_stats(ownname =>’ABC’,tabname=>’XYZ1′, no_invalidate=> FALSE, estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=> ‘FOR ALL COLUMNS SIZE 1′, cascade=

TRUE, degree=>4);

Need to get the above in two consequtive lines like below :

exec dbms_stats.gather_table_stats(ownname =>’ABC’,tabname=>’XYZ’, no_invalidate=> FALSE, estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=> ‘FOR ALL COLUMNS SIZE 1′, cascade=> TRUE, degree=>4);
exec dbms_stats.gather_table_stats(ownname =>’ABC’,tabname=>’XYZ1′, no_invalidate=> FALSE, estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=> ‘FOR ALL COLUMNS SIZE 1′, cascade=> TRUE, degree=>4);

Any advice ? Thanks


Viewing all articles
Browse latest Browse all 717

Trending Articles