RE: ORA-24345: A Truncation or null fetch error occurred -ora2pg

From: Daulat Ram <Daulat(dot)Ram(at)exponential(dot)com>
To: Luca Ferrari <fluca1978(at)gmail(dot)com>
Cc: "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: ORA-24345: A Truncation or null fetch error occurred -ora2pg
Date: 2019-08-13 17:34:22
Message-ID: BL0PR01MB518759BB39C66DE2A3B89E469BD20@BL0PR01MB5187.prod.exchangelabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

H,

We are using below the ora2pg version and the data types for tables.

bash-4.2$ ora2pg -v
Ora2Pg v20.0
bash-4.2$

SQL> SELECT distinct data_type FROM dba_tab_columns WHERE owner='GBOP;

DATA_TYPE
--------------------------------------------------------------------------------
TIMESTAMP(6)
FLOAT
CLOB
NUMBER
CHAR
DATE
VARCHAR2
BLOB

SQL>

We are getting the same issue for tables which are having blob, clob and char data types.

Thanks,
Daulat

-----Original Message-----
From: Luca Ferrari <fluca1978(at)gmail(dot)com>
Sent: Tuesday, August 13, 2019 8:32 PM
To: Daulat Ram <Daulat(dot)Ram(at)exponential(dot)com>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org; pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: ORA-24345: A Truncation or null fetch error occurred -ora2pg

On Tue, Aug 13, 2019 at 10:23 AM Daulat Ram <Daulat(dot)Ram(at)exponential(dot)com> wrote:
> Initially did not have LongReadLen set, so I thought this was the cause. But, I have set LongReadLen, on the db handle, equal to 90000000.

Apparently this is an oracle problem because it acceppted data longer than its type, so my guess would be that in your table you have a
char(n) column that could be enlarged before the migration.
<https://support.oracle.com/knowledge/Siebel/476591_1.html>
Hope this helps.
And please report the version of ora2pg when asking for help.

Luca

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-08-13 17:57:05 Re: ORA-24345: A Truncation or null fetch error occurred -ora2pg
Previous Message Rob Sargent 2019-08-13 17:21:04 Re: Changing work_mem

Browse pgsql-performance by date

  From Date Subject
Next Message Adrian Klaver 2019-08-13 17:57:05 Re: ORA-24345: A Truncation or null fetch error occurred -ora2pg
Previous Message Luca Ferrari 2019-08-13 15:02:17 Re: ORA-24345: A Truncation or null fetch error occurred -ora2pg