pecl install oci8

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.

Version 3.3.0 change log

This version is for PHP 8.2 only.

Requires Oracle Client libraries from 11.2 or later.


  • Christopher Jones (lead )
  • Tianfang Yang (lead ) [inactive]
  • Antony Dovgal (lead ) [inactive]
  • Wez Furlong (lead ) [inactive]
  • Andi Gutmans (lead ) [inactive]



Stars: 36505
Issue openned: 816
Downloads: 4263977
20/04/2023 07:43


  • php >=8.1.0
  • pearinstaller >=1.4.0b1
Request a build
Request to the website owner's team the built this extension with this parameters. The result is not guaranteed and can be impossible for many reasons. The extension source code is frequently not upto date with the most recent PHP version.
If you have another code source for this extension, provide it in comment.
Please (or register) to request a build.