SELECTs of Columns in SQL*Plus Displayed too Wide for database 9.2
Last updated on OCTOBER 28, 2016
Applies to:SQL*Plus - Version: 9.2 to 220.127.116.11
This problem can occur on any platform.
Exported from the 18.104.22.168 (WE8ISO8859P1) database, and imported that into a new 22.214.171.124 (UTF8) database.
Now when you select columns like tablespace_name (or from dba_rollback_segs, etc) in SqlPlus, the returned column value stretches across the 80 columns of screen (instead of just occupying the 30 characters it did under 126.96.36.199).
A desc of dba_tablespaces shows that the column length is set to 30 only:
TABLESPACE_NAME NOT NULL VARCHAR2(30)
Changing pagesize and linesize didn't help.
Explicitly setting the column format to A30 worked, but this should not be required since the column width is actually 30 only.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms