About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Thank you for submitting this enhancement request.
We have identified a working solution that should work in most scenarios (`except when RCP is enabled or when the user wants to use the Generate SQL option in the Connector`) and should help customer in moving ahead for the rest of the usage scenarios.
We see that you have reported the following issue:
The OCI function OCIStmtExecute returned status -1. Error code: 932, Error message: ORA-00932: inconsistent datatypes: expected MDSYS.SDO_GEOMETRY got CLOB.
In order to address this and get past the current issue, you can use `SDO_UTIL` functions in your SQL statements to convert between DataStage datatype (LongVarchar) and geometry datatypes.
For example:
SELECT statement should be something like below:
select
sdo_util.TO_WKTGEOMETRY
(CUST_GEO_LOCATION) from testgeo
INSERT statement should be something like below:
insert into testgeo values(
sdo_util.FROM_WKTGEOMETRY
(:CUST_GEO_LOCATION))
Please let us know if that helps you moving foward.