Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i create postgres to oracle dblink?

How do I create dblink in postgres 9.2 ? I want to be able to use it using @ link in oracle? I am using postgres 9.2 64bit. DBlink is from postgres 9.2 to Oracle 11g.

like image 832
kinkajou Avatar asked Sep 25 '13 06:09

kinkajou


People also ask

How do I create a dblink in PostgreSQL?

Load the dblink extension into PostgreSQL. CREATE EXTENSION dblink; Create a persistent connection to a remote PostgreSQL database using the dblink_connect function specifying a connection name (myconn), database name (postgresql), port (5432), host (hostname), user (username) and password (password).

Does PostgreSQL support dblink?

dblink is a module that supports connections to other PostgreSQL databases from within a database session.

How does dblink work in PostgreSQL?

dblink executes a query (usually a SELECT , but it can be any SQL statement that returns rows) in a remote database. When two text arguments are given, the first one is first looked up as a persistent connection's name; if found, the command is executed on that connection.

Is PostgreSQL compatible with Oracle?

One of the biggest advantages of choosing the EnterpriseDB version of PostgreSQL is its Oracle compatibility. EnterpriseDB helps make migration easier and much quicker because you are able to use the existing queries and applications along with our professional services team, which is well versed with Oracle.


Video Answer


1 Answers

If you need to access postgresql FROM Oracle:

http://dbaspot.wordpress.com/2013/05/29/how-to-access-postgresql-from-oracle-database/

If you need to access Oracle FROM postgresql:

http://pgxn.org/dist/oracle_fdw/

like image 89
Leo Avatar answered Oct 18 '22 18:10

Leo