niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Tools
How to get plain output (sqlplus)
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
eban
*nix forums beginner


Joined: 26 Mar 2005
Posts: 10

PostPosted: Sat Apr 02, 2005 8:31 am    Post subject: Re: How to get plain output (sqlplus) Reply with quote

Oops. in one single column of course. Thanks, I was drifting off too much

Armin
In article <1112398124.385980@yasure>,
DA Morgan <damorgan@x.washington.edu> writes:
Quote:
SELECT coluumn_name || ',' || column_name
FROM ....
Back to top
DA Morgan
*nix forums Guru


Joined: 06 Mar 2005
Posts: 1042

PostPosted: Fri Apr 01, 2005 9:32 pm    Post subject: Re: How to get plain output (sqlplus) Reply with quote

eban wrote:
Quote:

Hi

I am trying to write my query results (sqlplus) to a file, such that records are NOT padded to a fixed length, and each row is one line in the file only.
How should I do this? if I spool, I get a report in which every record is
padded to the same column width. Also my longs (oracle Cool are wrapped, and if I increase linesize,
long, maxdata etc, i get buffer overflows.
How do I do this right ? I prefer not to use other tools than sqlplus/plsql (needs to be called from a shell script)

Thx for tips
Armin

SELECT coluumn_name || ',' || column_name
FROM ....

One solution
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Back to top
eban
*nix forums beginner


Joined: 26 Mar 2005
Posts: 10

PostPosted: Fri Apr 01, 2005 7:07 pm    Post subject: How to get plain output (sqlplus) Reply with quote

Hi

I am trying to write my query results (sqlplus) to a file, such that records are NOT padded to a fixed length, and each row is one line in the file only.
How should I do this? if I spool, I get a report in which every record is
padded to the same column width. Also my longs (oracle Cool are wrapped, and if I increase linesize,
long, maxdata etc, i get buffer overflows.
How do I do this right ? I prefer not to use other tools than sqlplus/plsql (needs to be called from a shell script)

Thx for tips
Armin
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 12:34 am | All times are GMT
navigation Forum index » Databases » Oracle » Tools
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts mailq output format bacilko1 Postfix 0 Tue Oct 03, 2006 12:34 pm
No new posts syslog Output Change Maja AIX 0 Thu Jul 20, 2006 8:41 pm
No new posts output number mm.omid@gmail.com C++ 1 Thu Jul 20, 2006 5:09 pm
No new posts SQLPLUS Oracle 8i query vernalGreens@gmail.com Tools 4 Thu Jul 20, 2006 7:00 am
No new posts capture the output ciccio@unical.it python 2 Wed Jul 19, 2006 3:48 pm

Bankruptcy | Credit Counseling | Problem Mortgage | Bankruptcy | Babb Fest
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1775s ][ Queries: 20 (0.0850s) ][ GZIP on - Debug on ]