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. Quote 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(). Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/85315-connect-to-oracle/#findComment-455965 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.