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: get parameter from unix shell pgm

Re: get parameter from unix shell pgm

From: David Jordan <david.t.jordan_at_dallastx.ncr.com>
Date: 1997/11/05
Message-ID: <01bcea0f$5f067900$4e335299@txdalljordad.DallasTX.NCR.com>#1/1

In its easiest form, try this:

$ yourshell.sh user1 pword1 host.sid

In your shell, refer to the parameters as $1 $2 and $3:

sqlplus $1/$2@$3

or you can save the arguments in variables like

wuser=$1
wpass=$2
whost=$3

and then accordingly:

sqlplus $wuser/$wpass@$whost

Hope this helps!

GRPronet <grpronet_at_aol.com> wrote in article <19971103042100.XAA13639_at_ladder02.news.aol.com>...
> i need to read in parameters coming in from a unix shell pgm.
> (username,password,host string) into sqlplus. how do i do it?
> gil.
>
  Received on Wed Nov 05 1997 - 00:00:00 CST

Original text of this message

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