Extension for Oracle Database

The OCI8 extension lets you access Oracle Database.

Use 'pecl install oci8' to install for PHP 8.2.

Use 'pecl install oci8-3.2.1' to install for PHP 8.1.

Use 'pecl install oci8-3.0.1' to install for PHP 8.0.

Use 'pecl install oci8-2.2.0' to install for PHP 7.

The current OCI8 extension can be linked with Oracle Client libraries from Oracle Database 11.2 or later. (OCI8 3.0 and earlier can be linked with 10g or later). The Oracle Client libraries are in the free Oracle Instant Client from https://www.oracle.com/database/technologies/instant-client.html. They are also included in your database installation.

Oracle's standard cross-version connectivity applies. For example, PHP OCI8 linked with Oracle Client 19c can connect to Oracle Database 11.2 onward. See Oracle's note "Oracle Client / Server Interoperability Support" (ID 207303.1) for details.

License: PHP

Latest releases

Version Release Download
3.3.0 2023-04-20 oci8-3.3.0.tgz
3.2.1 2021-12-12 oci8-3.2.1.tgz
3.2.0 2021-12-11 oci8-3.2.0.tgz
3.0.1 2020-12-21 oci8-3.0.1.tgz
3.0.0 2020-11-26 oci8-3.0.0.tgz
Show all releases


Version Message
3.3.0 This version is for PHP 8.2 only.

Requires Oracle Client libraries from 11.2 or later.
3.2.1 This version is for PHP 8.1 only.

Requires Oracle Client libraries from 11.2 or later.
3.2.0 This version is for PHP 8.1 only.

Added oci8.prefetch_lob_size directive and oci_set_prefetch_lob() function to improve LOB query performance.
3.0.1 This version is for PHP 8 only.

Updated Windows build environment to build with newer Oracle Client libraries. (cmb)
3.0.0 This version is for PHP 8 only.

Deprecated old OCI8 function aliases. (Jens de Nies)

Removed obsolete no-op function oci_internal_debug(). (Jens de Nies)

The OCI-Lob class is now called OCILob for standards compliance.

The OCI-Collection class is now called OCICollection for standards compliance.

Generate arginfo from function stubs. (Jens de Nies)
Show complete changelog