oracle_cloud_native lets PostgreSQL query Oracle Cloud Autonomous DBs via oracle_fdw.
oracle_cloud_native is a foreign server definition that, when paired with the oracle_fdw extension, allows PostgreSQL to run SQL against Oracle Cloud Autonomous Databases as if the tables were local.
Run CREATE EXTENSION IF NOT EXISTS oracle_fdw;
as a superuser.This installs the FDW required for oracle_cloud_native connections.
Use CREATE SERVER
to register the Oracle Cloud endpoint, then CREATE USER MAPPING
for credentials and IMPORT FOREIGN SCHEMA
to pull tables.
After import, you can SELECT
, JOIN
, and even UPDATE
Oracle-hosted Customers
, Orders
, Products
, and OrderItems
directly from PostgreSQL.
Use oracle_cloud_native when your analytics stack is in PostgreSQL but operational data lives in Oracle Cloud, eliminating ETL delays.
Create read-only roles for reporting, push filters down to Oracle with WHERE
clauses, and monitor EXPLAIN
plans to avoid large data pulls.
Mapping the wrong Oracle service name or forgetting to grant USAGE
on the server causes connection errors.Verify tnsnames
alias and privileges.
Use LIMIT
, index relevant Oracle columns, and increase fetch_size
option to balance network round-trips.
.
Yes. oracle_cloud_native is merely the server definition; oracle_fdw handles the actual connectivity.
INSERT, UPDATE, and DELETE are supported if the Oracle user has privileges and triggers do not block DML.
Store them in CREATE USER MAPPING
; restrict access with REVOKE ALL ON FOREIGN SERVER oracle_cloud_native FROM public;