Gaurav Kumar
Gaurav Kumar

Reputation: 59

Need help in connecting PHP 5.3.0 to Oracle 8i?

I am using wamp 2.0 which has PHP 5.3.0 with php_oci8.dll and related files in ext folder.

I have done all the configuration such as installing Oracle Instant Client 10gR2 and editing php.ini configuration file. Till now, everything is good.

Here is the screenshot of oci8 configuation details from index.php run via localhost.

click here: OCI8 details

And this is the connection string I am using to connect PHP to Oracle:

<?php
$dvlp = '(DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.155)(PORT = 1521))
    (CONNECT_DATA = (SID = DVLP))
  )' ;
$odbc = ocilogon ('work', 'work', $dvlp) 
or die( "Could not connect to Oracle database!") 
or die (ocierror());
?>

But it is throwing a connection error as follows:

Warning: ocilogon() [function.ocilogon]: ORA-03134: Connections to this server version are no longer supported. in C:\wamp\www\new.php on line 6 Could not connect to Oracle database!

I have tried everything I could think of and searched a lot regarding this but all in vein. Maybe, the problem is with the compatibility between the php, oci8 and the instant client 10gr2, but no idea.

PS: I am using Windows Server 2003 for a small project.

Thanks!

Upvotes: 0

Views: 327

Answers (0)

Related Questions