Joseph DeVore's Blog: Oracle - PL/SQL
A sequence is referenced in SQL statements with the NEXTVAL and CURRVAL pseudocolumns; each new sequence number is generated by a reference to the sequence’s pseudocolumn NEXTVAL, while the current sequence number can be repeatedly referenced using the pseudo-column CURRVAL.
With respect to a sequence, the CACHE option specifies how many sequence values will be stored in memory for faster access.
The downside of creating a sequence with a cache is that if a system failure occurs, all cached sequence values that have not been used, will be "lost". This results in a "gap" in the assigned sequence values. When the system comes back up, Oracle will cache new numbers from where it left off in the sequence, ignoring the so called "lost" sequence values.
(Note: To recover the lost sequence values, you can always execute an ALTER SEQUENCE command to reset the counter to the correct value.)
increment by 52;
I will set the cache level to something low like 20 for my example and outage_apps_seq.
-- cache 20 of the records
create sequence outage_apps_seq
start with 28540
increment by 1
nomaxvalue
cache 20;
To populate the auto number you would use something like the following:
values(outage_apps_seq.nextval,...);
So here we go~ ORACLE TIME!

