Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connecting to remote Oracle instance using PostgreSQL

1016493Jan 10 2014 — edited Jan 10 2014

Hello,

We are trying to connect to a remote Oracle instance from PosgreSQL using FDW described @ PostgreSQL: Documentation: 9.3: postgres_fdw.

We have oracle client installed on the PostgreSQL machine. We can achieve the remote connection , but with the Oracle IP and port hardcoded.

Problem:

While creating foreign SERVER object we use


CREATE SERVER oracle_server

FOREIGN DATA WRAPPER oracle_fdw

OPTIONS (dbserver 'IP:PORT/ORACLE_DBNAME');

But we do not want to hard code IP and PORT. Is there anyway to do this?

regards

Sameer

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 7 2014
Added on Jan 10 2014
2 comments
274 views