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

From: Jared Still <jkstill_at_gmail.com>
Date: Tue, 28 Oct 2008 09:37:32 -0700
Message-ID: <bf46380810280937i383b1134x4563c5882e0d04ff@mail.gmail.com>


On Tue, Oct 28, 2008 at 8:27 AM, Lyndon Tiu <ltiu_at_alumni.sfu.ca> wrote:

>
> Why does this not work:
>
> exp user/pass@
> "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=1521))(CONNECT_DATA=(SID=MYORA)))"
>
> Error:
>
> LRM-00116: syntax error at 'ADDRESS' following '('
>
>
> Any tips and suggestions greatly appreciated.
>
>

Typically with exp, '(' ,')' and '=' must be escaped.

This worked for me on 10.2.0.3:

exp scott/tiger@
"\(DESCRIPTION\=\(ADDRESS_LIST\=\(ADDRESS\=\(PROTOCOL\=IPC\)\(KEY\=dv99\)\)\)\(CONNECT_DATA\=\(SID\=dv99\)\(SERVICE_NAME\=dv99\)\)\)"

Jared

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Oct 28 2008 - 11:37:32 CDT

Original text of this message