Gena01.com Forum

General => Gena01 Blog => Topic started by: Gena01 on May 13, 2008, 07:58:55 pm



Title: OCI 1.2.5 or upgrading Oracle Instant Client
Post by: Gena01 on May 13, 2008, 07:58:55 pm
OCI 1.2.5 was released recently and has an impressive list of fixes. One of the most important items for me was the support for RPM installs and 64-bit RPMs.

What that means in plain English: You can now grab RPMs from Oracle website for Oracle Instant Client. Install them as you normally would and then do pear install pecl/oci8 and just say instantclient and be done with it.

I actually tested this today on my development box at work. I did it as an upgrade though. The whole process now takes less than 2 minutes and I'll describe it here.

NOTE: I assume you already have Oracle Instant Client setup and configured. If not then see Part 1 (http://www.gena01.com/forum/gena01_blog/installing_oracle_instant_client_and_making_it_work_with_php-t184.0.html) and  Part 2 (http://www.gena01.com/forum/gena01_blog/installing_oracle_instant_client_11g_and_pecl_oci8-t193.0.html).

1. Do pear upgrade pecl/oci8.
2. You will be prompted with an option to provide instant client lib directory:
   a. enter 1 - NOTE: Don't select autodetect as this never worked for me.
   b. enter instantclient.
   c. press Enter to continue.
3. At this point it should combine and install the oci8.so

I noticed one weird thing on my box. I got a segmentation fault at the end of the install process. I restarted apache (service httpd restart) and things seem to work fine.

Gena01