Обсуждение: Dumping Oracle tables into Postgres

Поиск
Список
Период
Сортировка

Dumping Oracle tables into Postgres

От
"Esteban Chiner Sanz"
Дата:
What's the easiest (fastest) way for dumping Oracle tables into Postgres
tables?
Thank you,
           Esteban Chiner

------------------------------------------------------------Esteban Chiner Sanz        mailto (work):
echiner@tissat.esTISSAT




Re: [SQL] Dumping Oracle tables into Postgres

От
Howie
Дата:
On Tue, 24 Aug 1999, Esteban Chiner Sanz wrote:

> What's the easiest (fastest) way for dumping Oracle tables into Postgres
> tables?
> Thank you,

a quickie perl+DBI script solved that for me... ill have to check to see
how portable it is... i know the sid, username, passwd were all
hardcoded...

---
Howie <caffeine@toodarkpark.org>   URL: http://www.toodarkpark.org    
"The distance between insanity and genius is measured only by success."



Re: [SQL] Dumping Oracle tables into Postgres

От
"tjk@tksoft.com"
Дата:
Esteban,

Just one way of doing it, but export the tables
as comma/tab delimited files, or using whatever delimeter is
easy for you, and then use Postgres' copy command to import
the data into a Postgres table(s).

See under COPY in the user documentation for your
options, syntax, etc.. Anyway, the idea is to write
the data into a text file, and then either modify the text file
to contain the copy commands, or do it from a script, or
even do it manually with psql.

Once the data is inside postgres, you can tweak it to
your heart's content.

Troy


>
> On Tue, 24 Aug 1999, Esteban Chiner Sanz wrote:
>
> > What's the easiest (fastest) way for dumping Oracle tables into Postgres
> > tables?
> > Thank you,
>
> a quickie perl+DBI script solved that for me... ill have to check to see
> how portable it is... i know the sid, username, passwd were all
> hardcoded...
>
> ---
> Howie <caffeine@toodarkpark.org>   URL: http://www.toodarkpark.org
> "The distance between insanity and genius is measured only by success."
>
>
> ************
>
>