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
991 stars 342 forks source link

pg_initial_command ignored when using TEST_DATA #1634

Closed petteja closed 1 year ago

petteja commented 1 year ago

It seems like PG_INITIAL_COMMAND is ignored when using -t TEST_DATA to do data verification between Oracle and PostgreSQL

Added the following to ora2pg.conf: PG_INITIAL_COMMAND set timezone to 'Europe/Oslo'

Initially the log says: [2023-05-02 13:58:54] DEBUG: executing initial command to PostgreSQL: set timezone to 'Europe/Oslo' But data verification fails with rows showing UTC timezone like 2020-09-18 12:17:42+00

darold commented 1 year ago

Commit dd092d4 might fix this issue.

petteja commented 1 year ago

Thanks! It did.