Re: ora2pg -c ora2pg.conf -t COPY -a tablename not working properly - Mailing list pgsql-general

From Luca Ferrari
Subject Re: ora2pg -c ora2pg.conf -t COPY -a tablename not working properly
Date
Msg-id CAKoxK+4ek79X2Y9SfK+f6NO6pfHLmC7iZJPzFxs+arXmtA0nGw@mail.gmail.com
Whole thread Raw
In response to Re: ora2pg -c ora2pg.conf -t COPY -a tablename not working properly  (duc hiep ha <haduchiep@googlemail.com>)
Responses Re: ora2pg -c ora2pg.conf -t COPY -a tablename not working properly
List pgsql-general
On Fri, Aug 25, 2023 at 5:49 PM duc hiep ha <haduchiep@googlemail.com> wrote:
>
> Hi,
>
> I've just found the root cause! In this command:
> ora2pg -c ora2pg.conf -t COPY -a tablename
> I have created and changed the name of table in postgres. It will not work like that if i don't put replace_table
optionin config file. 

Out of curiosity: you renamed a table in PostgreSQL after the schema
was migrated, therefore you need something like
REPLACE_TABLES old_name:new_name
in ora2pg, right?
That explains also why offline mode seemed to work: ora2pg was dumping
with the original name without asking itself if the table was there in
PostgreSQL.

Luca



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: ident auth does not works as usual
Next
From: Luca Ferrari
Date:
Subject: PL/Perl function signatures