I have noted from here that the expected width of a number data type is dynamically set to whatever you need up to a precision of 21 bytes, however I can see in my code that the line
MAX_LENGTH CONSTANT NUMBER := 2000;
is throwing the error:
BEGIN
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "DBAuser.MAKE_VIEWS", line 58
Am I misinterpreting the error, or is it possible that the CONSTANT modifier is changing something that I don't expect? Is there a system level setting which can change the default width of number types?
Edited to reflect more accurate title - issue is that I am looking at what I think is line 58 but it's really not