Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: I can't connect remote oracle server in OCI program..
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