sqlplus suppress header

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
altruist
Participant
Posts: 73
Joined: Thu May 11, 2006 6:50 am

sqlplus suppress header

Post by altruist »

Hi Everyone,

I am trying to call sqlplus from a script and executing query.

I want sqlplus to return only the data and no headers (column names) footers (number of rows returned). How can I suppress these?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

-craig

"You can never have too many knives" -- Logan Nine Fingers
altruist
Participant
Posts: 73
Joined: Thu May 11, 2006 6:50 am

Post by altruist »

cool, thanks, my googling technique wasn't proper :D
altruist
Participant
Posts: 73
Joined: Thu May 11, 2006 6:50 am

Post by altruist »

sorry didn't mention it properly..... i wanted to see whether we could do with the command options...

tried to google on it, but not able to find.

Just curious, because the command options doesn't even have a way to set delimiter.

Am i searching it wrong ? or is it that we need to start sqlplus and ONLY THEN we could set these defaults?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The latter. These 'SET' commands need to either be in the sql you are executing or something standard you execute in your sqlplus interface before you execute the sql. You can also investigate the use of "login.sql" or "glogin.sql" files, they are like "rc" files for sqlplus.

ps. Found a nice FAQ here, copy and paste as the splat goofs up the linkage:

http://www.orafaq.com/wiki/SQL*Plus_FAQ
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

For those for whom it is unclear, "splat" means asterisk. The verb "goofs up" in this context means "prevents proper display of".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply