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: OCIServerAttach

Re: OCIServerAttach

From: Markus M. Mueller <markus-m.mueller_at_ubs.com>
Date: Fri, 03 Sep 1999 09:21:25 +0200
Message-ID: <37CF76F5.BE068C77@ubs.com>


connectString[] = "myDb1";

/* when in file: $ORACLE_HOME/network/admin/tnsnames.ora

myDb1 =
  (DESCRIPTION..... */

Will Kallander wrote:
>
> Anybody know what "connectString" is supposed to be in the statement below?
>
> OCIServerAttach(srvhp, errhp, (text *) connectString, (sb4) strlen((char
> *)connectString), 0);
>
> I know I can NULL in out in order to connect locally,
> <<OCIServerAttach(srvhp, errhp, NULL, 0, 0)>>
> but I need connection remotely. I saw somewhere in the docs that it
> incorporates information from the tnsnames.ora file, but I tried that and
> it did not work. Anyone out there have any examples from which I can see
> the proper format?
>
> Thanks,
> --Will
>
> -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
> http://www.newsfeeds.com The Largest Usenet Servers in the World!
> ------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
Received on Fri Sep 03 1999 - 02:21:25 CDT

Original text of this message

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