I tried to find a solution, but it seems it hasn't been asked (if it has please give me an URL)
When I try to query for example
select name, value from V$PARAMETER;
I get this messy result
I tried to find a solution, but it seems it hasn't been asked (if it has please give me an URL)
When I try to query for example
select name, value from V$PARAMETER;
I get this messy result
If you are using sqlcl, you could use "set sqlformat ansiconsole", or "format aXX" eg
SQLcl: Release 4.2.0.16.153.2014 RC
SQL> set sqlformat ansiconsole
SQL> select name, value from V$PARAMETER;
NAME VALUE
lock_name_space NULL
timed_statistics TRUE
timed_os_statistics 0
resource_limit TRUE
license_max_sessions 0
license_sessions_warning 0
cpu_count 2
instance_groups NULL
event NULL
sga_max_size 838860800
use_large_pages TRUE
pre_page_sga TRUE
SQL> set sqlformat default
SQL Format Cleared
SQL> col name format a40
SQL> col value format a40
SQL> select name, value from V$PARAMETER;
NAME VALUE
---------------------------------------- ----------------------------------------
lock_name_space NULL
processes 300
sessions 472
timed_statistics TRUE
timed_os_statistics 0
resource_limit TRUE
license_max_sessions 0
license_sessions_warning 0
cpu_count 2
instance_groups NULL
event NULL
sga_max_size 838860800
...
See also: documentation (SQLplus, formatting columns), sqlcl examples here. SQL*Plus-style formatting seems to be working with sqlcl, too.