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.
Page 1 of 1
Problem with Oracle connection
#4
Posted 05 November 2012 - 12:12 PM
The problem in my case was from Oracle (I think). I reinstalled Oracle and things started. I don't know why.
Share this topic:
Page 1 of 1