note 43226 added to ref.oci8
| From: | beckmanatpurplecowdotcom at rn2 dot php dot net | Date: | Mon, 14 Jun 2004 20:20:36 +0000 |
| Subject: | note 43226 added to ref.oci8 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71063@lists.php.net to get a copy of this message | ||
For those of you running Oracle on Linux, and running a remote box also on Linux, here's an
easy way to get OCI8 working without having to install the whole Oracle DB just to get your client
working.
[PS -- For the life of me, installing client libraries for Oracle really shouldn't be this
hard, but it really truly is.]
Step 1. Copy the following directories from your ORACLE_HOME directory where Oracle is installed
(the database server) to your remote client server/machine:
lib, network, ocommon, plsql, rdbms, oracore
These contain all of the files/folders/libraries you'll need to compile OCI8 into PHP. I
put this in /home/beckman/oracle and set ORACLE_HOME as that dir.
Step 2. Compile PHP with --with-oci8=/home/beckman/oracle (obviously using your directory, not
mine). Install, (re)start apache.
Step 3. Remove plsql and rdbms directories from ORACLE_HOME on your remote server, leaving you with
lib, network, ocommon and oracore.
Step 4. Read: http://otn.oracle.com/tech/opensource/php/php_troubleshooting_faq.html
NOTE: This will only help you if you (a) have Oracle successfully running on Linux (was RH
Enterprise 3 for me) and your client box is running the same OS. I'm not sure it will work on
earlier versions, but it may. Your results should be posted here methinks!
----
Manual Page -- http://www.php.net/manual/en/ref.oci8.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43226
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43226&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43226&report=yes
Search -- http://master.php.net/manage/user-notes.php