Good day!
I am trying to connect to an Oracle database through PHP. When I try to connect via $ dbh = new PDO ($ dsn, $ user, $ password), an error is displayed:
pdo_oci_handle_factory: ORA-12154: TNS: I could not specify the identifier specified (ext \ pdo_oci \ oci_driver.c: 631) '
However, when I connect through the function oci_connect ($ user, $ password, $ shem), the connection works. Please help me figure out why this may be happening?
PS on the machine is Apache2.2 and php 5.4.0