title: Connecting oracle 11g with codeigniter
body: <p>I am trying to connect oracle 11g with codeigniter(V-2.1.4) using xampp(v-1.7.3) . I have changed my config.php to this :</p>
  
  <pre><code>$active_group = 'default';
  $active_record = TRUE;       
  $db['default']['hostname'] = 'localhost';
  $db['default']['username'] = 'system';
  $db['default']['password'] = 'root';
  $db['default']['database'] = 'orcl';
  $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>and also changed <code>var $dbdriver = 'oci8';</code>  in DB_driver.php file. 
  But um not able to connect with db. I am getting some sort of database error . It says :</p>
  
  <pre><code>Unable to connect to your database server using the provided settings.    
  Filename: G:\F\installed\Xampp\xampp\htdocs\codeigniter\system\database\DB_driver.php    
  Line Number: 124
  </code></pre>
  
  <p>I am giving line 118 - 127 of DB_driver.php here : </p>
  
  <pre><code>if ( ! $this-&gt;conn_id)
  {
    log_message('error', 'Unable to connect to the database');
  
    if ($this-&gt;db_debug)
    {
      $this-&gt;display_error('db_unable_to_connect'); (this is line 124)
    }
    return FALSE;
  }
  </code></pre>
  
  <p>I want to add that when i try to connect with the following code i am able to see  "Succesfully connected with Oracle DB :-)" this message.</p>
  
  <pre><code>conn=oci_connect("system","root","localhost/orcl");
  If (!$conn)
    echo "Failed to connect to Oracle";
  else
    echo "Succesfully connected with Oracle DB :-)";
  </code></pre>