0

我正在尝试将我们的数据库从 oracle 迁移到 Postgres,在生成 DDL 并在将数据插入 Postgres 期间我遇到了这个问题:

[2020-10-19 18:15:49] Dumping data from table ACREF_ACCOUNTINGPERIOD_ into PostgreSQL table ACREF_ACCOUNTINGPERIOD_...
[2020-10-19 18:15:49] Setting client_encoding to UTF8...
[2020-10-19 18:15:49] Disabling synchronous commit when writing to PostgreSQL...
[2020-10-19 18:15:49] DEBUG: Formatting bulk of 100000 data (real: 1 rows) for PostgreSQL.
[2020-10-19 18:15:49] DEBUG: Creating output for 100000 tuples
[2020-10-19 18:15:49] DEBUG: Sending COPY bulk output directly to PostgreSQL backend
DBD::Pg::db pg_putcopyend failed: ERROR:  null value in column "entity$code_" violates not-null constraint
DETAIL:  Failing row contains (null, 1395753794346, admin@ALL, 0, null, 1400, com.acf.AccountPeriod, null, null, ALL, user@ALL, false, false, 13000, 753794288, null, null, null, Yearly, true, Current, 873738087).

PS:列 entity$code_ 没有空值,看起来 ora2pg 没有迁移所有数据有什么帮助吗?

4

0 回答 0