Closed giorgiomorina closed 3 years ago
I don't understandc the exact problem you are trying to solve. If data are exported from Oracle in utf8 then CLIENT_ENCODING should be utf8 too, you are sending utf8 data to PostgreSQL.
Can you post the result of command: ora2pg -c ora2pg.conf -t SHOW_ENCODING
Hi Darold, the problem is that some unrecognized characters prevent us from importing data and leads to collecting large reject-files - containing bad chars too. I found a workaround which involves converting the rejects-file through iconv, but sometimes, particularly with large tables, the COPY command stored in them is malformed - perhaps due to the parallelism; following what happens in there:
COPY
Dear Gilles, first of all THANK YOU for all your work.
I'm getting the following issue doing a parallel direct COPY command (ORACLE_COPIES>1, JOBS>1): it seems that even though both source and target databases are UTF-8 encoded, ora2pg doesn't use the correct encoding.
Oracle source database
Postgres target database
ora2pg's log
Moreover it seems it doesn't take into account the parameter CLIENT_ENCODING to include automatically the \encode directive in the COPY statements and consequentially it doesn't make a UTF8 encoded discards file: