Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,150 of 9,150 pages
About the help in other languages
All help pages

Oracle database support

This page is for administrators and database administrators who run an Exponential site on Oracle Database. It is the one page for Oracle that every other database has: the support level, what the server and PHP need…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/6.0/oracle-database.md

On this page

Oracle database support

This page is for administrators and database administrators who run an Exponential site on Oracle Database. It is the one page for Oracle that every other database has: the support level, what the server and PHP need, the settings, an install, the limits and the versions that were tested. The deeper chapters are linked where they say more.

Supported databases (Exponential 6.0.x), in order of preference: 1. SQLite 3 (the default) · 2. PostgreSQL · 3. MongoDB · 4. MariaDB · 5. Oracle · 6. MySQL · 7. Microsoft SQL Server and Azure SQL (more databases from 6.0.15: Choosing a database). Details: Database support.

The driver eZOracleDB, the schema handler eZOracleSchema, console commands (ext:ezoracle:<name>) and cronjobs come with the ezoracle extension. composer.json requires it, so it is in extension/ezoracle of every installation; it is activated only for sites that use Oracle.

Contents

  1. Support level
  2. Requirements
  3. PHP extension
  4. Settings
  5. Installing a site
  6. Limits
  7. Tested versions
  8. Related pages

Support level

Data tablesFull siteDFSMulti-server clusterSetup wizardexp:install / kickstarterxne upgrade tested
yes (Engine=oracle)yesyes, in the kernel (expDFSFileHandlerOracleBackend, Oracle 12.1 and later)yes, with read replicasyes, with oci8--db=oracleyes: one full upgrade of a kickstarted site and an exact rollback

Requirements

  • Oracle Database 19c or later in the character set AL32UTF8. The driver uses STANDARD_HASH and OFFSET/FETCH; 11g and older are not supported.
  • A user that may create sessions, tables, views, triggers, sequences and procedures. php extension/ezoracle/bin/php/ora-grant.php prints the grants for a DBA to run.

The step-by-step preparation is in Oracle setup.

PHP extension

oci8 (PECL), built against an Oracle client; the Instant Client is enough, ORACLE_HOME is not needed with it. oci8 3.4 for PHP 8.4 and 8.5, 3.2 for PHP 8.1 to 8.3, from EPEL, Remi or your vendor. The setup wizard offers Oracle whenever the PHP running it has oci8.

Settings

[DatabaseSettings]
DatabaseImplementation=ezoracle
User=exponential
Password=<the password>
# the connect string: Easy Connect host:port/service_name, a TNS alias or a full descriptor;
# Server and Port are not used by this driver
Database=127.0.0.1:1521/FREEPDB1
Charset=utf-8

[ExtensionSettings]
ActiveExtensions[]=ezoracle

ezoracle.ini [ConnectionSettings] adds persistent connections, Database Resident Connection Pooling (DRCP, so hundreds of PHP workers share a pool of server processes), retries, failover, call timeouts and session tracing; every one is off by default (Oracle connections and tuning). When these settings come from a site extension instead of settings/override/, list that extension before ezoracle in ActiveExtensions[].

Installing a site

export EXP_INSTALL_DB_PASSWORD='<the password>'
php bin/php/console exp:install --db=oracle --db-host=127.0.0.1 --db-user=exponential --db-name=FREEPDB1

A service name in --db-name becomes the Easy Connect string <db-host>:<db-port>/<service>; a value with / or ( is used as it is, and @alias names a TNS alias. In the browser, choose Oracle on the setup wizard's database page; the kickstarter takes Type=oci8 in [database_choice] (console install).

Limits

  • Oracle stores '' as NULL: OracleEmptyStringForNull=enabled returns '' for text columns, and since 6.0.15 a comparison with the empty string is sent as IS NULL / IS NOT NULL.
  • Oracle compares strings case-sensitively: OracleCaseInsensitive=enabled, with linguistic indexes from ext:ezoracle:ci-indexes --create.
  • Oracle sorts NULL after every value in ascending order, where MySQL and SQLite sort it first.
  • The upgrade command has no built-in safety copy for Oracle: back up with expdp or ext:ezoracle:datapump and run the upgrade with --no-backup. xne makes its own verified backup.
  • Exponential 6.0.15 or later is needed for the installers; earlier versions do not offer Oracle there.

Tested versions

Oracle is not in the project's CI for the whole database suite; the DFS cluster backend is tested on Oracle Free 23. The engine parity check and the installs run by hand against Oracle AI Database 26ai Free (23.26) with oci8 3.4.1 and Instant Client 23.26 on PHP 8.5. xne was proven on Oracle once: a full upgrade of a kickstarted site through ezoracle (the kernel's upgrade applied five steps, the health check passed) and an exact rollback of every file and table.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x