Before you begin
Install AlloyDB Omni using the RPM orchestrator.Add orafce to your AlloyDB Omni installation
To add the orafce extension to your AlloyDB Omni cluster, follow these steps manually on all the database nodes including read pool nodes in your cluster.
Add the PostgreSQL Yum Repository:
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpmInstall PostgreSQL server and development packages:
sudo dnf install -y "postgresql18-server"Install the Orafce extension:
sudo dnf install -y orafce_18Create required symlinks so the extensions are in the expected paths:
set -e PGVER="18" sudo mkdir -p "/usr/lib/postgresql/${PGVER}/share/extension" for file in /usr/pgsql-${PGVER}/share/extension/*; do target="/usr/lib/postgresql/${PGVER}/share/extension/$(basename "$file")" if [[ ! -e "$target" ]]; then sudo ln -s "$file" "$target" || (echo "Failed to link \"$file\" to \"$target\", exiting." && exit 1) echo "Created extension link for $(basename "$file")" else echo "Target $target already exists." fi done sudo mkdir -p "/usr/lib/postgresql/${PGVER}/lib" for file in /usr/pgsql-${PGVER}/lib/*; do target="/usr/lib/postgresql/${PGVER}/lib/$(basename "$file")" if [[ ! -e "$target" ]]; then sudo ln -s "$file" "$target" || (echo "Failed to link \"$file\" to \"$target\", exiting." && exit 1) echo "Created lib link for $(basename "$file")" else echo "Target $target already exists." fi doneConnect to your database and run the
CREATE EXTENSIONcommand to enable orafce:For instructions on connecting to your instance, see Connect to AlloyDB Omni.
CREATE EXTENSION IF NOT EXISTS ORAFCE;Confirm that orafce is installed and enabled:
SELECT oracle.sysdate();The output is similar to the following:
postgres=# SELECT oracle.sysdate(); sysdate --------------------- 2025-12-12 16:36:30 (1 row)