how to recreate sequence script?
HI all,
I am trying to rebuild a sequence script from capturing information from database.
- using dbms_metadata, the start value is the cache value which is way higher than en actual
- using dba_sequence.last_number, the same problem
- using v$_sequences.nextvalue, however, if I read it correctly , if sequence is queried once, then it appears in the memory and value can be read. If memory do not have it, then we cannot get it.
Any idea?
Please advise. Appreciated!
Thanks
Friendly
0