Problem with Oracle connection

Hi all,

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:

‘db’=>array(

'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.

can you give a stacktrace of that error?

Did you fix it? Because I have the same problem.

The problem in my case was from Oracle (I think). I reinstalled Oracle and things started. I don’t know why.