Hello All ,
Version : 11.2.0.4
We have 1500 sequence in our production database - So now i need to determine what are the sequences names that are nearing to max limit. I can able to view only single sequence with below query.
SELECT sequence_owner,
sequence_name,
last_number,
max_value,
cache_size
FROM dba_sequences where sequence_name='ACCESS_CODE_NVL'
But i want a single query, when a sequence is within 5000 of reaching the maxvalue. If anyone have scripit or query i handy it would be more helpful.