Not able to read SDO_geometry() datatype in DataStage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
informdaya@gmail.com
Participant
Posts: 37
Joined: Tue Nov 30, 2010 10:51 am

Not able to read SDO_geometry() datatype in DataStage

Post by informdaya@gmail.com »

Hi All,
I am not able to read SDO_geometry() datatype[oracle source] in DataStage through ODBC Connector stage.

I am getting the following error.
"An exception occured while trying to receive the response from handler :An exception received from handler:unknown datatype" when try to view data.

i have tried with varchar , longvarchar and longnvarchar but no progress.

Please assist.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try using an explicit CAST in the SELECT statement to force the database to deliver you a LONG VARCHAR.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
informdaya@gmail.com
Participant
Posts: 37
Joined: Tue Nov 30, 2010 10:51 am

Post by informdaya@gmail.com »

I have tried with
CAST(<string_or_column> AS <DATATYPE>)
TO_CHAR(<string_or_column>, <format>) and
TO_CLOB(right VARCHAR2 CHARACTER SET ANY_CS) RETURN CLOB

If you have different opinion,just let me know.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What kind of "reading" are you trying to do here? And then what would your target be? Any of these special data types can't be simply selected but are accessed via 'spatial queries' or methods like Get_WKT (get well known text) to return a CLOB.

Details are here.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply