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: connect using host:port:sid

Re: connect using host:port:sid

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Tue, 26 Nov 2002 21:46:09 +0000
Message-ID: <3DE3EBA1.992@yahoo.com>


Sunil wrote:
>
> This Works :-
> 1>sqlplus /nolog
> 2>conn
> scott/tiger@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=inponi)(Port=1521))(CO
> NNECT_DATA=(SID=iasdb))) @script_name.sql parameter1 parameter2
> 3>
>
> This Does not Work :-
> 1>sqlplus
> scott/tiger@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=inponi)(Port=1521))(CO
> NNECT_DATA=(SID=iasdb))) @script_name.sql parameter1 parameter2
> 2>
>
> Is there any way I can connect to sqlplus and pass parameters to a
> script without using /nolog first, If I only have the host, port and sid
> information and not the tnsnames entry.
>
> Thanks,
> Sunil.

How about

(ksh)
print "
conn ...
@blah.sql" | sqlplus /nolog

that way - no one will see your password on the process listing...

hth
connor

-- 
==============================
Connor McDonald

http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue..."
Received on Tue Nov 26 2002 - 15:46:09 CST

Original text of this message

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