Oracle support comes from the ezoracle extension: the driver eZOracleDB, the schema handler, console commands and cronjobs. It is a dependency in Exponential's composer.json, so it is in extension/ezoracle after composer install, and the installers activate it for a new Oracle site. Its own README and INSTALL files are the complete reference.
Requirements
- Exponential 6.0.15 or later. Earlier versions do not offer Oracle in the installers.
- Oracle Database 19c or later; 11g and older are not supported.
- The database character set AL32UTF8.
- PHP 8.0 to 8.5 with oci8 (PECL oci8 3.4 for PHP 8.4 and 8.5, 3.2 for 8.1 to 8.3), built against an Oracle client. The Instant Client is enough.
- An Oracle user that may create sessions, tables, views, triggers, sequences and procedures.
With the Instant Client, ORACLE_HOME is not needed. Set LD_LIBRARY_PATH (and TNS_ADMIN for TNS aliases) only when the client is outside the system library path, and then in the PHP-FPM pool and in Velocity's environment as well.
Create the user
The extension prints the SQL for a DBA to run. The - takes the password from ORACLE_NEW_PASSWORD, so it does not appear in the process list; USERS is the tablespace:
ORACLE_NEW_PASSWORD='<a strong password>' php extension/ezoracle/bin/php/ora-grant.php exponential - USERS
The same is available as php bin/php/console ext:ezoracle:ora-grant. For the health and report commands, also grant SELECT_CATALOG_ROLE.
Install
EXP_INSTALL_DB_PASSWORD='<the password>' php bin/php/console exp:install --apply --db=oracle \
--db-host=127.0.0.1 --db-port=1521 --db-name=FREEPDB1 --db-user=exponential
--db-name is the service name; host:port/service is built from it. A full connect string, or @<tns alias>, is used as given. For the kickstarter, set [database_choice] Type=oci8 (oracle is accepted too).
What else to know
- Oracle's schema update files live in the ezoracle extension, not in update/database/.
- Migrations run with transactional data changes only on Oracle, as on MySQL and MariaDB.
- A read-only standby can serve as a read replica.
- The DFS cluster index can run on Oracle 12.1 or newer.
- xne can back up and upgrade Oracle installations.