Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sqlplus output without line wrapping 1

Status
Not open for further replies.

sapatos

Programmer
Joined
Jan 20, 2006
Messages
57
Location
AU
Probably an easy one, but I've not managed to find out how to do this.

sqlplus user/pw@db<<SCRIPT

select * from v$parameter;
SCRIPT

for example. outputs horribly due to screen wrapping. Is there any way I can pipe this to a file and open in an editor that allows me to display off the screen.
 
Sapatos,

Prior to your SQL SELECT statement in the script, place these two SQL*Plus commands:
Code:
set linesize 500
set trimspool on
Voilà...no more wrapping...and no superfluous right padding.


Let us know how it works for you.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via www.dasages.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top