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

Home -> Community -> Usenet -> c.d.o.misc -> Re: sqlplus & unix

Re: sqlplus & unix

From: Kevin Connors <connors_at_merck.com>
Date: Wed, 21 Jul 1999 14:38:55 -0400
Message-ID: <379613BF.6AEA240D@merck.com>


Does the UNIX variable need to be exported in order to be used in an Oracle SQL query?

I am new to UNIX and Oracle and need to modify some shell scripts that I have inherited.

Thanks in Advance!!!!

Iancrozier wrote:
>
> You can run sqlplus inside a unix shell e.g.
> #!/bin/sh
> variable=3
> export variable
> sqlplus -s username/password_at_instance << EOSQL
> select * from table
> where column = $variable
> /
> EOSQL

       The contents of this message express only the sender's opinion.
       This message does not necessarily reflect the policy or views of
       my employer, Merck & Co., Inc.  All responsibility for the statements
       made in this Usenet posting resides solely and completely with the
       sender.
Received on Wed Jul 21 1999 - 13:38:55 CDT

Original text of this message

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