Revision #4 has been created by jwerner on Dec 8, 2010, 8:56:26 AM with the memo:
Minor typo fixed
« previous (#3) next (#5) »
Changes
Title
unchanged
Using Yii with Oracle through PDO
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
oracle, pdo oci php
Content
changed
[...]
```
There was a bug in Yii 1.1.4 which caused that an attempt to pass charset as in first example would cause an error, because Yii tried to set charset with SET NAMES statement, which is not supported by PL/SQL on board Oracle. This bug has been corrected, but even so, if you use second approach, you'll be able to force Oracle to return result in any charset encoding you want (if it is supported by Oracle, of course).
### 2. Setting login information
Some (all?) versions of Oracle does non't support passing login and password as a part of DSN string. You'll have to pass it like this:
```php
'db'=>array
([...]