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 1soM6m-00AaTq-Ej for pgsql-novice@arkaria.postgresql.org; Wed, 11 Sep 2024 12:06:05 +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 1soM6l-00G7LX-Pd for pgsql-novice@arkaria.postgresql.org; Wed, 11 Sep 2024 12:06:03 +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 1soM6l-00G7L3-ET for pgsql-novice@lists.postgresql.org; Wed, 11 Sep 2024 12:06:03 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1soM6e-000dmq-3H for pgsql-novice@lists.postgresql.org; Wed, 11 Sep 2024 12:06:02 +0000 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2d8fa2ca5b1so4876256a91.3 for ; Wed, 11 Sep 2024 05:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726056355; x=1726661155; 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=3AxqxVgUc4MDgIrAPOcepizWR3hF33nsYnjSfQvpSoI=; b=LaqYupZ1c5LH7MNx6lMX2lC6wEkXP3O8Fx77qGF+Btmxkp0JqvM4IdfFlpc8D4ekGr sobY4bjEY+c4D7SlUNz0g++LaZoytoV5RJsVms5SyI5o1W79ky3w+v0RN/lHoHuCOLuf k0V5s3EfLcBbSvTKmlRsz1Dv1A3c168wQZnCENOzoh7N4XhpbFXnOEsLZi9pa2m6/1gR OJeRAG5NTdBy90s/yTHx5E50lmh7OJRU6gTRdB7xkFxWzKJNwsDyaw2LGfV6/oemJdk3 D7EuYoEb4vi1qb42JG8oEwq7/lkxxPRVhlxoH9VBIf4Q7zhrRJgBrdjOgIp4Qt/oWL6f KQTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726056355; x=1726661155; 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=3AxqxVgUc4MDgIrAPOcepizWR3hF33nsYnjSfQvpSoI=; b=M1/3Pv1DB4hUMkOSqQ07yRcj14TRSCC6xZbwKcx4Dz+9yxSHlAZpXlsmT/vsr3tv6m SVpPwe8zAk24BNUvC77AtzjDHgviluBsxv0epa6Odd3hFQ95+Za7Dh08XpvGP1r5JZGt fqRfPwP1E6sSqhMd9Iiz+4AMkZX2Cgij9TWcyv4yk/Z3U5YStv4jqb+h+N2/a/GdL7bK v6kGlqYCNhQaIp9VKyzWFLae48Died2f9uCg2E/C5tER4SB/VqdwWrt2FD+KDtuAdkpt hCAw7tsLnmCTyBu1jvvwJ2f4tlynzVNuDQwi/uLlfgewNo62Yzw5XOmV6LxwhByReOUm CdaA== X-Gm-Message-State: AOJu0YzPCzjuSR7pcdVHWEwk1C+c6tbCpspeZtbljBDR3hGlEPxhGEBX brL0Gf411ucHIhfATvLjKEMTYLaOtDH8C5O9I5pQ+F9WFyX/REQhLrAYeTsreYgxynU59rv2bXU H07DwjdDlJ9RdZKknEl7/3GZBxHw= X-Google-Smtp-Source: AGHT+IFHCreNLgTRSRzcvhKFbwKqlLjzsBkVw2/qcXqXW8cSLycGo7LUHqgtJUQtTrv11yJus6YwUUaQA1DKQhhcA3Q= X-Received: by 2002:a17:90a:fe82:b0:2d8:27c1:1d4a with SMTP id 98e67ed59e1d1-2dad5051f99mr20529919a91.24.1726056355122; Wed, 11 Sep 2024 05:05:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muhammad Ikram Date: Wed, 11 Sep 2024 17:05:43 +0500 Message-ID: Subject: Re: Oracle -> Pg migration To: Laszlo Forro Cc: "pgsql-novice@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000e8d6000621d6cfc7" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e8d6000621d6cfc7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Could you check the INPUT_FILE parameter in ora2pg config file ? I think you can provide a SQL file instead of live connection. or try ora2pg -i /path/to/your/oracle_export.sql -o output.sql Regards, Muhammad Ikram On Wed, Sep 11, 2024 at 2:27=E2=80=AFPM Laszlo Forro w= rote: > Hi dear community, > We are to dig into the option of migrating an Oracle db to Pg and found > the Ora2Pg. However, that seem to do data migration, requires running > Oracle db. We would like to dump the Oracle object declarations (create > statements in SQL files) and move it to Pg first, no data migrated. > Can you guide us if there is any tool that can support this approach? > Thank you very much! > LF. > --000000000000e8d6000621d6cfc7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

Could you check the INPUT_FILE param= eter in ora2pg config file ? I think you can provide a SQL file instead of = live connection.

or try

o= ra2pg -i /path/to/your/oracle_export.sql -o output.sql


Regards,
Muhammad Ikram



On Wed, Sep 11, 2024 at 2:27=E2=80=AFPM Laszlo Forro <= getforum@gmail.com> wrote:
=
Hi dear community,
We are to dig into the option of migrating = an Oracle db to Pg and found the Ora2Pg. However, that seem to do data migr= ation, requires running Oracle db. We would like to dump the Oracle object = declarations (create statements in SQL files) and move it to Pg first, no d= ata migrated.
Can you guide us if there is any tool that can = support this approach?
Thank you very much!
LF.
--000000000000e8d6000621d6cfc7--