Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: probably simple - Pro*C, gcc, Solaris 2.8 and connect

Re: probably simple - Pro*C, gcc, Solaris 2.8 and connect

From: Frank Langelage <frank_at_lafr.de>
Date: Mon, 12 Sep 2005 07:42:20 +0200
Message-ID: <3okiptF6312jU1@individual.net>


spam.sink_at_volcanomail.com wrote:
> Hi everybody,
>
>
> In sqlplus I can do "sqlplus user_at_sid/password" but if
> I do:
>
> char *connstr = "user_at_sid/password";
> SQL EXEC
> CONNECT :connstr;
> END SQLEXEC
>
> I get the on error handler called and the error code with
> "oerr ora" map to could not resolve service name..
> I get -12154 and -3114 from the app...
>

In our application the connect is done with:

	_b_fxuserid = "user/password";
	_b_oracle_sid = "sid";
	EXEC SQL CONNECT :_b_fxuserid USING :_b_oracle_sid;
Received on Mon Sep 12 2005 - 00:42:20 CDT

Original text of this message

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