Database Administration (MOSC)

MOSC Banner

how to recreate sequence script?

HI all,

I am trying to rebuild a sequence script from capturing information from database.

  1. using dbms_metadata, the start value is the cache value which is way higher than en actual
  2. using dba_sequence.last_number, the same problem
  3. 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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center