Skip to content Click to view our Accessibility Policy

Oracle PHP Developer Center

Access Oracle Database with the PHP OCI8 extension or the PDO_OCI Driver. PHP OCI8 and PDO_OCI are part of the PHP open source project. They are maintained by Oracle. The PHP OCI8 extension is the premier interface for working with Oracle Database, bringing high performance and availability features to PHP. It is included in PHP bundles and is also available on PECL to update your OCI8 extension. Oracle's standard cross-version database connectivity allows PHP to connect to multiple versions of Oracle Database. The PDO_OCI interface for PHP's PDO data-abstraction interface is available with PHP bundles.

Deploy PHP in the cloud, or connect to a cloud database

The PHP OCI8 extension and PDO_OCI Driver are cloud ready. Whether PHP is in the cloud or on-premise, you can install PHP OCI8 or PDO_OCI and connect to cloud databases. Follow the normal installation process for the operating system. Cloud specific resources are shown below.

PHP OCI8 Features

  • Open Source
  • Maintained by Oracle
  • SQL and PL/SQL Execution
  • Fetching of large result sets
  • REF CURSORs
  • Implicit Result Sets
  • Large Objects: CLOBs and BLOBs
  • Binding and array binding
  • Transaction Management
  • Inbuilt Connection Pooling
  • Database Resident Connection Pooling (DRCP)
  • External Authentication
  • Row Prefetching
  • Statement Caching
  • Client Result Caching
  • End-to-end tracing
  • Oracle Database High Availability Features
  • Oracle Net Features including Encryption