RE: Data Export from PostGreSQL

From: Jeff Eckermann <jeckermann(at)verio(dot)net>
To: "'martin(dot)chantler(at)convergys(dot)com'" <martin(dot)chantler(at)convergys(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: RE: Data Export from PostGreSQL
Date: 2001-04-26 18:10:31
Message-ID: 08CD1781F85AD4118E0800A0C9B8580B094A4D@NEZU
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I got good results in a test case, just using a standard PostgreSQL dump
file created with INSERT statements (pg_dump -d). All it needed was a
little editing to change some of the data types in the table definition,
e.g. from text and varchar to varchar2 (if your Oracle table is set up, you
won't even have to do that: just do a pg_dump -a -d).
The only other thing I needed to do was edit dates into the form that Oracle
likes: DD-MMM-YY. I believe that this default can be changed though, I just
couldn't find a reference quickly enough to suit.
This approach was necessary because I was testing a development version of
Oracle (the freely downloadable one), which doesn't include the
import/export tools, so I had to use the sqlplus interface. If you have the
import tools, you can just import from a delimited text file, as can be
created using COPY: read the documentation for your Oracle installation.

> -----Original Message-----
> From: martin(dot)chantler(at)convergys(dot)com [SMTP:martin(dot)chantler(at)convergys(dot)com]
> Sent: Thursday, April 26, 2001 10:13 AM
> To: pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] Data Export from PostGreSQL
>
>
> For the purposes of a demo I have to export data from a PostGresSQL system
> to Oracle
> (I know, I know not my choice)
>
> Is there an easy way of dumping all the data in a format Oracle can
> understand?
>
> Any help appreciated,
>
> Thanks,
> Martin C.
>
>
> --
>
> NOTICE: The information contained in this electronic mail transmission is
> intended by Convergys Corporation for the use of the named individual or
> entity to which it is directed and may contain information that is
> privileged or otherwise confidential. If you have received this
> electronic
> mail transmission in error, please delete it from your system without
> copying or forwarding it, and notify the sender of the error by reply
> email
> or by telephone (collect), so that the sender's address records can be
> corrected.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

Browse pgsql-general by date

  From Date Subject
Next Message Ing. Roberto Andrade Fonseca 2001-04-26 18:12:14 Re: random rows
Previous Message Peter Eisentraut 2001-04-26 18:05:05 Re: Struggling to change default data location