Author |
Message |
thurmy34

Group memberships: Premium Members
Joined: 31 Mar 2006
Posts: 198
Location: Paris
Points: 1520
|
|
DataStage® Release: 11x |
Job Type: Parallel |
OS: Windows |
|
Hi
When reading a oracle table via the connector with the RCP enable i have the following error
Code: |
Can not convert to framework type <" (CC_PXBigBufferHandler::readField_TIMESTAMP_FS_STRING, file CC_PXBigBufferHandler.cpp, line 4˙830)
|
Note the strange Datatype.
Do you have un idea ?
Regards
|
_________________ Hope This Helps
Regards |
|
|
 |
chulett
 since January 2006
Group memberships: Premium Members, Inner Circle, Server to Parallel Transition Group
Joined: 12 Nov 2002
Posts: 43085
Location: Denver, CO
Points: 222463
|
|
|
|
|
|
Check for fixpacks / patches for your version that you haven't applied yet. Open a support case. Or both.
|
_________________ -craig
"You can never have too many knives" -- Logan Nine Fingers
|
|
|
 |
thurmy34

Group memberships: Premium Members
Joined: 31 Mar 2006
Posts: 198
Location: Paris
Points: 1520
|
|
|
|
|
|
In fact the problem comes from a fals date (00/01/3689) in a timestamp column.
To handle that i have to declare the column in varchar(10).
Thanks
|
_________________ Hope This Helps
Regards |
|
|
 |
PaulVL

Group memberships: Premium Members
Joined: 17 Dec 2010
Posts: 1310
Points: 8608
|
|
|
|
|
|
Did you use the schema from the table definition as found on that Oracle box or did you hand code it? I doubt any properly defined date column on Oracle would reflect a 00 month/day value.
|
|
|
|
 |
thurmy34

Group memberships: Premium Members
Joined: 31 Mar 2006
Posts: 198
Location: Paris
Points: 1520
|
|
|
|
|
|
The following sql
Code: |
select ID,TO_CHAR(MYDATE, 'DD/MM/YYYY hh24:mi:ss'),cast(MYDATE as timestamp) from MYTABLE where ID=1
|
gives this
Code: |
1 00/01/3948 00:00:00 31/12/47 00:00:00,000000000
|
Like I said i'm using RCP so i don't declare any datatypes
|
_________________ Hope This Helps
Regards |
|
|
 |
chulett
 since January 2006
Group memberships: Premium Members, Inner Circle, Server to Parallel Transition Group
Joined: 12 Nov 2002
Posts: 43085
Location: Denver, CO
Points: 222463
|
|
|
|
|
|
So... how is your
MYDATE
column defined in Oracle? It doesn't seem to be a DATE otherwise your TO_CHAR would work a bit more better. And the TO_TIMESTAMP function might be a better choice than CAST for the second conversion. Hard to know from this end, not knowing the source datatype or what the contents look like before the conversion attempt.
Please clarify your "gives this" example - gives this
where?
That's inside the job or from a tool like sqlplus or Toad or... ?
|
_________________ -craig
"You can never have too many knives" -- Logan Nine Fingers
|
|
|
 |
thurmy34

Group memberships: Premium Members
Joined: 31 Mar 2006
Posts: 198
Location: Paris
Points: 1520
|
|
|
|
|
|
Hi
The mydate column is a date.
The select was launched with sqldeveloper.
Thanks
|
_________________ Hope This Helps
Regards |
|
|
 |
chulett
 since January 2006
Group memberships: Premium Members, Inner Circle, Server to Parallel Transition Group
Joined: 12 Nov 2002
Posts: 43085
Location: Denver, CO
Points: 222463
|
|
|
|
|
|
Sorry to keep harping on this but when you say it is a date do you mean
DATE
as in the datatype? Because your extracted date isn't valid and trying to convert that to a DATE fails as expected:
Code: |
select to_date('00/01/3948', 'mm/dd/yyyy') from dual;
ORA-01843: not a valid month |
Meaning it should not be possible to store the value you extracted in a DATE field. What do you see when you simply SELECT MYDATE
without
the TO_CHAR function? Would still suggest you open a support case if you haven't done so already, to see if this is some kind of odd Connector/RCP bug.
|
_________________ -craig
"You can never have too many knives" -- Logan Nine Fingers
|
|
|
 |
chulett
 since January 2006
Group memberships: Premium Members, Inner Circle, Server to Parallel Transition Group
Joined: 12 Nov 2002
Posts: 43085
Location: Denver, CO
Points: 222463
|
|
|
|
|
|
Sorry to keep harping on this but when you say it is a date do you mean
DATE
as in the datatype? Because your extracted date isn't valid and trying to convert that to a DATE fails as expected:
Code: |
select to_date('00/01/3948', 'mm/dd/yyyy') from dual;
ORA-01843: not a valid month |
Meaning it should not be possible to store the value you extracted in a DATE field. What do you see when you simply SELECT MYDATE
without
the TO_CHAR function? Would still suggest you open a support case if you haven't done so already, to see if this is some kind of odd Connector/RCP bug.
|
_________________ -craig
"You can never have too many knives" -- Logan Nine Fingers
|
|
|
 |
|