Im new on Yii and I was trying to connect to an Oracle db with de following error when trying to create de models by gii tool:
CDbConnection failed to open the DB connection: SQLSTATE[HY000]: pdo_oci_handle_factory: ORA-12514: TNS:listener has no knowledge about the service requested in currently connection descriptor
My config file:
'class' => 'CDbConnection', 'connectionString' => 'oci:dbname=10.10.2.220:1521/db01;charset=UTF8', 'username' => 'xxxxxx', 'password' => 'xxxxxx',
I have this connection working fine on another application on the same server (not in Yii, just PDO).
What m’I doing wrong?
Sorry about the bad english, Im still learning it.