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: I can't connect remote oracle server in OCI program..

Re: I can't connect remote oracle server in OCI program..

From: John K. Hinsdale <hin_at_alma.com>
Date: Tue, 31 Jul 2007 10:14:53 -0700
Message-ID: <1185902093.405838.292270@x40g2000prg.googlegroups.com>


On Jul 30, 8:05 am, <kamis..._at_yahoo.com> wrote:
> I programed with OCI base C Language.
>
> OCIServerAttach( srvhp,errhp,(OraText *) "192.10.10.1:1521:ora9i",
> (sb4) strlen((char *)cstring), OCI_DEFAULT))
>
> But, I can't connect oracle server.
>
> Is it correct?
>
> How can I connect remote oracle server with OCI ?

kamistro,

Unless you are doing something very fancy (other than a simple client to do select, update, etc.,) consider using OCILogon() instead of OCIServerAttach() it is easier.

See:

http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96584/oci02bas.htm#423550

Or if you must use OCIServerAttach(), post the error message, return value, or whatever behavior you are getting other than what you want.

Good luck,
JH Received on Tue Jul 31 2007 - 12:14:53 CDT

Original text of this message

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