码迷,mamicode.com
首页 > 移动开发 > 详细

Oracle Alert - APP-ALR-04108: SQL error ORA-01455

时间:2015-12-27 15:59:26      阅读:352      评论:0      收藏:0      [点我收藏+]

标签:

技术分享

SELECT OD.ORGANIZATION_CODE,

         TO_CHAR(H.ORDER_NUMBER), --ORACLE ALERT 自动转数字类型最长11位,转字符处理解决APP-ALR-04108

         (L.LINE_NUMBER || ‘.‘ || L.SHIPMENT_NUMBER),

         MSI.SEGMENT1 ,

         L.CANCELLED_QUANTITY,

         TO_CHAR(L.CREATION_DATE, ‘YYYY-MM-DD‘),

         TO_CHAR(L.LAST_UPDATE_DATE, ‘YYYY-MM-DD‘),

         FU.USER_NAME,

         FU2.USER_NAME

    INTO &ORG_CODE,

         &ORDER_NUMBER, 

         &ORDER_LINE,

         &ITEM, 

         &CANCELLED_QUANTITY,

         &CREATION_DATE, 

         &LAST_UPDATE_DATE,

         &CREATED_BY,

         &LAST_UPDATED_BY

    FROM OE_ORDER_LINES_ALL L,

         OE_ORDER_HEADERS_ALL H,

         MTL_SYSTEM_ITEMS_B MSI,

         ORG_ORGANIZATION_DEFINITIONS OD,

         FND_USER FU,

         FND_USER FU2

   WHERE     1 = 1

         AND FU.USER_ID = L.CREATED_BY

         AND FU2.USER_ID = L.LAST_UPDATED_BY

         AND L.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID

         AND H.ORG_ID = OD.OPERATING_UNIT

         AND OD.ORGANIZATION_ID = MSI.ORGANIZATION_ID

         AND OD.ORGANIZATION_CODE <> ‘MST‘

         AND L.HEADER_ID = H.HEADER_ID

         AND H.ORDER_NUMBER = NVL(SUBSTR(L.ATTRIBUTE11, 1, INSTR(L.ATTRIBUTE11, ‘-‘) - 1), H.ORDER_NUMBER)

         AND L.FLOW_STATUS_CODE = ‘CANCELLED‘

         AND (L.LAST_UPDATE_DATE + 3) >= SYSDATE

ORDER BY OD.ORGANIZATION_CODE, H.ORDER_NUMBER, L.LAST_UPDATE_DATE

 

=======================================================

APP-ALR-04108: SQL error ORA-01455: Converting column overflows integer datatype occurred while executing the user-defined SQL statement for this alert (STMT=select  12345678901 from dual)
 

Solution:  In Alert define window in select statement box it will accept only 10 digits columns to retrieve. So here I am retrieving 11 digits so when click on run this error occurred.

 

Action:  always display columns which are less than 11digits values.

 

Or If you want to display huge amounts then you should use to_char(amount)

 

so it will convert into character then it will allow more than 11 digits.

 

Oracle Alert - APP-ALR-04108: SQL error ORA-01455

标签:

原文地址:http://www.cnblogs.com/quanweiru/p/5080066.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!