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: ora-12545

Re: ora-12545

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Mon, 11 Aug 2003 20:03:26 GMT
Message-ID: <MPG.19a1966bbb3f679d989837@news.la.sbcglobal.net>


Hi Haoyu Zhou, thanks for writing this:
> I tried to run "sqlplus user/passwd" from a solaris box with oracle client
> installed w/o any luck. The error code is ora-12545. However, I was able
> to connect to the database use "sqlplus user/passwd_at_SID". But ORACLE_SID
> was set correctly in the .profile.
>
> I checked tnsnames.ora, which has such an entry:
> MYSID=(Description=
> (Address=(protocol=tcp)(host=numeric IP)(port=1521))
> (connect_data=(sid=mysid)
> )
>

You might want to look into the TWO_TASK environment variable. Using your sample tnsnames.ora, you can do the following (assuming ksh):

export TWO_TASK=MYSID
sqlplus user/passwd

That should be equivalent to:

sqlplus user/passwd_at_mysid

-- 
[:%s/Karsten Farrell/Oracle DBA/g]
Received on Mon Aug 11 2003 - 15:03:26 CDT

Original text of this message

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