I have a for loop in the pl / sql function something like:
FOR i IN min..max LOOP
variables i, min, max are declared as NUMERIC
in my case min and max are very large, but the range itself is small, i.e.
min = 3232236033
max = 3232236286
since you see a range of about ~ 256, but with these values, oracle gives a numerical overflow error and I focused on how to make it work.
How should I iterate over these values?
EDIT
Ok, I have a working answer using max / min diff loop, but is it really impossible to scroll large values in oracle?
EDIT The error I get:
SQL Error: ORA-01426: nadmiar numeryczny
ORA-06512: przy "PS.DHCP", linia 88
01426. 00000 - "numeric overflow"
*Cause: Evaluation of an value expression causes an overflow/underflow.
*Action: Reduce the operands.
Line 88 of the code:
FOR client_ip IN min_host..max_host
min_host, max_host, client_ip - result inet_aton(numeric representation of IP)
canni source
share