现在的位置: 首页 > 综合 > 正文

Informatica处理大于15位的Decimal数据

2012年05月31日 ⁄ 综合 ⁄ 共 785字 ⁄ 字号 评论关闭

之前做一个Informatica开发时,遇到一个问题。 当Informatica Session处理位数大于15的Decimal数据时,总会出现这样的情况。

原数据:111 111 111 111 111 555

处理后: 111 111 111 111 111 000

自15位之后的数字都被截取为0,即丢失15位之后的精度。

处理方法,配置session如图,High Precision处打钩即可:

If a session runs with high precision enabled, disabling high precision might improve session performance.

The Decimal datatype is a numeric datatype with a maximum precision of 28. To use a high precision Decimal datatype in a session, configure the Integration Service to recognize this datatype by selecting Enable High Precision in the session properties. However,
since reading and manipulating the high precision datatype slows the Integration Service, disable high precision to improve session performance.

When you disable high precision, the Integration Service converts data to a double. The Integration Service reads the Decimal row 3900058411382035317455530282 as 390005841138203 x 1013. 

抱歉!评论已关闭.