Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: OCIServerAttach
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
![]() |
![]() |