Re: RE : Oracle to PostgreSQL

Lists: pgsql-adminpgsql-hackers
From: "Marco Roda" <MarcoRoda(at)amdosoft(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Oracle to PostgreSQL
Date: 2003-08-06 11:48:18
Message-ID: 002201c35c10$a12cdd50$0301a8c0@amdosoft.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin pgsql-hackers

Hi,

I need to port data from an Oracle 8.0 base to PostgreSQL 7.2.
I have scripts to create the base on Oracle and PostgreSQL (it is about 40
tables), but I need to port a great amount of data to PostgreSQL.
Can anybody help me?

Thanks,
Marco Roda

Attachment Content-Type Size
winmail.dat application/ms-tnef 1.6 KB

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Marco Roda <MarcoRoda(at)amdosoft(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Oracle to PostgreSQL
Date: 2003-08-06 15:45:37
Message-ID: Pine.LNX.4.33.0308060942060.15751-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin pgsql-hackers

On Wed, 6 Aug 2003, Marco Roda wrote:

> Hi,
>
> I need to port data from an Oracle 8.0 base to PostgreSQL 7.2.
> I have scripts to create the base on Oracle and PostgreSQL (it is about 40
> tables), but I need to port a great amount of data to PostgreSQL.
> Can anybody help me?

There's a script in the contrib directory called something like ora2pg
that's been helpful to some folks.

EMS makes a migration program http://www.ems-hitech.com/pgsqlutils that
might help too. Haven't used it, but it's only $39 and I think they have
trial versions available.


From: "Bruno BAGUETTE" <pgsql-ml(at)baguette(dot)net>
To: <pgsql-admin(at)postgresql(dot)org>, "'Marco Roda'" <MarcoRoda(at)amdosoft(dot)com>
Subject: RE : Oracle to PostgreSQL
Date: 2003-08-07 08:25:43
Message-ID: !~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAATBuXKOMvlkWzD3KJN6FWLMKAAAAQAAAAzJ6IV0PNUESsI0inMEF0rQEAAAAA@baguette.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin pgsql-hackers

"Marco Roda" <MarcoRoda(at)amdosoft(dot)com> wrote ..
> Hi,
>
> I need to port data from an Oracle 8.0 base to PostgreSQL 7.2. I have
> scripts to create the base on Oracle and PostgreSQL (it is about 40
> tables), but I need to port a great amount of data to PostgreSQL.
> Can anybody help me?

I never see any documents about migrating from Oracle8 to PostgreSQL,
but I've already done this kind of migration, here's my warrior's way :

- Make a SQL dump of the tables (structure + constraints + sequences +
data), and try to add this dump file into a PostgreSQL database (via
psql). You will probably need to do several search and replaces in the
SQL code in order to get it PostgreSQL compliant. But as PostgreSQL try
to follow the SQL norm, it shouldn't be very difficult.

- The most difficult step is to migrate the stored procedures. The
biggest work is to put PL/SQL packages into PL/PGSQL functions
(Unfortunately, PostgreSQL don't manages PL/PGSQL packages, that's still
in the TODO list). So your packages functions contacts.add() (for
example) will have to be renamed to contacts_add(); and you will also
have to patch all the clients that have to access this database.

This migration may be quite long, so leave the Oracle database running.
Keep a note of all the changes you've done to have your SQL dump valid
for PostgreSQL, and make a script (in Perl, PHP, or shell,...). When
everything is OK, stop writes to the Oracle DB (allows only select
queries), do the SQL dump (with the latests datas), execute your script
on the sql DUMP, do the migration and switch the users to the new
database. (Be sure to have the new clients ready before doing the big
jump).

The job of migrating from Oracle to PostgreSQL is a serious job (and
sometimes difficult) but the migration wins are really interesting.

I Hope this will help and that you will understand my english. :-)

Regards,

--
---------------------------------------
Bruno BAGUETTE - pgsql-ml(at)baguette(dot)net


From: Renney Thomas <renneyt(at)yahoo(dot)com>
To:
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: RE : Oracle to PostgreSQL
Date: 2003-08-07 17:42:38
Message-ID: 3F328F8E.3020207@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin pgsql-hackers

What are the legal implications of copying Oracle's own PL/SQL
procedures code and porting them to PgSQL as you suggested?

Bruno BAGUETTE wrote:

>"Marco Roda" <MarcoRoda(at)amdosoft(dot)com> wrote ..
>
>
>>Hi,
>>
>>I need to port data from an Oracle 8.0 base to PostgreSQL 7.2. I have
>>scripts to create the base on Oracle and PostgreSQL (it is about 40
>>tables), but I need to port a great amount of data to PostgreSQL.
>>Can anybody help me?
>>
>>
>
>I never see any documents about migrating from Oracle8 to PostgreSQL,
>but I've already done this kind of migration, here's my warrior's way :
>
>- Make a SQL dump of the tables (structure + constraints + sequences +
>data), and try to add this dump file into a PostgreSQL database (via
>psql). You will probably need to do several search and replaces in the
>SQL code in order to get it PostgreSQL compliant. But as PostgreSQL try
>to follow the SQL norm, it shouldn't be very difficult.
>
>- The most difficult step is to migrate the stored procedures. The
>biggest work is to put PL/SQL packages into PL/PGSQL functions
>(Unfortunately, PostgreSQL don't manages PL/PGSQL packages, that's still
>in the TODO list). So your packages functions contacts.add() (for
>example) will have to be renamed to contacts_add(); and you will also
>have to patch all the clients that have to access this database.
>
>This migration may be quite long, so leave the Oracle database running.
>Keep a note of all the changes you've done to have your SQL dump valid
>for PostgreSQL, and make a script (in Perl, PHP, or shell,...). When
>everything is OK, stop writes to the Oracle DB (allows only select
>queries), do the SQL dump (with the latests datas), execute your script
>on the sql DUMP, do the migration and switch the users to the new
>database. (Be sure to have the new clients ready before doing the big
>jump).
>
>The job of migrating from Oracle to PostgreSQL is a serious job (and
>sometimes difficult) but the migration wins are really interesting.
>
>I Hope this will help and that you will understand my english. :-)
>
>Regards,
>
>
>


From: Rafal Kedziorski <rafcio(at)polonium(dot)de>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: RE : Oracle to PostgreSQL
Date: 2003-08-07 20:21:28
Message-ID: 5.2.0.9.0.20030807222101.01a4e1b0@mail.polonium.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin pgsql-hackers

hi,

At 10:25 07.08.2003 +0200, Bruno BAGUETTE wrote:
>"Marco Roda" <MarcoRoda(at)amdosoft(dot)com> wrote ..
> > Hi,
> >
> > I need to port data from an Oracle 8.0 base to PostgreSQL 7.2. I have
> > scripts to create the base on Oracle and PostgreSQL (it is about 40
> > tables), but I need to port a great amount of data to PostgreSQL.
> > Can anybody help me?
>
>I never see any documents about migrating from Oracle8 to PostgreSQL,
>but I've already done this kind of migration, here's my warrior's way :
>
>- Make a SQL dump of the tables (structure + constraints + sequences +
>data), and try to add this dump file into a PostgreSQL database (via
>psql). You will probably need to do several search and replaces in the
>SQL code in order to get it PostgreSQL compliant. But as PostgreSQL try
>to follow the SQL norm, it shouldn't be very difficult.

I have good experiences with:

http://www.samse.fr/GPL/ora2pg/ora2pg.html

Rafal


From: Kris Kiger <kris(at)musicrebellion(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Postgres-R
Date: 2003-10-08 16:15:04
Message-ID: 3F843808.80405@musicrebellion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin pgsql-hackers

Does anyone know the status of the Postgres-R project and when it may
fall in with a current PostgreSQL release? Thanks for the help

Kris