PHP 4.0 Bug #5814: ODBC connection to Oracle fails
| From: | fsegtrop at estiem dot org | Date: | Thu, 27 Jul 2000 12:08:30 +0000 |
| Subject: | PHP 4.0 Bug #5814: ODBC connection to Oracle fails | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-26469@lists.php.net to get a copy of this message | ||
From: fsegtrop@estiem.org
Operating system: NT4 SP6a
PHP version: 4.0.1pl2
PHP Bug Type: ODBC related
Bug description: ODBC connection to Oracle fails
With PHP 4.0.1pl2 the following script
<?$conn=odbc_connect("TEST","me","me");?>
the error occurs:
Warning: SQL error: [Oracle][ODBC Oracle Driver][Oracle OCI]ORA-12154: TNS:Der Servicename konnte
nicht aufgelöst werden.., SQL state S1000 in SQLConnect
With PHP3, the same script works, on the same machine and the same environment.
ODBC is correctly configured, as a login with ODBC-Test works.
Login with SQL Plus also works, so TNS is correctly configured.
It looks as if, with PHP4, ODBC does not look for the tnsnames.ora, which ODBC does with PHP3.