Donate Share

OCILIB - C Driver for Oracle

Code

Programming Languages: C

License: GNU Library or Lesser General Public License (LGPL)

Repositories

browse code, statistics, last commit on 2009-08-21 svn co https://orclib.svn.sourceforge.net/svnroot/orclib orclib

Show:

What's happening?

  • how to build ocilib in vs2008?

    I open "ocilib_dll_vs2008.vcproj" with vs2008, but can't build.

    2009-11-10 07:18:40 UTC by nobody

  • how to build ocilib in vc2008

    I open "ocilib_dll_vs2008.vcproj", but can't build.

    2009-11-10 07:06:19 UTC by nobody

  • Followup: RE: Recovering from a bad statement

    Hi Vince, It seems that the problem was with this Call: OCI_ConnectionFree(conn_) Now I'm using: OCI_Cleanup() So I'm not obtaining core dumps anymore. Thanks again.

    2009-11-06 11:20:55 UTC by jlmarina

  • Followup: RE: Recovering from a bad statement

    it seems the problem is with this call: OCI_StatementFree (stmt_); I'll change somethings in the code and come back here the results. Thank you very much!!

    2009-11-05 11:07:22 UTC by nobody

  • Followup: RE: Recovering from a bad statement

    Hi, Of course... Here is a test case : #include "ocilib.h" int main(void) { OCI_Connection *cn; OCI_Statement *st; OCI_Initialize(NULL, NULL, OCI_ENV_CONTEXT); cn = OCI_ConnectionCreate("db", "usr", "pwd", OCI_SESSION_DEFAULT); st = OCI_StatementCreate(cn); if (!OCI_ExecuteStmt(st...

    2009-11-05 09:56:49 UTC by vince_del_paris

  • Followup: RE: Recovering from a bad statement

    Hi there, I still have the problem, even if I change the calls to error managing. Have you tried to execute a bad SELECT statement and see if you can go on with a second one? Thanks in advance.

    2009-11-05 09:22:31 UTC by nobody

  • Followup: RE: Recovering from a bad statement

    Yes. I'm doing that in Initialization: ... if (!OCI_Initialize(NULL, NULL, OCI_ENV_DEFAULT | OCI_ENV_CONTEXT)) ... {.

    2009-11-04 16:07:36 UTC by nobody

  • Followup: RE: Recovering from a bad statement

    in order to use OCI_GetLastError(), you need to pass the flag OCI_ENV_CONTEXT to OCI_Initialize()....

    2009-11-04 14:27:34 UTC by vince_del_paris

  • Recovering from a bad statement

    Hi there, The program I am developing can execute customized queries so the user can enter bad table names for example. So I must recover from the error and go on with the next query (if any). The problem is I get memory errors when doing this. Platform: Linux 2.6.17 Oracle Client 11.1 gcc 4.3.2 This part of the code called with every statement. // connect to Oracle OK.

    2009-11-04 14:15:17 UTC by nobody

  • Comment: OCI_BindUnsignedBigInt overflow on value greater than 32bit

    here all test i have made /****************************************************************** arch Linux L2 2.6.31.pfring #1 SMP Wed Sep 16 09:52:13 CEST 2009 x86_64 GNU/Linux root@L2://opt/oracle/product/10.2.0/dbclient/lib# gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1'...

    2009-11-02 19:59:22 UTC by https://www.google.com/accounts

Our Numbers