From: | Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
---|---|
To: | "Sameer Kumar *EXTERN*" <sameer(dot)kumar(at)ashnik(dot)com>, "PostgreSQL General Discussion Forum" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Oracle to PostgreSQL replication |
Date: | 2014-05-07 07:48:16 |
Message-ID: | A737B7A37273E048B164557ADEF4A58B17CF6E9E@ntex2010i.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Sameer Kumar wrote:
> I need to setup a replication process for continuously replicating changes happening in an Oracle
> Database to a PostgreSQL database.
>
>
> My Oracle Database is version 11.2 and setup as a cluster with RAC
> My Postgres database version is 9.2
>
> Oracle Database is running in Solaris and PostgreSQL is running on RHEL.
>
> Is there any commercial or open source tool available to achieve this?
>
> I was wondering has anyone used foreign data wrapper or
There is no ready-made solution for this from the PostgreSQL side.
You could check with Oracle if they provide something like that
with their "Golden Gate".
What you could do is to have a trigger record all changes to the Oracle
table in a separate log table and regularly run a program that pulls those
changes from the log table and applies them to a PostgreSQL table,
deleting the log entries as it goes.
You could write such a thing as PostgreSQL function using oracle_fdw,
but you need PostgreSQL 9.3 if you want to update Oracle data that way.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Rémi Cura | 2014-05-07 09:16:08 | Re: Re: any psql \copy tricks for default-value columns without source data? |
Previous Message | Albe Laurenz | 2014-05-07 07:37:45 | Re: ERROR: permission denied for database control |