ORA-04013:number to CACHE must be less than one cycle的处理

ORA-04013:number to CACHE must be less than one cycle的处理

Error reporting

When we write the sequence of ORACLE, we may be prompted with the following error:
Insert image description here

Cause Analysis

The CACHE value must be less than the CYCLE value. It is displayed by searching the data and needs to meet the following formula:
CACHE <= CEIL((MAXVALUE - MINVALUE) / ABS(INCREMENT))

As shown in the figure above, the calculation cache <= ceil((320-30) / abs(10)) = 29,
so when the cache is set to <= 29, there should be no error.

verify

Insert image description here
The cache is set to 29 and no error is reported.

Guess you like

Origin blog.csdn.net/slb190623/article/details/129976446