title: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS' while creating Oracle db connection
body: <p>Currently I'm working with oracle db using <strong>codeigniter</strong>. I'm newbie to this db, when i try to make the connection. I got this error.</p>
  
  <p>A PHP Error was encountered</p>
  
  <pre><code>Severity: Notice
  Message: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS'
  Filename: database/DB.php
  Line Number: 144 
  </code></pre>
  
  <p>I've already enable extension in <strong>php.ini</strong></p>
  
  <pre><code>;extension=php_mysqli.dll
  extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
  ;extension=php_oci8_11g.dll  ; Use with Oracle 11gR2 Instant Client
  </code></pre>
  
  <p>Below is my code for <strong>database.php</strong> :</p>
  
  <pre><code>$active_group = 'default';
  $active_record = TRUE;
  $db['default']['hostname'] = 'xxx.xxx.x.xx';
  $db['default']['username'] = 'xxxx';
  $db['default']['password'] = 'xxxx';
  $db['default']['database'] = '';
  $db['default']['dbdriver'] = 'oci8';
  $db['default']['dbprefix'] = '';
  $db['default']['pconnect'] = TRUE;
  $db['default']['db_debug'] = TRUE;
  $db['default']['cache_on'] = FALSE;
  $db['default']['cachedir'] = '';
  $db['default']['char_set'] = 'utf8';
  $db['default']['dbcollat'] = 'utf8_general_ci';
  $db['default']['swap_pre'] = '';
  $db['default']['autoinit'] = TRUE;
  $db['default']['stricton'] = FALSE;
  </code></pre>
  
  <p>Below is the code at <strong>controller</strong> :</p>
  
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  class Welcome extends CI_Controller {
  
  
      function __construct()  {
              parent::__construct(); 
      }
  
      function index()        {
              $this-&gt;db = $this-&gt;load-&gt;database('default',TRUE);
  
              if (!empty($this-&gt;db))
                  echo "Connected!"."\n";
              else
                  echo "Closed"."\n";
      }
  }
  </code></pre>
  
  <p>I've been stuck on this problem almost 2 weeks. I also already searched the solution but nothing's work. can you help me?</p>