This discussion is archived
3 Replies Latest reply: Sep 25, 2013 7:05 AM by kmohan RSS

Oracle 12c - Visual Studio 2012 Express - createEnvironnment failure

8a6e8319-1429-4142-9a72-ed928b0ec95f Newbie
Currently Being Moderated



I am using Oracle 12c and VS 2012 Express. I tried this simple code but it fails:


#include <stdio.h>

#include <iostream>

#include <occi.h>


using namespace oracle::occi;

using namespace std;


int main( int argc, const char* argv[] )



//create environment and connection


Environment* env = Environment::createEnvironment();


Connection* conn = env->createConnection( "xxx", "xxx", "localhost" );


std::cout << "Environment and Connection created" << std::endl;





The createEnvironment method fails and createConnection raises an exception.


Does anyone experience the same problem ?






  • Correct Answers - 10 points
  • Helpful Answers - 5 points