Uniloader, oracle and timestamp

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Reier
Posts: 2
Joined: Mon 25 Jun 2012 10:01

Uniloader, oracle and timestamp

Post by Reier » Mon 25 Jun 2012 11:03

I have tried to use the UNILOADER to move data from Firebird to Oracle. But if any attribute in Oracle is defined with TIMESTAMP I am unable to do this because my program crashes.

Example of code line that does not work (It does compile):

Sender.PutColumnData(4, i, UniQueryFra.FieldByName('SISTEINNLOGGING').value);

UniQueryFra is the Firebird source and contains a Firebird TIMESTAMP field.
I suspect that the format need to be converted to be accepted by Oracle, and I have
tried a lot of different ways to do this conversion, but I am unable to get it to work.

Note: DirectPath is set to false in Uniloader for Oracle, so ordinary SQL should be used to copy the data.

Could anyone please help me.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Re: Uniloader, oracle and timestamp

Post by bork » Mon 25 Jun 2012 13:09

Hello

Please provide us with an SQL script for creating the source table in Firebird and destination table in Oracle. It will help us to resolve this issue soon.

Reier
Posts: 2
Joined: Mon 25 Jun 2012 10:01

Re: Uniloader, oracle and timestamp

Post by Reier » Tue 26 Jun 2012 06:03

/* ---------------------------------------------------------------------- */
/* Add table "HKBRUKER" */
Create in Oracle (SISTEINNLOGGING is the field to look for)

CREATE TABLE HKBRUKER (
BRUKERID VARCHAR2(45) CONSTRAINT NN_HKBRUKER_1 NOT NULL,
FAGPERSNR NUMBER(10),
AVD NUMBER(10),
PROFIL NUMBER(10),
SISTEINNLOGGING TIMESTAMP,
NYTTPASSORDDATO DATE,
STATUS CHAR(1),
DEFP VARCHAR2(45),
CONSTRAINT PK_HKBRUKER PRIMARY KEY (BRUKERID)
);

Create in Firebird

CREATE TABLE HKBRUKER (
BRUKERID VARCHAR(45) NOT NULL,
FAGPERSNR INTEGER,
AVD INTEGER,
PROFIL INTEGER,
SISTEINNLOGGING TIMESTAMP,
NYTTPASSORDDATO DATE,
STATUS CHAR(1),
DEFP VARCHAR(45),
CONSTRAINT PK_HKBRUKER PRIMARY KEY (BRUKERID)
);

Not that different..., a DB tool DBDezign is used to create the scripts.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Uniloader, oracle and timestamp

Post by AlexP » Tue 26 Jun 2012 11:04

hello,

Thank you for the information.
We've reproduced the problem.
We will notify you as soon as we have any results.

tobias_cd
Posts: 56
Joined: Thu 18 Dec 2008 22:10

Re: Uniloader, oracle and timestamp

Post by tobias_cd » Mon 02 Jul 2012 06:12

@AlexP: is this issue fixed with the just released v4.2?
Thanks,
Tobias

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Uniloader, oracle and timestamp

Post by AlexP » Mon 02 Jul 2012 09:36

hello,

This fix will be included in the next UniDAC version.

Post Reply