Sequence got auto reset.
Hi All,
I had created a sequence as below.
CREATE SEQUENCE SEQ_FileMonitoringStatusKey MINVALUE 1 START WITH 1 INCREMENT BY 1 NOCACHE;
(min value is 1 and max value is 999999999999999999999999999).
A job inserts data into a table and uses this sequence for primary key column insertion. MAX value inserted by this sequence in the table is 16325. Now, if I execute the query "*select SEQ_FileMonitoringStatusKey.nextval from dual*;" then the vlaue is 2. This means, sequence got reset some how. I checked the created and last modified date for this sequence and it is 22-JUL-2011. I am not sure why this sequence got reset. Can please tell me what could be the reason?
Thanks and Regards
Nagaraja AKkivalli.
Edited by: Nagaraja Akkivalli on Aug 9, 2011 12:22 PM