pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Gainty <mgainty@hotmail.com>
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
To: pgsql general <pgsql-general@postgresql.org>
Subject: Re: PostgreSQL to Oracle
Date: Fri, 9 Mar 2007 13:40:00 -0500
Message-ID: <BAY133-DAV55245A0DD6C98B88BE8D6AE780@phx.gbl> (raw)
References: <55c095e90703090954m74e2b06arf73e3037f25f5c18@mail.gmail.com>

Ezequias-

first you will need to pg_dump everything.. schema..tables..functions then your Data into a text format which has no whitespace characters
There are 2 bulk loaders available from Oracle
1)Brand new DataPump
2)Tried and true sqlldr (which I recommend)
I would highly recommend reading and understanding the Extract / Transform /Load document located at
http://www.oracle.com/technology/obe/obe10gdb/bidw/etl2/etl2.htm
Also triple check the extents you are allocating for the tablespace for tables to be inserted into that tablespace will guaranteed to be sufficient size
(If you dont know the size of a block ask..as this isnt something you can fix later..unless you want to spend a 3day weekend doing a rollback..)
Become familiar with LOAD DATA INFILE command links available from either Stanford (or Oracle)
http://infolab.stanford.edu/~ullman/fcdb/oracle/or-load.html
Be mindful that Oracle DB is used by ALL of the major players
so inserting nulls which could violate any constraint (constraints being unique or foreign key) are forbidden
In fact inserting nulls into any column is discouraged as it may violate the relationship of dependent table records to primary table
If you have time and or diskspace constraint you may want to look at Direct Path Loading which creates preformatted data blocks
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c21dlins.htm
Caveat emptor with this option as the logger is turned off and if there are any burps along the way you wont know which record it burped on

Feel free to ping me if you have any questions/

Saludos Cordiales,
Martin --
--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
  ----- Original Message ----- 
  From: Ezequias Rodrigues da Rocha 
  To: pgsql general ; PostgreSQL 
  Sent: Friday, March 09, 2007 12:54 PM
  Subject: [GENERAL] PostgreSQL to Oracle


  Hi list,

  Is it a simple action to convert a database from PostgreSQL to Oracle ?

  I mean a simple database with 

  33 tables
  8 functions
  31 sequencies
  2 triggers
  1 type
  3 views

  Has someone any idea ? 

  -- 
  Ezequias Rodrigues da Rocha
  http://ezequiasrocha.blogspot.com/
  use Mozilla Firefox:http://br.mozdev.org/firefox/ 

view thread (10+ messages)  latest in thread

Message-ID: <BAY133-DAV55245A0DD6C98B88BE8D6AE780@phx.gbl>
Permalink:  ../BAY133-DAV55245A0DD6C98B88BE8D6AE780@phx.gbl/
Also on:    postgresql.org/message-id/BAY133-DAV55245A0DD6C98B88BE8D6AE780@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mgainty@hotmail.com, ezequias.rocha@gmail.com, pgsql-general@postgresql.org
  Subject: Re: PostgreSQL to Oracle
  In-Reply-To: <BAY133-DAV55245A0DD6C98B88BE8D6AE780@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox