Hi guys. I can’t conect my Yii app with Oracle 12g, I got the error: could not find driver -> Caused by: PDOException -> could not find driver. I tried many way to connect it, but failed.
I Tried it @Pasman p, But not work. The oci_pdo.so is on /usr/lib64/php/modules/ in my php.ini I put extension = oci_pdo.so, reload the Apache service and nothing.
I know that oci_pdo.so library is experimental. There is an extension/Library that avoids this problem? Comparing with another framework there is a library that does this.
Or… Somebody can send me this damn oci_pdo.so librari to try again? My PHP is 5.5.20 - SO: Fedora 19
Having used the oci_pdo for over a year on yii 1.1, I really don’t recommend it.
There is a fair easier solution, instead of using oci_pdo, try using pdo_odbc then make a unixODBC connection to your Oracle instance, it’s way easier then making oci_pdo work.
You will have to tell Yii that your connection is an Oracle connection, otherwise it won’t work.
Also, if you’re using oracle on a different charset, but wants your oracle client to receive the data in utf-8, you’ll get a nasty error of buffer overflow. It’s fixable, but you’ll need to compile pdo_oci again, if you use pdo_odbc then you’re good.
I think, that I need to install pdo_odbc I’ll get the same problem. I try to compile pdo_oci, I have it created on my dir, but when I try call it, its fail.
Other thing my environment is old, I use Fedora 19 yet.