OCI for PHP 安裝 in CENTOS6 x86_64
ORACLE 的 php 支援說明 http://www.oracle.com/technetwork/topics/php/downloads/index.html 需要先安裝 Oracle Database Instant Client http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 下載,他會依據作業系統給你載點,並且要求你登入 oracle (免費註冊) http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 請抓取 basic 及 devel 這兩個檔案 [root@power app]# rpm -ivh oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm [root@power app]# rpm -ivh oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm # 安裝 php-devel 、php-pear 以及 gcc 編譯套件 [root@power app]# yum install php-devel php-pear gcc # 使用 pecl 直接安裝 http://pecl.php.net/package/oci8 ,這是一個 PHP 的元件,會需要編譯所以需要上面兩個 oracle instat client 套件的資料 [root@power app]# pecl install oci8 WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update downloading oci8-2.0.6.tgz ... Starting to download oci8-2.0.6.tgz (189,668 byte...