Hi All,
I am on Datastge 7.5 and I have file from which I load process_date time coumn
In Input file I have value as 23-MAY-11 02.50.21.689000
In datastge job at target stage the column is defined as timestamp 26 with extended propert set to Microseconds
when my job run and loads data into oracle 11g table value of process date time is becoming 23-MAY-11 02.50.21.000000 i.e microseconds are not showing.
in oracle table column is defined as timestamp(6)
if I use the same value and same datastage job and loads data into same table on 10i then data is getting inserted correctly that with microseconds
there also column is defined as timestamp(6)
on datastge job I use simple insert query to load the table ( target stage)
Is this compatibilty issue on Datasteg 7.5 and oracle 11g
microseconds getting trucated while loading intoOracle 11g
Moderators: chulett, rschirm, roy
Our Datasteg version is 7.5 parallel version only
my job design is i have seqquemtial fileas input I read the process_datetime column as varchar(26) then I have transformer in that I have transformation on processdatetime coulmn as
StringToTimestamp(PROCESS_DATETIME,"%yyyy-%mm-%dd %hh:%nn:%ss.6")
after that I have Oracle Enterprise stage which lods data into table with below query , column is defined as timestamp (26) and with microsecond option
INSERT
INTO
<schema name>..<tablename>
(BATCH_ID, PROCESS_DATETIME)
VALUES
(ORCHESTRATE.BATCH_ID, , ORCHESTRATE.PROCESS_DATETIME)
As data flow
source value is 2011-05-26-18.54.42.442000 (varchar (26)
target value ( when seen by writing into file) 2011-05-26 18:54:42.442000
Datatype timestamp 26 microseconds checked
when data loaded into Oracle 11 g table then value will be
2011-05-26 18:54:42.000000
On database column is defined as timestamp(6)
my job design is i have seqquemtial fileas input I read the process_datetime column as varchar(26) then I have transformer in that I have transformation on processdatetime coulmn as
StringToTimestamp(PROCESS_DATETIME,"%yyyy-%mm-%dd %hh:%nn:%ss.6")
after that I have Oracle Enterprise stage which lods data into table with below query , column is defined as timestamp (26) and with microsecond option
INSERT
INTO
<schema name>..<tablename>
(BATCH_ID, PROCESS_DATETIME)
VALUES
(ORCHESTRATE.BATCH_ID, , ORCHESTRATE.PROCESS_DATETIME)
As data flow
source value is 2011-05-26-18.54.42.442000 (varchar (26)
target value ( when seen by writing into file) 2011-05-26 18:54:42.442000
Datatype timestamp 26 microseconds checked
when data loaded into Oracle 11 g table then value will be
2011-05-26 18:54:42.000000
On database column is defined as timestamp(6)