Forum Stats

  • 3,727,966 Users
  • 2,245,512 Discussions
  • 7,853,222 Comments

Discussions

OCCI (v19.5) createEnvironment crashes with 32104

4182438
4182438 Member Posts: 3
edited February 2020 in Oracle Call Interface (OCI)

I Build my simple project in MSVC19, and I can't this code work.

#include "iostream"#include "occi.h"using namespace std;using namespace oracle::occi;#define db_user_name "test"#define db_password "test"#define db_conn_str "service"int main(int argc, char* argv[]){    try    {        Environment* env = Environment::createEnvironment(Environment::OBJECT); // in line with error => goto catch block and return 32104        Connection* conn = env->createConnection(db_user_name, db_password, db_conn_str);        Statement* stmt = conn->createStatement("Select 1 from dual");        ResultSet* rs = stmt->executeQuery();        int res = 0;        while (rs->next())        {            res = rs->getInt(1);        }        stmt->closeResultSet(rs);        env->terminateConnection(conn);        Environment::terminateEnvironment(env);    }    catch (SQLException & sqlExcp)    {        std::string temp = sqlExcp.getMessage();        std::cerr << sqlExcp.getErrorCode() << " " << sqlExcp.getMessage() << std::endl;    }    system("pause");    return 0;}
Tagged:

Answers

  • Gaz in Oz
    Gaz in Oz Member Posts: 3,775 Bronze Crown
    edited February 2020
    oerr ora 3210432104, 00000, "cannot retrieve OCI error message"// *Cause: Error message after an OCI call could not be retrieved.// *Action:  This is an internal OCCI Error.  Please contact customer support.

    Have you got your OCI env configured correctly? The error number/message seems to be saying it can not find the file with the actual error message in it.

    Raise an SR with Oracle Support if you can.

Sign In or Register to comment.