title: How to connect to Oracle in C++?
body: <p>I tried to connect to Oracle using C++ but it is giving me error stating that <code>DBManger.h</code> not found. I have also tried using <code>occi.h</code> but got the same error of not found or No Such Directory.</p>
  
  <p>I have installed Oracle 11g and it contains the OCI Liabraries also.  </p>
  
  <p>I located the specififc folders also where the OCI libraries are present . In my system they are at location <code>E:\app\user\product\11.1.0\db_1\OCI\lib\MSVC\vc8</code>.</p>
  
  <p>I have also set the Path starting with Oracle home. But, still my program is not able to find the header files.</p>
  
  <p>Any help would be greatly appreciated? I Googled a lot but found the same solution stating that locate the folder where the OCI libraries are available. I am posting my code below written in Visual Studio 2008:</p>
  
  <p>I have written a very small script and just included the header files. Not even done the connectivity:</p>
  
  <pre><code>#include &lt;occi.h&gt; 
  #include &lt;iostream&gt;
  using namespace oracle::occi;
  using namespace std; 
  
  class DataBaseConnectionTest
  {
  public:
  void test()
  {
      cout&lt;&lt;"Hello from test"&lt;&lt;'\n';
  }
  };
  void main()
  {
  DataBaseConnectionTest *dbc=new DataBaseConnectionTest();
  dbc-&gt;test();
  }
  </code></pre>