1
When trying to connect to an Oracle ORACLE database appears the following error:
TNS:System was not Given the SERVICE_NAME in CONNECT_DATA
I have already set up php.ini and included the following lines:
extension=php_oci8.dll
extension=php_oci8_11g.dll
extension=php_oracle.dll
Note: My connection file is as follows:
$conexao = oci_connect('usuario', 'senha', 'nome_do_banco');
Possible solution to your problem: http://stackoverflow.com/questions/20345605/php-oci-connect-tnscould-not-resolve-the-connect-identifier-ora-12154. Specification for SERVICE_NAME: http://docs.oracle.com/cd/B28359_01/server.111/b28320/initparams217.htm Manual oci_connect: http://php.net/manual/en/Function.oci-connect.php
– Lucas Fontes Gaspareto