title: Yii database connection issue
body: <h1>Task</h1>
  <p>What I need is, to authenticate user based on Oracle DB user system:</p>
  <ul>
  <li>User enters to login page</li>
  <li>Enters username and password</li>
  <li>Application tries to establish connection with given parameters</li>
  <li>If successful, makes this connection persistent over application</li>
  </ul>
  <p>I'm using Yii framework.</p>
  <h1>What I've done ...</h1>
  <p>I removed <code>db</code> component from <code>protected/config/main.php</code> file. Based on <a href="http://goo.gl/YNdWmw" rel="nofollow noreferrer">Larry Ulman's blog post</a> replaced <code>authenticate</code> (which located in <code>protected/components/UserIdentity.php</code>) with following one</p>
  <pre><code>public function authenticate()
  {
   $dsn='oci:dbname=XE;charset=UTF8';
   $connection=new CDbConnection($dsn,$this-&gt;username,$this-&gt;password);
   $connection-&gt;active=true;
   return $connection-&gt;getConnectionStatus();
  }
  </code></pre>
  <p>Well it didn't establish any connection. BTW in server I tested with oracle client. All works well.</p>
  <h1>Questions are</h1>
  <ol>
  <li>I'm not sure if I'm doing it in right manner.</li>
  <li>How to make established db connection persistent over whole application?</li>
  </ol>
  <h1>BTW</h1>
  <p>My development environment
  Oracle DB and Apache 2.2.4 + PHP 5.4 webserver working on Windows Server 2003.</p>