OCCI environment (in)compatibility

I have compiled a sample OCCI program in the following environment: However, program crashes (no exceptions caught).
Oracle Database: 10.2.3.0
Visual Studio 2005 (VC8): when I use the DLL in vc71 folder it works fine however application crashes (though works occasionally with no explainationa).
Visual Studio 2005 (VC8): when I use the DLL in vc8 folder that I downloaded from OCCI oracle website I get runtime error saying MSVCR80.DLL was NOT found.
Is there any environmental incompatibility issue going on here, since I'm cionfused from the OCCI Oracle 10g documentation says it's compatible with VC7.0 and VC7.1
However, OCCI download website has DLL compatible with VC8 version for Oracle 10.2.3.0, and patch 10, 13.
Does anyone know any concrete resolution/faced similar issues in the past? Thanks in advance.
Kind Regards,
Harshal

I updated the libocci.so file to use the version that oracle provides that is compiled against GCC 3.4.3 and the Environment::SHARED mode now seems to be using shared memory as I would expect. I don't know if it was just the libocci.so library or if it was something else, but it now is using shared memory. Now, i have a problem with what appears to be mutexing. I set it up to have more child processes then connections available in the StatelessConnectionPool and compile and run. Things seem to go well until I start trying to actually execute a query on the connection. Then I get random hangs and these two errors:
ORA-01013: user requested cancel of current operation
and
ORA-03106: fatal two-task communication protocol error
Is there something else I'm missing about using OCCI in the Environment::SHARED mode?
Any help is appreciated.

Similar Messages

  • Link Error Linux AS3: undefined reference to `oracle::occi::Environment

    I got this error when i try to run sample database access using OCCI libraries.
    test.cpp:21: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
    Following link contains same problem but there is no answer.
    #include <iostream>
    #include <occi.h>
    using oracle::occi::Connection;
    using oracle::occi::Environment;
    using oracle::occi::Statement;
    using oracle::occi::ResultSet;
    using namespace std;
    int main() {
    Environment *environment;
    Connection *con;
    Statement* stmt;
    ResultSet* res;
    try {
    //std::cout << "dasfasfafa";
    environment = Environment::createEnvironment(oracle::occi::Environment::DEFAULT);
    con = environment->createConnection("aaa", "aaa", "Caaa");
    stmt = con->createStatement("select * from emp");
    res = stmt->executeQuery();
    while (res->next())
    std::cout << res->getInt(1) << " " << res->getString(2) << std::endl;
    stmt->closeResultSet(res);
    con->terminateStatement(stmt);
    environment->terminateConnection(con);
    } catch (oracle::occi::SQLException &e) {
    std::cout << e.what();
    return 0;
    }

    The demos have this:
    #include <iostream>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    ...

  • Exceptions in oracle::occi::Environment's class terminate methods

    Could terminateEnvironment or terminateConnection oracle::occi::Environment's throw an Exception?
    I want to call this methods from a destructor and I must to know it (the doc say nothing)
    Thanks in advance!
    Best regards

    Hi,
    No, I just installed the application on one machine, so i can't reproduce it on another machine.What is the OS?
    Can you please explain what you mean by:
    see if the solution in (Note: 1076817.1 - Cannot Launch FDHM IN DBI, It Shows Blank Screen) helps.This is a My Oracle Support document -- https://support.oracle.com
    Thanks,
    Hussein

  • Occi::environment createConnection throws exception

    Hi there,
    I tried connecting to my Oracle 11g database in debug mode but was unsuccessful. I am developing an ActiveX plugin using Visual Studio 2008. I downloaded OCCI 11.1.0.6.0 and instant client 11.2.0.1.0, extracted the the lib and dll files to my project directory, included the header files as part of my project include directory. Release mode works fine but it's debug that I am having issues with. When I link against oraocci11d.lib in debug mode, it gives me the error "error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry." So then I linked against oraocci11.lib and was able to build successfully. However, I get the following error:
    try
              env = Environment::createEnvironment(Environment::DEFAULT);
              conn = env->createConnection("SYSTEM", "pwd", "remoteserver:1521/TEST"); //fails here
    env->terminateConnection(conn);
              Environment::terminateEnvironment(env);
    catch (SQLException& e)
              std::cout<<e.what();
    First-chance exception at 0x7c812afb in iexplore.exe: Microsoft C++ exception: oracle::occi::SQLException at memory location 0x0013a748..
    First-chance exception at 0x7c812afb in iexplore.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    I see that others are having slightly different issues with Debug mode but I did not see a resolution for any of them. Any help would be much appreciated!
    Edited by: user13168246 on Jun 25, 2010 4:08 PM

    Make sure you include th directory that contains all the necessary header files in your project. It should be in your installed oracle directory (eg. d:\app\oracle\product\11.2.0\dbhome_1\OCI\include) so point to that in Project Properties->C/C++->General->Additional Include Directories. Then link it to oraocci11d.lib under Project Properties->Linker->Input->Additional Dependencies. Also include the following DLLs oraociei11.dll, oraocci11d.dll, oraocci11.dll, orannzsbb11.dll in your debug and release directories.

  • How to pass array of Object in A Procedure using OCCI.......

    I m also trying for How to pass Object to a procedureb using OCCI...
    Steps....
    1. I created A type.....
    2. Then I created a VARRAY using that Type.
    3.After that I have written An Procedure with object as a parameter..
    now using OCCI how do u bind the parameter with this . plz note that using OTT
    i have already created the class representation of above object type i.e class
    four Files Created 1> demo.h 2>registermapping.h
    3> demo.cpp 2>registermapping.cpp
    After I want to Pass the Values in A Vector...
    vctor<full_name *> vect;
    stmt=con->createStatement("BEGIN Add_Object(:1); END;");
    full_name *name1 = new full_name; //Giving the Error here Given below....
    name1->
    name1->
    Through name1 Which Function I will call in which I will Pass a String....
    like
    name1->readSQL("Sanjay"); Or I have to add a function......
    vect.push_back(name1);
    setVector(stmt,1,vect,"FULL_NAME");
    error C2259: 'FullName' : cannot instantiate abstract class
    can u plz suggest me Why this Error is Giving......?
    How to pass the data?
    setFirst_name() and setLast_name() this two function I will add in Demo.cpp which one created automativcally by Using OTT command.....or other way plz tell me Boss ....
    Can u lz Suggest me ASAP....

    hi Nishant ,
    What u have done Now I mm trying ....
    can u Plz Suggest me......
    How to pass and Array of Object in Procedure using OCCI... Doing....
    90% finished Two Error's Are Coming...
    1> If I create the Class then Data Not Inserting table......
    2> If I will create the Class through OTT command.......
    then U can't Instantiate Object It is DIsplying ,this is Abstract Class(PObject)...
    Beco'z the below Method is Not adding Automatically by OTT command which is Pure Virtual Function.....
    But I added this Function Still SAme Error Giving..
    getSQLTypeName(oracle::occi::Environment env, void *schName,
    unsigned int &schNameLen, void **typeName,
         unsigned int &typeNameLen) const
    Plz Suggest me....
    regard's
    sanjay

  • Compiling occi with Mingwstudio on Linux - Problem

    Hello,
    I downloaded the oracle-instantclient-devel-10.2.0.1-1.i386.rpm and the oracle-instantclient-basic-10.2.0.1-1.i386.rpm, converted everything with alien to *.deb-Files and installed it on my debian-machine. Now I hoped to get a test programm compiled - but I don't have success. Code goes like that:
    #include "oracle/occi.h"
    using namespace oracle::occi;
    Environment *env;
    Connection *conn;
    Statement *stmt;
    void Mainform::OnButton1 (wxCommandEvent& event)
         env = Environment::createEnvironment (Environment::DEFAULT);
    Environment::terminateEnvironment (env);
    Everything will compile, when I put the /usr/include/oracle/10.2.0.1/client-Path as an additional include directory under Project Settings. But the linker hangs - it hangs because I have got no idea, what the settings are for the Linker libraries and the additional library path. Error message is llike this:
    Linking...
    /dateien/projects/oracletest/Release/mainform.o(.text+0x6ee): In function `Mainform::OnButton1(wxCommandEvent&)':
    : undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned), void* (*)(void*, void*, unsigned), void (*)(void*, void*))'
    /dateien/projects/oracletest/Release/mainform.o(.text+0x7a7): In function `Mainform::OnButton1(wxCommandEvent&)':
    : undefined reference to `oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)'
    collect2: ld returned 1 exit status
    oracletest - 2 error(s), 0 warning(s)
    Can anyone help me?

    How does it stop? Do you get a NoClassDefFoundError? If that's so, then probably com.apache.crimson.parser.XMLReaderImpl is not on your classpath. Do you have the correct version of Crimson on your classpath?
    By the way, do you really want to explicitly have your program use Crimson? The XML API was set up in such a way that it is possible to plug in different XML parsers, but using your code you bind your program to one specific parser. Try:
    XMLReader xr = XMLReaderFactory.createXMLReader();
    and set the system property "org.xml.sax.driver" to "org.apache.crimson.parser.XMLReaderImpl":
    java -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl myclass
    Jesper

  • Proper use of ConnectionPool in occi

    Hi,
    I am developing a client server application using Windows server 2003 x64, Oracle 11.1.0.6.0 client connecting to oracle 10.1.0.2.0 database, Visual studio 2008, visual c++ 9.
    The scenario is something like this,
    upon receiving the client request, the server executes a stored procedure as per the request. I have a number of classes thru which the stored procedure gets called. Currently, in every method of these classes, I am creating new connection to the database as follows..
    +Environment *env = Environment::createEnvironment(Environment::OBJECT);+
    +Connection *conn = env->createConnection( USERID, PASSWORD, ORACLESID );+
    But now I want to use a ConnectionPool to improve performance of the application.
    My question is, where do I create the ConnectionPool object so that it is accessible from all the methods of the classes?

    Got it!!
    I did the following..
    Declare the Environment and StatelessConnectionPool objects above main function.
    +oracle::occi::Environment *env;+
    +oracle::occi::StatelessConnectionPool *connPool;+
    +int tmain(int argc, TCHAR* argv[])+
    +{+
    +......+
    +}+
    Then declare these objects as EXTERN from wherever you want to access them.
    +extern oracle::occi::Environment *env;+
    +extern oracle::occi::StatelessConnectionPool *connPool;+
    +//Method that uses these objects+
    The objects can directly be used in the methods where the they are declared as 'extern'.
    Enjoy!

  • Problem with access to Environment.

    Hey, all.
    I use Gentoo Linux and I have big problem.
    I can't access the Environment.
    I tried some examples from the site but without any result.
    I have to write a code based on OCCI library.
    I will use ODBC if i can't solve the problem.
    I had the following error message:
    /tmp/ccf0eMaZ.o: In function `main':
    a.cpp:(.text+0x208): undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned), void* (*)(void*, void*, unsigned), void (*)(void*, void*))'
    collect2: ld returned 1 exit status
    I tried many examples with the same result.
    Any ideas?
    Thanks in advance if anybody help me.
    Message was edited by:
    user493625

    Check the gcc version in your Linux distribution. On RedHat Linux AS 3.0, OCCI supports gcc 3.2.3 for 10.1 & 10.2
    Regards,
    Shankar

  • OCCI Link problem (Error LNK2019: unresolved external symbol) in VS2012

    Hi,
    I'm having a hard time with this. I'm trying to implement OCCI within my application. Error I'm getting is:
    Error     1     error LNK2019: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0W4Mode@123@PAXP6APAX2I@ZP6APAX22I@ZP6AX22@Z@Z) referenced in function "private: bool __thiscall ServerDataLoader::getPreSuffixesFromDB(void)" (?getPreSuffixesFromDB@ServerDataLoader@@AAE_NXZ)     P:\code\VizTool\VizPortal\DwgDgnConverter\ServerDataLoader.obj     DwgDgnConverter
    Error     2     error LNK1120: 1 unresolved externals     P:\code\VizTool\VizPortal\Debug\DwgDgnConverter.exe     1     1     DwgDgnConverter
    Yes, it looks like linking problem,...but for me everything seems set-up.
    - Included header files (from instantclient-sdk-windows.x64-11.2.0.3.0.zip)
    - Included library path from OCCI download (11.2.0.3.0)
    - Added oraocci11d.lib in linker
    Please, what am I doing wrong?
    Millions of thanks for any kind of feedback ;-)

    Have you succeeded? I tried vs2012 and it passed compilation, but gave the run-time error of _crtisvalidheappointer. But the same code runs well with vs2010. I think Oracle needs to publish the new patch for vs2012                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • OCCI Compiling problem

    I am trying to complie a simple OCCI program with the latest Oracle 10g client(with full installation) and gcc 3.2.2-5 (Oracle says OCCI works with gcc 3.2) on a Red Hat 9 box, I got the following error message:
    undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*(void*,unsigned), void* (*)(void*, void*, unsigned),void(*)(void*, void*))'
    undefined reference to`oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)'
    Does anyone know how to solve it? This program works fine with VC++ 6.0 and it is OK to complie OCI program on the same Linux box.
    Thanks in advance!

    Never mind. I got it worked.
    The final commmand I used like this (myprogram is the executable file on linux):
    g++ -o myprogram -L $ORACLE_HOME/lib -L $ORACLE_HOME/rdbms/lib -locci -lclntsh myprogram.cpp
    I got the previous problem by missing "-locci". Right now I get a warning, /u01/app/oracle/product/10.1.0/client_1/lib/libclntsh.so: warning: remap_file_pages is not implemented and will always fail, although it does not affect my programm. Anyone know what does it mean?

  • Linking oraocci11.dll - OCCI works only with Microsoft VC++???

    I wonder if OCCI will work with other IDEs too?
    I tried to use it with MingW Toolchain (g++). But I could link the dll to my application yet. When compiling I get always:
    g++ -IC:\oracle\11.1.0\oci\include -IC:\oracle\11.1.0\oci\lib -O0 -g3 -c -fmessage-length=0 -oOcciTest.o ..\OcciTest.cpp
    g++ -LC:\oracle\11.1.0\BIN -LC:\oracle\11.1.0\oci\lib\msvc -oOracleTest.exe OcciTest.o -loraocci11
    OcciTest.o: In function `main':
    N:/workspace/c/OracleTest/Debug/../OcciTest.cpp:27: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
    collect2: ld returned 1 exit status
    Build error occurred, build is stopped
    How to link the dll (oraocci11.dll?) correctly?
    Client: 11.0.6
    DB: 9i
    OS: WinXP
    IDE: Eclispe CDT
    Comp: G++
    Edited by: [email protected] on Mar 12, 2009 9:33 AM

    Hi,
    You need the correct version (lib and dll) for your specific compiler.
    Look here:
    Link:[Using OCCI with Microsoft Visual C++(11gR1)|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28390/install.htm#CBHGBBJI]
    Or here, to download other versions for VC++9(2008)
    Link:[Oracle C++ Call Interface - Downloads|http://www.oracle.com/technology/tech/oci/occi/occidownloads.html]
    hth
    P

  • Environment Class

    Hi,
    when I call
    env=Environment::createEnvironment (Environment::DEFAULT);
    I get the message:
    error LNK2019: Not resolved extern Symbol '"public: static class oracle::occi::Environment *
    The usual #includes are made:
    #include "stdafx.h"
    #include <iostream>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    I am working on Visual C++ Net, Windows XP.
    In which library or header file the Environment class is defined?
    Thanks a lot for your help!
    Felix H.

    VC++ 7.0 (.NET 2002) is supported in the 9.2.0.5 patchset, VC++ 7.1 (.NET 2003) is supported with the 10gR1 release. The application should be linked with oraocci9.lib/oraocci10.lib present under %ORACLE_HOME%\rdbms\lib\vc7 or %ORACLE_HOME%\rdbms\lib\vc71. The appropriate oraocci.dll should be first in the PATH when running the application.
    Regards,
    Shankar

  • Linking Error in OCCI

    hi Guys...
    please help me...
    i m new in c++ connectivity with Oracle using OCCI...
    following is my code which i wrote in Dev C++ using g++ compiler
    #include <occi.h>
    using namespace oracle::occi;
    int main() {
    Environment *env = Environment::createEnvironment();
    Environment::terminateEnvironment(env);
    return 0;
    Errors comming
    Compiler: Default compiler
    Executing g++.exe...
    g++.exe "C:\Dev-Cpp\bin\occ1.cpp" -o "C:\Dev-Cpp\bin\occ1.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -I"E:\instantclient" -I"E:\oracle\product\10.2.0\db_1\OCI\include" -L"C:\Dev-Cpp\lib" -L"E:\instantclient"
    C:\DOCUME~1\MANSI\LOCALS~1\Temp/cc4Gcaaa.o(.text+0x52):occ1.cpp: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
    C:\DOCUME~1\MANSI\LOCALS~1\Temp/cc4Gcaaa.o(.text+0x60):occ1.cpp: undefined reference to `oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)'
    collect2: ld returned 1 exit status
    Execution terminated
    tell me where I am wrong???

    hi Mark,
    Thanks So much for replying...
    Actually I am totally new in C++ connectivity with oracle 10g database..
    could u please help me because tomorrow i have an interview on this...n i wnt to learn some basics of creating a connection
    it would be great if u can give me some steps on how to create a c++ program ( what compliers , header files,library files ..on which location they should be) that can connect to oracle 10g database.
    plz it very urgent
    i have done searching on google...but didn't get good tutorial on this...
    thanks
    mansi

  • Occi problems while compiling in linux

    hi guys
    i've been trying to compile the occi programming examples but i always get the following error.
    /tmp/ccNNJ2Rg.o(.occipool::gnu.linkonce.t.(void)+0x18): In function `occipool::occipool(void)':
    : undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void *, void *(*)(void *, unsigned int), void *(*)(void *, void *, unsigned int), void (*)(void *, void *))'
    /tmp/ccNNJ2Rg.o(.gnu.linkonce.t._._8occipool+0x15): In function `occipool::~occipool(void)':
    : undefined reference to `oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment *)'
    /tmp/ccNNJ2Rg.o(.occipool::gnu.linkonce.t.select(void)+0x497): In function `occipool::select(void)':
    : undefined reference to `oracle::occi::SQLException type_info function'
    /tmp/ccNNJ2Rg.o(.occipool::gnu.linkonce.t.select(void)+0x4c8): In function `occipool::select(void)':
    : undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const &)'
    /tmp/ccNNJ2Rg.o(.occipool::gnu.linkonce.t.select(void)+0x513): In function `occipool::select(void)':
    : undefined reference to `oracle::occi::SQLException::getErrorCode(void) const'
    /tmp/ccNNJ2Rg.o(.occipool::gnu.linkonce.t.select(void)+0x55c): In function `occipool::select(void)':
    : undefined reference to `oracle::occi::SQLException::getMessage(void) const'
    /tmp/ccNNJ2Rg.o(.occipool::gnu.linkonce.t.select(void)+0x5b2): In function `occipool::select(void)':
    : undefined reference to `oracle::occi::SQLException::~SQLException(void)'
    /tmp/ccNNJ2Rg.o(.occipool::gnu.linkonce.t.select(void)+0x60d): In function `occipool::select(void)':
    : undefined reference to `oracle::occi::SQLException::~SQLException(void)'
    collect2: ld returned 1 exit status
    i tried following the instructions in this forum about installing gcc 2.95.3. since i was using 3.2.2. I installed gcc ok but i still get the same problem. i think its something to do with the shared libraries or include paths but i cannt figure how. any help will be appreciated. am running redhat 9.0 and oracle 9 rs 2.
    regards solomon

    Hi all.
    I've same problems. I try to download and install 2.95.3 from http://gcc.gnu.org/releases.html (since there isn't any refercence to 2.96!) but the problems persist again.
    So I tryed to analyze the library with 'nm -CD $ORACLE_HOME/lib/libocci' and I saw there isn't no exported symbols, then I rebuild it with the object files found in $ORACLE_HOME/lib/libocci9.a' and now the library exports all function oracle::... but when I try to recompile the example demo/occidml I get the error
    /opt/gcc2.95/bin/g++ -o occidml -I. I/opt/oracle/oracle92/rdbms/public -L/opt/oracle/oracle92/lib -L/opta/oracle/oracle92/rdbms/lib -locci -lclntsh 'cat $ORACLE_HOMElib/sysliblist' occidml.cpp
    /opt/oracle/oracle92/lib/libocci.so: undefined reference to '__ctype-toupper'
    collect2: ld returned 1 exit status
    WHERE I CAN DOWNLOAD THE gcc2.96????

  • Does Oracle occi have any memory bugs when writing blobs using streams?

    The function below will produce some kind of memory corruption that will cause an exception (which cannot be identified since memory is corrupted) while doing another call:
    ora::Statement stmt(__cn);
    string sql("BEGIN Pckg.Sp_procA(:1, :2, :3, :4, :5, :6, :7, :8, "
    ":9, :10, :11, :12, ":13, :14, :15, :payload); END;");
    occi::Blob payload(__cn.getConnection());
    occi::Environment* tempEnv = occi::Environment::createEnvironment();
    occi::Timestamp reportTime(tempEnv);
    reportTime.fromText(__report.report_time), "yyyy-mm-ddH24:mi:ss.ff");
    stmt.setSQL(sql);
    stmt.setString     (1, "");
    stmt.setString     (2, "");
    stmt.setString     (3, __report.varA);
    stmt.setString     (4, __report.varB);
    stmt.setInt          (5, __report.varC);
    stmt.setString     (6, __report.varD);
    stmt.setString     (7, __report.varE);
    stmt.setString     (8, __report.varF);
    stmt.setTimestamp(9, reportTime);
    stmt.setNull     (10, occi::OCCITIMESTAMP);
    stmt.setString     (11, __report.varG);
    stmt.setString     (12, __report.varH);
    stmt.setString     (13, __report.varI);
    stmt.setString     (14, __report.varK);
    stmt.setString     (15, __report.varX);
    stmt.setBinaryStreamMode(16, __report.payload.Size(), true);
    stmt.executeUpdate();
    occi::Stream* streamedData = stmt.getStream(16);
    streamedData->writeLastBuffer(__report.payload.GetPtr(), __report.payload.Size());
    stmt.closeStream(streamedData);
    occi::Environment::terminateEnvironment(tempEnv);
    return true;
    The function below works perfectly unless the code above is executed and looks like this:
    ora::Statement stmt(__cn);
    string sql("BEGIN "
    "Pckg.Sp_procB(:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11); END;");
    occi::Environment* tempEnv = occi::Environment::createEnvironment();
    occi::Timestamp reportTime(tempEnv);
    reportTime.fromText(__report.report_time, "yyyy-mm-dd HH24:mi:ss.ff");
    stmt.setSQL(sql);
    stmt.setString     (1, "");
    stmt.setString     (2, "");
    stmt.setString     (3, __report.varA);
    stmt.setString     (4, __report.varB);
    stmt.setInt          (5, __report.varB);
    stmt.setString     (6, __report.varD);
    stmt.setString     (7, __report.varE);
    stmt.setString     (8, __report.varF);
    stmt.setString     (9, __report.varG);
    stmt.setTimestamp(10, reportTime);
    stmt.setNull     (11, occi::OCCITIMESTAMP);
    stmt.executeUpdate();
    occi::Environment::terminateEnvironment(tempEnv);
    return true;
    I got the blob insert example from Oracle's documentation and can't see anything wrong with it. The second function also seems to be ok which got me thinking that Oracle's occi might have some kind of bug that corrupts memory. Anyone knows anything about this or has done anything similar?

    Does anyone insert blobs this way? Or just using the "insert -> select for update" way?

Maybe you are looking for

  • Use of Logical Systems - RAR 5.3

    Hi, i have created 2 physical systems (QA and Production systems) with the necessary connectors and assigned it to a single logical system. Subsequently i have generated the rules for that logical system. However when i run a risk analysis i do not s

  • HT1212 after i request to unlock my iphone  it was approved and when i restored  still not unlock

    can someone help me about my iphone 4s after i request to unlock to att  and i was approved when i restored to itunes still nt accepting my t-mobile sim cad

  • Dependency of characteristics value in CV04N

    Hi there, I have an issue when searching document using characteristics with dependencies. Let's say I have 2 characteristics (doc & doc_sub_type). characteristics : DOC has value A & B characteristics : DOC_SUB_TYPE has value A-1 & B1 When user sear

  • HR ABAP : Problem fiinding delegate List.

    Hi all, I have problem to findout the employee list who is applied for Training provided by organization. in this report i have to find out 1.Report title (Like trianing for HR ABAP or SAP Script ) 2.Course Venue (Address of course venue) 3.Tutor (wh

  • What is rebates in Oracle Apps AR?

    Hello, I have a requriement where I need to find about Rebate in Recievables.. below is the scenario... I wanted to find out what is synonymus to "Rebates" in Oracle? My understanding of Rebates is -- Rebate, is you have a customer who bought a 100 d