Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: UNIX script problem with sqlplus
On Thu, 20 Aug 1998 11:13:49 +0200, Nuno Guerreiro wrote (in message <35dbe6f2.865232728_at_news.telecom.pt>):
> > On Thu, 20 Aug 1998 08:31:12 +0100, tics28@"spam-off"email.sps.mot.com (Alan > Long) wrote: >
> > The sqlplus command has support for running a SQL script on startup. Thus > you don't need to have the shell redirect input to sqlplus from a file. > Simply invoke sqlplus in the following way: > > sqlplus userid/password @temp1 > > > In case you need to pass any parameters to your SQL script, you can also put > them on the command-line, e.g.: > > sqlplus userid/password @temp1 abc
start sqlplus in silent mode (sqlplus -s)
disable feedback etc using
set feed off
set head off
set pages 0
set veri off
Now you only get the results of the query, no headers prompts etc.
Cheers
--
Ronald
![]() |
![]() |