tanmoy1048 Posted January 10, 2008 Share Posted January 10, 2008 I am really new in this field. I just install php5 and apache2 in debian OS. And I have machine named "neptune" and a oracle (10.2.0.2) DB named "TEST". Now how to connect it with php code? please help me. Link to comment https://forums.phpfreaks.com/topic/85315-connect-to-oracle/ Share on other sites More sharing options...
tanmoy1048 Posted January 10, 2008 Author Share Posted January 10, 2008 I tried, <?php phpinfo(); $connection = oci_connect("PROD7","THWORD7","//neptune:1521/TEST"); if (!$connection) { $e = oci_error(); echo htmlentities($e['message']); } ?> and I got the error, Fatal error: Call to undefined function oci_connect(). Link to comment https://forums.phpfreaks.com/topic/85315-connect-to-oracle/#findComment-435359 Share on other sites More sharing options...
chombone Posted January 11, 2008 Share Posted January 11, 2008 did you install the Oracle client libraries? http://uk3.php.net/manual/en/ref.oci8.php Link to comment https://forums.phpfreaks.com/topic/85315-connect-to-oracle/#findComment-436684 Share on other sites More sharing options...
gizmola Posted February 2, 2008 Share Posted February 2, 2008 Right. You need to read the php manual in regards to installing support for oracle. http://us.php.net/manual/en/ref.oci8.php Your phpinfo() should indicate that there is the oci8 is installed. There are also some instructions at the Oracle technology network for this stuff. The most recent server I did this for (linux) I used the oracle instant client. Link to comment https://forums.phpfreaks.com/topic/85315-connect-to-oracle/#findComment-455965 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.