Re: Oracle Package equivalent in Postgres

From: JC JC <shekharjchandra(at)hotmail(dot)co(dot)uk>
To: MichaelDBA <MichaelDBA(at)sqlexec(dot)com>, Firthouse banu <penguinsfairy(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Oracle Package equivalent in Postgres
Date: 2020-08-06 14:03:24
Message-ID: DB6PR0902MB22166140EF120573AD50140CE5480@DB6PR0902MB2216.eurprd09.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Good info Michael,

I used ora2pg tool to migrate Oracle DB objects (particularly tables, constraints, sequences) into Postgres.
The TYPE attribute of ora2pg will tell if the DDL need to migrate or the Data or any other export type.
Though I have not explored any other tools, I found ora2pg is very efficient and this can be automated either using windows batch script or unix shell script.

Regards
jc

________________________________
From: MichaelDBA <MichaelDBA(at)sqlexec(dot)com>
Sent: 06 August 2020 14:34
To: Firthouse banu <penguinsfairy(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Oracle Package equivalent in Postgres

Hi,

ora2pg is a standard way to migrate stuff from ORA to PG. It also will
attempt to translate packages/procs/funcs from PL/SQL to PL/pgSQL. For
packages, the output can be separate files with
package_name_func/proc_name, or you can group packages into separate
output directories where you can subsequently load them into separate PG
schemas to distinguish one ORA package from another.

Regards,
Michael Vitale

Firthouse banu wrote on 8/6/2020 8:22 AM:
> Hi Postgres master minds,
>
> Am currently working on migrating databases from oracle to Postgres.
> Am going to work on crons and packages in oracle which needs to be
> converted in Postgres. How to convert package in oracle to Postgres.
> Is there any equivalent in Postgres if not how it works in Postgres.
>
> Eagerly waiting for replies.
>
> Thanks
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ravi Tammineni 2020-08-07 14:49:09 PostgreSQL-11 partition creation issue
Previous Message MichaelDBA 2020-08-06 13:34:05 Re: Oracle Package equivalent in Postgres