php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7339 ODBC with Oracle and Apache, Server rejected the connection
Submitted: 2000-10-19 08:37 UTC Modified: 2002-06-24 05:54 UTC
From: beccarini at space dot it Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.3pl1 OS: NT4 SP5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: beccarini at space dot it
New email:
PHP Version: OS:

 

 [2000-10-19 08:37 UTC] beccarini at space dot it
Hello,
Using PHP3 and connecting to Oracle via ODBC everything works fine but using exactly the same script with PHP4.0.3pl1 I receive this "SQL error: [Oracle][ODBC][Ora]Server rejected the connection., SQL state 08004 in SQLConnect".

The scrip is really easy, here it is:
<?php
if (!($conn=odbc_connect ("ORACLEQP", "scott", "tiger")))
	echo "Error";
else
	echo "OK";

?>

Obviously "ORACLEQP" is my Sysytem DSN. The server machine is different from the Web Server running apache and PHP.
Any hint would be very appreciated cause right now to workaround to the problem I am using both PHP3 and PHP4.
(I need PHP4 because I am trying to use GD library)
Thanks
Andrea

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-30 11:33 UTC] kalowsky@php.net
this sounds more like a misconfiguration in the Oracle server rather than in PHP.  Please check that your Oracle installation is properly setup.

And then the that the user and password are correct.
 [2001-03-31 04:54 UTC] beccarini at space dot it
this sounds more like you didn't read the problem very well,
I repeat, using PHP3 everythinh works (so the Oracle Configuration is fine and the Username and Pwd is OK) using PHP4 there are problems.
 [2001-05-09 12:08 UTC] kalowsky@php.net
from the ODBC documentation:
SQLConnect() Diagnostic Errors:
08004	Server rejected the connection.
 [2002-06-24 05:54 UTC] beccarini at space dot it
test
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 06:01:26 2024 UTC