简体   繁体   English

如何将 PostgreSQL 数据库连接到 Oracle

[英]How to connect PostgreSQL database to Oracle

I have migrated an oracle database to AWS Aurora PostgreSQL.我已将 oracle 数据库迁移到 AWS Aurora PostgreSQL。 My application is connecting to another upstream application on Oracle database on AWS RDS.我的应用程序正在连接到 AWS RDS 上 Oracle 数据库上的另一个上游应用程序。

I'm generating inventory reports from the upstream application.我正在从上游应用程序生成库存报告。 earlier it was both Oracle databases, so they were using dblink to connect the upstream/downstream databases.之前都是 Oracle 数据库,所以他们使用 dblink 连接上游/下游数据库。

dblink and postgresql_fdw installed and both are connecting to the different postgres databases not to oracle db.安装了 dblink 和 postgresql_fdw 并且两者都连接到不同的 postgres 数据库而不是 oracle db。

My question is how to I connect to Oracle db from postgres.我的问题是如何从 postgres 连接到 Oracle db。

You cannot.你不能。 You limited yourself by choosing a hosted database.您通过选择托管数据库来限制自己。

If you had control over the operating system, you could install oracle_fdw, and it would be simple.如果您可以控制操作系统,则可以安装 oracle_fdw,这很简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM