Re: Connecting to Oracle using sqlplus, bypass tnsnames.ora question

From: David Ballester <ballester.david_at_gmail.com>
Date: Tue, 21 Oct 2008 16:40:53 +0200
Message-ID: <6a29f8b0810210740p4fef04dnd451fbcb3cd9f5ed@mail.gmail.com>


2008/10/21 Lyndon Tiu <ltiu_at_alumni.sfu.ca>

> Hi guys,
>
> Thanks for all the tips.
>
> I got this to work on Windows DOS:
>
> sqlplus user/pass@
> (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx.xxx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MyOraDB)))
>
> But, I could not get it to work on Linux Shell. I am getting shell errors.
>
> "bash: syntax error near unexpected token `('"
>
> Any ideas?
>
> --
>

I did no tested it but may be

sqlplus user/pass@
"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx.xxx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MyOraDB)))"

may work

avoid white spaces, too

D

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Oct 21 2008 - 09:40:53 CDT

Original text of this message