ORA-21560: argument string is null, invalid, or out of range
Cause: The argument is expecting a non-null, valid value but the argument value passed in is null, invalid, or out of range. Examples include when the LOB/FILE positional or size argument has a value outside the range 1 through (4GB – 1), or when an invalid open mode is used to open a file, etc.
Action: Check your program and correct the caller of the routine to not pass a null, invalid or out-of-range argument value.
Oralce 中 ORA-21560 代表的是一个出现错误的参数字符串为空、无效或超出范围的错误。
1.检查出错的参数是否超出允许的范围;
2.检查出错的参数的数据类型是否正确;
3.检查出错的参数是否被传递到存储过程或视图;
4.检查出错的参数是否被正确添加到调用存储过程/视图对象中;
5.使用相应的TO_CHAR等函数,将参数值进行转换;
6.如果参数值未明确传递,那么应该提供一个默认值给参数。