Re: [GENERAL] Oracle to PostgreSQL Migration. - Mailing list pgsql-general

From Chris Mair
Subject Re: [GENERAL] Oracle to PostgreSQL Migration.
Date
Msg-id 85c78636081d539aa0cfdd8380c37d52@smtp.hushmail.com
Whole thread Raw
In response to Re: [GENERAL] Oracle to PostgreSQL Migration.  (PAWAN SHARMA <er.pawanshr0963@gmail.com>)
Responses Re: [GENERAL] Oracle to PostgreSQL Migration.  (PAWAN SHARMA <er.pawanshr0963@gmail.com>)
List pgsql-general
> C:\ora2pg>ora2pg -c ora2pg.conf
> [========================>] 2/2 tables (100.0%) end of scanning.
> [>                        ] 0/2 tables (0.0%) end of scanning.
> [========================>] 2/2 tables (100.0%) end of table export.

Looks good so far.
This means you could connect to Oracle DB now.


> DBD::Pg::st execute failed: ERROR:  relation "mytab" does not exist

This is coming from the Postgres side.

In ora2pg.conf go to the section

OUTPUT SECTION (Control output to file or PostgreSQL database)

I suggest you comment out (prefix with #) the part

#PG_DSN         dbi:Pg:dbname=test_db;host=localhost;port=5432
#PG_USER        test
#PG_PWD         test

and just have ora2pg write its ouput to a file by setting OUTPUT like this:

OUTPUT          output.sql

This way you have your oputput for Postgres in a file that you can check out
and try importing step by step. I guess you are running this on some test
data, so the file will be small enough to open it with an editor.
You cap paste piece by piece into a Postgres prompt (psql or pgadmin or whatever
you're using).

You can then see at what point you get an error (and hopefully understand
what's happening).

Bye,
Chris.




pgsql-general by date:

Previous
From: PAWAN SHARMA
Date:
Subject: Re: [GENERAL] Oracle to PostgreSQL Migration.
Next
From: PAWAN SHARMA
Date:
Subject: Re: [GENERAL] Oracle to PostgreSQL Migration.