[ADMIN] Foreign data wrappers for Oracle from Postgresql in RDS environment - Mailing list pgsql-admin

From Garry Chen
Subject [ADMIN] Foreign data wrappers for Oracle from Postgresql in RDS environment
Date
Msg-id AFD36953-296A-4148-AC92-351A434D2EAB@cornell.edu
Whole thread Raw
Responses Re: [ADMIN] Foreign data wrappers for Oracle from Postgresql in RDS environment
Re: [ADMIN] Foreign data wrappers for Oracle from Postgresql in RDS environment
List pgsql-admin

Hi All,

                I am testing a dblink connection from RDS postgresql database to a remote oracle instance but I am getting could not establish connection error.  Where did I do wrong and please help.

 

Thank you very much,

Garry

 

My setup as following:

 

  1. Security groups inbound has an entry for the oracle port and remote IP
  2. Psql statement as following

Create extension dblinnk;

                CREATE SERVER myOradb FOREIGN DATA WRAPPER dblink_fdw OPTIONS (host ‘my remote host IP’, dbname ' myOradb ', port '1521');

               CREATE USER MAPPING FOR PGuser SERVER myOradb OPTIONS (user 'OraUser', password '’mypassword');

               SELECT dblink_connect('myOradb');

 

 

ERROR: could not establish connection

SQL state: 08001

Detail: server closed the connection unexpectedly

                This probably means the server terminated abnormally

                before or while processing the request.

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: [ADMIN] Risks of running Postgres as a Docker container?
Next
From: Tom Lane
Date:
Subject: Re: [ADMIN] Foreign data wrappers for Oracle from Postgresql in RDS environment