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: strange ora-12545 when connecting with pro*c program

Re: strange ora-12545 when connecting with pro*c program

From: Johny <pj_pl_at_yahoo.com>
Date: Tue, 03 Sep 2002 11:49:49 GMT
Message-ID: <3d74a09c.22222734@news.tpi.pl>

Ups, it's all right now - I made wrong CONNECT:

instead of :
EXEC SQL CONNECT :oracle_connect_str; /*usrename/pwd_at_tns_db*/

one should use:
exec sql declare connect_db database;
EXEC SQL CONNECT :oracleid IDENTIFIED BY :oraclepwd USING :connect_db;

The first option works, when compiled on Windows version, but ommits tns_db when run on Unix and takes the default database there.

Regards
Johny Received on Tue Sep 03 2002 - 06:49:49 CDT

Original text of this message

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