Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2tkr-007BHD-OK for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2024 14:19:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s2tkp-009uDs-8g for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2024 14:19:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2tko-009uDi-Sh for pgsql-general@lists.postgresql.org; Fri, 03 May 2024 14:19:15 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s2tkn-001LyX-2G for pgsql-general@lists.postgresql.org; Fri, 03 May 2024 14:19:15 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a51addddbd4so1164874066b.0 for ; Fri, 03 May 2024 07:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714745952; x=1715350752; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jhyEJZpbODil15HSA44x9RQ1Q84GXgWcxWngnqgZ1+A=; b=dlT7RM2wIQKtkmZhNpqe7zT4MkOD4zfasEOUJ+kaC3+RN/gYik+PlN2BjY26tND+8P zUEl8tFUqXHhPvQ9Gf+wwbXwpulYapHS4pWWFhJ+CZN5MKlOeFQJ1UGS+6FAZKuDQpBl wduhfjftHCJrVUEneFwIgjMqb8oOD7kfheYOXng3GQGDmmjjcScoG0SCsCumYDXDBQHF WtJnBoZP1Cs9bAF7QM4+9MsbRUsObbcp/kR6c43zuRukx2ym3sfWR/3PufrapJUMm6KV Wkc4Yv6oGdASiw3rr/DhP9gfJlL4UppLs8OK74nO9zQeUBiZQGIlkFoJygdr/KCLy+u6 5mLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714745952; x=1715350752; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jhyEJZpbODil15HSA44x9RQ1Q84GXgWcxWngnqgZ1+A=; b=aCNvAWg8z/2/TNdgRwKx3GWXBoTocL9hGQiEZgpKT8+5b47ucUmpH4XjiWhZ0HH1CN RKMyW7UayGhZpuwtVroY0D0VNPfMkMqUSTsp3sXB0cBM5adT2kp3DGNL5B6ae7Nr3idL 3nKaSGE7Lo43kYp7r/lgD1az4gR9P/mfuluzK6RunvHsQ+z+qQMzof7AWcZ8nx5iKDx6 prp/Tlxf/N5PJBadTGYkAyX+DINoH19h2ENmkGDuI6cws5IW3qBs0aNCybCPEzvfOYco mS6c1Iy8xWaItScb5bDmS3M1E6EQQx1kgbPD0RRG4rt4U6aU2o4f7XZPfjZVetfYSU3a EC2w== X-Forwarded-Encrypted: i=1; AJvYcCWx6+k2Vmo0UJ4xG/WYQ8hcsN47OBVicyA3OkU5K7gDRjz2ornUcU3OAxSY58NQt0/Fh4LVILl7PHkzZCyEAx2oQYB57pr62j2W9gXfQbhu9NUJ X-Gm-Message-State: AOJu0YxdQp/I+/PS853GCw4q12sKqhgstfU9bxNrsZurUi7R2W/BVCOd 16Jl3XXTq6KfbrfPmPM+xIXkoBvdcMzTEdqy8PUzcJOchdDzWvn0PlIX5ImnYAJ9uTVhK8wvYQa YFzjnrPO4jgeOeIzQE12HogrZyhg= X-Google-Smtp-Source: AGHT+IE2wgNkhcq/Ff8anObFefsGYk4U2WLywmGsO50MAeuyeRFjNdfQt0fboaAYJXhtX2O6Y1KWUEfSf4IebeJhlQg= X-Received: by 2002:a17:906:6b06:b0:a55:b7b2:2d42 with SMTP id q6-20020a1709066b0600b00a55b7b22d42mr1598692ejr.24.1714745951755; Fri, 03 May 2024 07:19:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Sharma Date: Fri, 3 May 2024 10:19:00 -0400 Message-ID: Subject: Re: Ora2pg Delta Migration: Oracle to PostgreSQL To: Avinash Vallarapu Cc: Muhammad Ikram , Ron Johnson , PostgreSQL General Content-Type: multipart/alternative; boundary="00000000000055aa7e06178d6725" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000055aa7e06178d6725 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Avinash. Appriciate the help!! Regards Amit On Fri, May 3, 2024 at 5:38=E2=80=AFAM Avinash Vallarapu < avinash.vallarapu@gmail.com> wrote: > Hi, > > Has anyone tried delta/incremental data migration for Oracle to PostgreSQ= L >> using Ora2pg? Or what are the best options to run delta migration for >> Oracle to PostgreSQL? > > > There are a few ways of dealing with it when using Ora2Pg. > > *Option 1 : *Ora2Pg configuration file allows us to pass the > conditions(predicates) to be applied to a table while migrating the data > from a table. So, if there is a way to filter the data since the last ful= l > load, you can pass the condition to the configuration file, for each tabl= e. > This is some work for sure but it works great if you are able to identify > those conditions such as creation_date or last_updated_date, let's say. > > *Option2 :* Ora2Pg is currently CDC ready. What this means is that, > Ora2Pg can provide the SCN at which the table copy has been initiated. > Technically, we provide the SCN to the CDC tools or custom CDC techniques > to continue replication since that SCN. > > *Option 2.1 :* Leverage Debezium, an Open Source solution to perform > continuous replication from Oracle to PostgreSQL from the SCN produced by > Ora2Pg for that table. > > So, it is all about Ora2Pg + Debezium > > It might be initially challenging, but you will get there. > > Regards, > Avi Vallarapu, > CEO, > HexaCluster Corp. > > > > > > > On Fri, May 3, 2024 at 3:25=E2=80=AFAM Muhammad Ikram = wrote: > >> Hi, >> >> Not related to Ora2PG but in the past I have used the EDB Migration >> toolkit for such scenarios. Filterprops option can help in specifying >> filter (where clause). >> >> Regards, >> Ikram >> >> >> On Fri, May 3, 2024 at 8:12=E2=80=AFAM Ron Johnson >> wrote: >> >>> On Thu, May 2, 2024 at 8:28=E2=80=AFPM Amit Sharma wrote: >>> >>>> Hello, >>>> >>>> Has anyone tried delta/incremental data migration for Oracle to >>>> PostgreSQL using Ora2pg? Or what are the best options to run delta >>>> migration for Oracle to PostgreSQL? >>>> >>> >>> What do the ora2pg docs say about whether or not that feature is >>> implemented? (It wasn't when I last used it in 2022.) >>> >>> >> >> >> -- >> Muhammad Ikram >> >> > --00000000000055aa7e06178d6725 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks=C2=A0Avinash. Appriciate the help!!

<= div>Regards
Amit


On Fri, May 3, 2024 at 5:38= =E2=80=AFAM Avinash Vallarapu <avinash.vallarapu@gmail.com> wrote:
=
Hi,

Has anyone tried delta/incremental data migration for Oracle to Postgr= eSQL using Ora2pg? Or what are the best options to run delta migration for = Oracle to PostgreSQL?

There are a few ways = of dealing with it when using Ora2Pg.

Option 1 = : Ora2Pg configuration file allows us to pass the conditions(predicates= ) to be=C2=A0applied to a table while migrating the data from a table. So, = if there is a way to filter the data since the last full load, you can pass= the condition to the configuration file, for each table. This is some work= for sure but it works great if you are able to identify those conditions s= uch=C2=A0as creation_date or last_updated_date, let's say.
Option2 : Ora2Pg is currently CDC ready. What this mean= s is that, Ora2Pg can provide the SCN at which the table copy has been init= iated. Technically, we provide the SCN to the CDC tools or custom CDC techn= iques to continue replication since that SCN.

Option 2.1 : Leverage Debezium, an Open Source solution to perfor= m continuous replication from Oracle to PostgreSQL from the SCN produced by= Ora2Pg for that table.

So, it is all about Ora2Pg= =C2=A0+ Debezium

It might be initially challenging= , but you will get there.=C2=A0

Regards,
Avi Vallarapu,
CEO,=C2=A0
HexaCluster Corp.=C2=A0


=C2=A0



On Fri, May 3, 2024 at 3:25=E2=80=AFAM Muhammad Ikram <mmikram@gmail.com> wrote:
Hi,

Not relate= d to Ora2PG but in the past I have used the EDB Migration toolkit for such = scenarios. Filterprops option can help in specifying filter (where clause).=

Regards,
Ikram


On F= ri, May 3, 2024 at 8:12=E2=80=AFAM Ron Johnson <ronljohnsonjr@gmail.com> wrote:=
On Thu, May 2,= 2024 at 8:28=E2=80=AFPM Amit Sharma <amitpgsql@gmail.com> wrote:
Hello,

<= div>Has anyone tried delta/incremental data migration for Oracle to Postgre= SQL using Ora2pg? Or what are the best options to run delta migration for O= racle to PostgreSQL?

What do th= e ora2pg docs say about whether or not that feature is implemented?=C2=A0 (= It wasn't when I last used it in 2022.)
=C2=A0


--
Muhammad Ikram


--00000000000055aa7e06178d6725--