All Apps and Add-ons

db2 and datatypes problem

AKalika1981
Engager

Hi -
I am trying to connect to db2 through the db connect app. I can connect to the database and also see all the tables. I can see all the data as well unless it's decfloat data type - then it just shows up blank.
Has anyone encountered the same issue? Can Splunk understand all of db2 datatypes?

So I have no issues connecting to the database or seeing the data - UNLESS that data is data type defloat - and then I see blank spaces where numbers should be.

1 Solution

dwaddle
SplunkTrust
SplunkTrust

I have not tried to use the DECFLOAT type with DBX, but it seems that DB2 maps that data type to a BigDecimal object. See http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=%2Fcom.ibm.db2.luw.apdv.java.do...

It is possible that DB Connect does not know how to deal with the DECFLOAT type. You could try altering your SQL to cast it to a DECIMAL.

And if you have enterprise support you should file a support case.

View solution in original post

dwaddle
SplunkTrust
SplunkTrust

I have not tried to use the DECFLOAT type with DBX, but it seems that DB2 maps that data type to a BigDecimal object. See http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=%2Fcom.ibm.db2.luw.apdv.java.do...

It is possible that DB Connect does not know how to deal with the DECFLOAT type. You could try altering your SQL to cast it to a DECIMAL.

And if you have enterprise support you should file a support case.

AKalika1981
Engager

Thanks! After playing with it for a bit casting DECFLOAT to another datatype in SQL in dbx has proven to be the best solution for us.

0 Karma
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...