ORA-01480 trailing null missing from STR bind value 错误解决方法

    技术2022-05-11  35

    Oracle Error :: ORA-01480

    trailing null missing from STR bind value

    Cause

    A bind variable of type 5 (null-terminated string) does not contain the terminating null in its buffer.

    Action

    Terminate the string with a null character


    原因分析: 导致出现该问题的可能是由于寄主程序的变量设定的太短,导致SQL(PRO*C)取出的字段被截断,最后该字段对应的变量在赋值的时候无法找到结束字符。 解决方法:找出太短字段的设置,将变量设长。


    最新回复(0)