darold / ora2pg

Ora2Pg is a free tool used to migrate an Oracle database to a PostgreSQL compatible schema. It connects your Oracle database, scan it automatically and extracts its structure or data, it then generates SQL scripts that you can load into PostgreSQL.
http://www.ora2pg.com/
GNU General Public License v3.0
1.01k stars 343 forks source link

ora2pg -c ora2pg.conf -t COPY -a tablename not working #1683

Closed 210981 closed 1 year ago

210981 commented 1 year ago

Further updated to the below Post. Shortly question:

do i have to completely delete the Ora2pg and install it again!? or some other softaware running on the computer have prevented this transfer's process.

or Do you know the root cause of that? Thanks Hans

================ Hello Friends,

i have an very strange issue that i have tried to fix in hours but couldn't solve it. Could you please help me this case:

I have installed ora2pg to migrate oracle table to postgres, everything was working fine for several projects before recently i started a new project to migrate tables from oracle to postgres again in the same computer, and i did the same process as the previous projects. But when i copy the data from oracle table to postgres tabe by following command, it doesn't work properly: ora2pg -c ora2pg.conf -t COPY -a tablename no data have been transfered to postgres. it shows: 0/0 tables(100%) end of scanning.

I have tried to fix it, but it didn't work, here are what i did:

ORACLE_DSN dbi:Oracle:host=xxx;sid=xx;port=1521

ORACLE_USER system

ORACLE_PWD xxx

SCHEMA Schemaname

ALLOW TZV_DATA

TYPE TABLE

PG_DSN dbi:Pg:dbname=xxxx;host=xxx;port=5432

PG_USER schemaname

PG_PWD xxx

LOG_ON_ERROR 1

STOP_ON_ERROR 0

could you please recommend me the possible causes of this? it is possible, that perl does't work properly or in this computer has some other software running, which prevent this transfer....?. or something else that I really dont understand what happended

Thank you for you help in advance

darold commented 1 year ago

Your option -a tablename might not correspond to an existing table on Oracle or on PostgreSQL but if you don't have any error message then it doesn't exist on Oracle side.