マネージドPostgres speaks PostgreSQL
Connect OCIデータベースとPostgreSQL to Excel, Sheets and AI
Oracle Cloud Infrastructure Database with PostgreSQL. No public endpoint exists, which makes the agent the natural fit rather than a workaround.
One connection, every surface
Where your OCI PostgreSQL data can go
Connect OCI PostgreSQL once and the same read-only connection feeds all of these — no second setup, no second copy of the data. 9 of 11 have a step-by-step guide.
OCI PostgreSQL to Excel
Microsoft Excel · Excel add-in
Pull live OCI PostgreSQL results straight into a worksheet and refresh them on demand — desktop Excel, Excel Online, Microsoft 365.
Read the PostgreSQL guideOCI PostgreSQL to Google Sheets
Sheets add-on
Run a saved OCI PostgreSQL query from the sidebar and drop the rows into the sheet. Shared collaborators can refresh it themselves.
Read the PostgreSQL guideOCI PostgreSQL MCP server
Claude, Cursor and MCP clients
Give an AI assistant read-only access to OCI PostgreSQL with the schema it needs to write correct SQL — no credentials in the chat.
Read the PostgreSQL guideOCI PostgreSQL REST API
HTTP endpoint
Publish a OCI PostgreSQL query as an authenticated JSON endpoint any application can call, with an OpenAPI 3.1 spec and ready-made Postman, Insomnia and Hoppscotch collections. No database port is opened.
Read the PostgreSQL guideOCI PostgreSQL to Airtable
Automation platform
Sync OCI PostgreSQL rows into an Airtable base on a schedule, or fetch them inside an Airtable automation script.
Read the PostgreSQL guideOCI PostgreSQL to Baserow
Automation platform
Feed a Baserow table from OCI PostgreSQL over the REST endpoint — self-hosted or Baserow cloud.
Read the PostgreSQL guideOCI PostgreSQL to SeaTable
Automation platform
Keep a SeaTable base current with OCI PostgreSQL data without exporting a file or exposing the database.
Read the PostgreSQL guideOCI PostgreSQL to Smartsheet
Automation platform
Push OCI PostgreSQL results into a Smartsheet grid so plans and reports read from the source system, not last week's export.
Read the PostgreSQL guideOCI PostgreSQL to Anvil
Anvil Works · App platform
Back an Anvil Python app with OCI PostgreSQL through the REST endpoint instead of embedding database credentials in the app.
Read the PostgreSQL guideOCI PostgreSQL to Power BI
Power Query M
Paste the generated Power Query M into the Power BI Advanced Editor and the report reads live OCI PostgreSQL results over HTTPS — no ODBC driver, no database port opened.
How Power BI works no OCI PostgreSQL walkthrough written yetOCI PostgreSQL alerts and reports
Slack · Discord · Email · Webhook
Put a OCI PostgreSQL query on a schedule and have the rows delivered to Slack, Discord, email or a signed webhook — or hold the message until a row count, threshold or percentage change crosses the line you set.
How alerts and reports work no OCI PostgreSQL walkthrough written yet仕組み
5 steps, no inbound firewall change
Install the Network Agent on an OCI Compute instance in the same VCN and subnet as the DB system. This is the whole trick, and it is a normal Compute instance doing normal outbound traffic.
In the OCI console open the DB system and copy the private endpoint — an IP or an FQDN that resolves inside the VCN.
Enter it as the host, with the port, database and username. Database postgres is prefilled; the username is whatever you created with the DB system.
Leave Use SSL on unless your DB system has TLS disabled, then run the test.
Save, and read it from Microsoft Excel, Google Sheets, Power BI, MCP or REST. The private database is now reachable from a spreadsheet without ever having been exposed.
Feature deep-dive
What OCI PostgreSQL gives you
There is no public endpoint, and that turns out to be the easy case
Normally a private database is the awkward one. Here it is the opposite, because the agent was already built for exactly this shape.
- OCI Database with PostgreSQL is VCN-private by design. There is no public hostname to enable and no setting that would give you one.
- So any tool that connects inward from its own cloud cannot reach it, and the usual workarounds — a bastion host, a public subnet, a VPN back to the office — all mean widening something.
- The agent does not connect inward. Put it on a Compute instance in the same VCN and it is simply a client on the private network, then it opens one outbound connection to Query Streams for everything else. Nothing about the VCN changes.
- That outbound connection is the only route in or out, and no inbound security-list rule is needed to create it. The database stays exactly as private as it was before you connected it to a spreadsheet.
Branding rides the saved connection, because a private IP looks like any other
A small consequence of being private that is worth explaining, since it makes this card behave slightly differently from the rest.
- Every other hosted card here recognises its provider from the hostname — .neon.tech, .render.com, .aivencloud.com. There is no OCI equivalent, because your endpoint is a private address inside your own network and could be anything.
- So this preset is identified by having chosen the card, rather than by the address. Picking it is what records that this is OCI.
- Nothing about the connection depends on that; it is the badge and the branded defaults, not the wire protocol. Underneath it is PostgreSQL and the agent carries the Npgsql driver.
- It does mean the card is worth choosing over generic PostgreSQL even though both would connect. Heroku is the only other preset in the same position, and for the same reason.
Encryption follows the checkbox, and the private network is why
Most managed Postgres cards here say the agent forces TLS whatever the checkbox says. This one does not, deliberately.
- The SSL checkbox is on by default, and left on the connection is encrypted. That is the normal path and needs no attention.
- The agent does not override it, because a VCN-private DB system with TLS switched off is a legitimate configuration and forcing encryption would break a connection that was working. Traffic on a private subnet never crosses the public internet.
- So the instruction is simply: leave it on unless your DB system has TLS disabled, in which case clear it.
- When encryption is on, the certificate chain is not verified. Read it as protection against anyone reading the traffic in transit, rather than as proof of which server answered.
- Everything the agent runs is read-only, credentials stay on the Compute instance you installed it on, and Query Streams keeps no copy of your data.
-- Ordinary Postgres, read-only, from inside the VCN\nSELECT c.name,\n COUNT(o.id) AS orders,\n SUM(o.amount) AS revenue\nFROM public.customers AS c\nJOIN public.orders AS o ON o.customer_id = c.id\nWHERE o.placed_at >= now() - interval '30 days'\nGROUP BY c.name\nORDER BY revenue DESC;
Shared by every database connector
True of every database connector
- 発信専用 — the agent opens one encrypted connection out to Query Streams. No inbound port to forward, no VPN, no IP allowlist, nothing about your database exposed to the internet.
- Credentials stay put — the database username and password live on the machine you installed the agent on. Query Streams never receives them and cannot reach your database on its own.
- 読み取り専用、強制 — one statement at a time, SELECT and friends only. A write is rejected on your own machine before it is ever sent to the server, rather than relying on a permission somebody remembered to set.
- Deploy as many agents as you like — one per site, region or cloud. Every data source they can see arrives in a single dropdown, so nobody has to know which agent hosts what.
What you get once a query is saved
- Share the capability, not the SQL — a colleague or an outside partner can run your query and change its filters without ever seeing the statement behind it.
- Filters from either direction — declare them yourself as @variables, or let the connector spot the literal values already sitting in your WHERE clause and offer those as dropdowns.
- Read it from anywhere — Microsoft Excel, Google Sheets, Power BI, the REST API, AI assistants over MCP, the Query Builder and Nova all read the same saved query.
- Run several at once — five saved queries into five worksheet tabs, streamed concurrently, however large the results.
- Join it to anything else you have connected — another database, a business API, or a folder of files, in one read-only statement.
Cross-source SQL
Join OCI PostgreSQL to the rest of your data
One statement can span OCI PostgreSQL and your other connections at once. Each source runs only the part it can, streams the result back, and the join happens centrally — the sources never talk to each other and nothing is copied anywhere.
3 connections · 3 agents
One statement
-- nothing copied, nothing merged, nothing scheduled
セレクト c.region, COUNT(*) AS orders, SUM(i.amount_due) AS invoiced
フロム oci_core.public.orders1 f
ジョイン erp_sql.dbo.customers2 c ON c.id = f.customer_id
ジョイン 請求する.stripe.invoices3 i ON i.customer = c.stripe_id
GROUP BY c.region
ORDER BY invoiced DESC;
The three parts are connection, schema and table — and the connection name is whatever you called it. Illustrative columns; your tables will be your tables. Read-only applies to every piece: SELECT, WITH and EXPLAIN only, with a ceiling on how much any one source may hand over for a single query. フェデレーションクエリの仕組み
Connection details
What OCI PostgreSQL needs
- Host
- The DB system's private endpoint — an IP or FQDN that resolves inside your VCN. There is no public name
- ポート
- 5432
- Driver
- Npgsql, carried by the agent — nothing to install at the OCI end
- Agent placement
- An OCI Compute instance in the same VCN and subnet. No bastion and no public exposure are needed
- Defaults
- Database postgres is prefilled. The username is the one you created with the DB system
- TLS
- Follows the SSL checkbox, which is on by default. Not forced by the agent, because a VCN-private system may legitimately have TLS off. Encrypted when on; the certificate chain is not verified
- Pooling
- None. The agent applies no pooler adaptations for OCI
- Identified by
- Choosing the card, not the hostname — a private address carries no provider signal
- Saved as
- PostgreSQL, with OCI kept as a badge
- Default schema
- public, which is what a federated reference carries
This is the connector where the architecture argument stops being a security talking point and becomes the only thing that works. Every other page here can say the agent needs no inbound firewall rule, and it is true and it is nice. On OCI Database with PostgreSQL there is no inbound rule available to ask for, because there is no public endpoint to point it at. A tool that connects from its own cloud to yours simply cannot reach this database; one that runs inside your VCN and dials out can.
The practical shape is unglamorous and that is the point: a small Compute instance in the right subnet, the agent installed on it, and the private endpoint typed in. From there the database appears in Microsoft Excel, Google Sheets, Power BI, an MCP client and a REST endpoint, with read-only access and filters you control, and the VCN is configured exactly as it was.
For a cross-source query OCI is ordinary Postgres. A connection you called oci_core is written oci_core.public.orders, and it joins to a folder of CSVs, a cloud warehouse or a billing API in one read-only statement — which is often precisely the point of putting a spreadsheet in front of a database that nothing else can see.
Vendor documentation: www.oracle.com
FAQ
Questions about OCI Database with PostgreSQL
Which tools can read OCI Database with PostgreSQL data through Query Streams?
All of them, from one connection: Excel, Google Sheets, MCP, REST API, Airtable, Baserow, SeaTable, Smartsheet, Anvil, Power BI, scheduled alerts and reports. Connect the database once and every surface reads the same read-only connection — there is no per-tool setup and no second copy of the data.
Do I have to open a firewall port to my OCI Database with PostgreSQL database?
No. The Query Streams Network Agent runs inside your network and opens a single outbound encrypted connection. Nothing listens for inbound traffic, no VPN is required, and the database keeps its existing firewall rules.
Can Query Streams change data in OCI Database with PostgreSQL?
No. The agent enforces read-only at the point of execution — one statement at a time, SELECT and friends only. Credentials stay on the agent and are never sent to Query Streams.
What does Query Streams need to connect to OCI Database with PostgreSQL?
A reachable host, a role and its password — the agent carries the driver, so nothing is installed on the database. Host: The DB system's private endpoint — an IP or FQDN that resolves inside your VCN. There is no public name. Port: 5432. Driver: Npgsql, carried by the agent — nothing to install at the OCI end. Agent placement: An OCI Compute instance in the same VCN and subnet. No bastion and no public exposure are needed.
Can I join OCI Database with PostgreSQL to another database in the same query?
Yes — that is a federated query. One statement can reference OCI Database with PostgreSQL and your other connections at once, written as connection.schema.table. Each source runs only the part it can and streams the result back; the join happens centrally, so the sources never connect to each other and nothing is copied or scheduled. Read-only applies to every piece — SELECT, WITH and EXPLAIN only — and there is a ceiling on how much any one source may hand over for a single query. Federated queries are a plan feature; the federated queries page carries the current source and size limits.
Is connecting OCI Database with PostgreSQL different from connecting PostgreSQL?
Only the connection string. OCI Database with PostgreSQL speaks the PostgreSQL wire protocol, so filters, scheduling, sharing, the Excel and Google Sheets add-ons and the MCP server all behave identically. The OCI PostgreSQL card pre-fills the host, port and SSL settings that provider expects.
Is there a OCI PostgreSQL to Excel guide?
Yes — it is the PostgreSQL guide, and it is correct for OCI Database with PostgreSQL as written. OCI PostgreSQL speaks the PostgreSQL wire protocol, so OCI PostgreSQL to Excel, OCI PostgreSQL to Google Sheets and every other destination follow the same steps. The only OCI PostgreSQL-specific part is the connection string, and the OCI PostgreSQL card fills that in for you.
Put OCI PostgreSQL where the work happens
Install the agent, point it at your database, and pick a destination.
読み取り専用 発信専用 Credentials stay on the agent

