mercredi 23 décembre 2015

ORA-12154 laravel yajra OCI8 TNS:could not resolve the connect identifier specified

I just install PHP7-FPM with OCI8 enabled ORACLE_HOME and TNS enviroment correctly set i can see it into phpinfo();

I create the credentials into config/database.php and .env as well .

For a second try i do create a pure PHP script and it connect .

I just get the ORA-12154 message still.

The error message points to vendor/yajra/laravel-pdo-via-oci8/src/yajra/Pdo/Oci8.php

Is there a way to use only laravel-oci8 (not PDO).

The error message shows // Attempt a connection

if (isset($options[PDO::ATTR_PERSISTENT]) && $options[PDO::ATTR_PERSISTENT]) { $this->_dbh = oci_pconnect($username, $password, $dsn, $charset); } else { $this->_dbh = oci_connect($username, $password, $dsn, $charset); }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire