[Gena01 Logo]
May 17, 2024, 06:38:36 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Tags Login Register  
Pages: [1]
Author Topic: OCI 1.2.5 or upgrading Oracle Instant Client  (Read 46288 times)
0 Members and 1 Guest are viewing this topic.
Sr. Member
Posts: 423

« 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.

Tags: PHP Oracle Pecl Oracle Instant Client 
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines | Sitemap Valid XHTML 1.0! Valid CSS!