Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: how do run sql from the command line with embedded sql

Re: how do run sql from the command line with embedded sql

From: John Higgins <JH33378_at_deere.com>
Date: Fri, 09 Apr 1999 23:29:10 -0500
Message-ID: <370ED396.F960CB3@deere.com>


Even better:

sqlplus <<!
scott/tiger_at_service
select * from emp;
exit
!

This took the scott/tiger user/password off the command line where it may be visible to other users via the ps command.

Denis Scholler wrote:

> RABK wrote:
>
> > how do i run embedded sql from a unix shell
> >
> > kindah as such
> >
> > sqlplus SYS/MANAGER_at_service @<<!
> >
> > select * from DUAL;
> >
> > !
>
> It is as simple as :
>
> sqlplus scott/tiger_at_service <<!
> select * from emp;
> exit
> !
Received on Fri Apr 09 1999 - 23:29:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US