• Oracle Alert


    clip_image002[6]

    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.

     

  • 相关阅读:
    inotify+rsync做实时同步
    JAVA序列化和反序列化
    初识iBatis
    《Spring in action》之高级装配
    《Spring in action》之装配Bean
    原根
    数论知识
    线性(欧拉)筛
    Codeforces Round #423 (Div. 2, rated, based on VK Cup Finals) E DNA Evolution
    Fibonacci
  • 原文地址:https://www.cnblogs.com/quanweiru/p/5080066.html
Copyright © 2020-2023  润新知