Re: OCI sample

From: Alex <azp74_at_hotmail.com>
Date: 13 Jun 2002 00:49:28 -0700
Message-ID: <dca1064b.0206122349.464a0afd_at_posting.google.com>


Hi Al

Your problem is with your call to OCIServerAttach - you will need to specify the name of your server as the third parameter - for example, my call looks like

(void)OCIServerAttach(srvhp, errhp, (text*)"oracle8.alex.com", strlen("oracle8.alex.com"), 0);

Once you have put that name in it should work fine.

HTH
Alex
>
> cdemo81.c won't work returning
> Error - ORA-24327: need explicit attach before authenticating a user
>
> Error - ORA-03114: not connected to ORACLE
>
> I'll appreciate any suggestions.
> TIA
> Al
>
> Here is the file cdemo81.c
 <SNIP> Received on Thu Jun 13 2002 - 09:49:28 CEST

Original text of this message