Beruflich Dokumente
Kultur Dokumente
Author JP Vijaykumar
Written May 11th 2018
Modified May 30th 2018
REFERENCES:
https://asktom.oracle.com/pls/asktom/f?
p=100:11:451611870226342::::P11_QUESTION_ID:2985886242221
https://stackoverflow.com/questions/24298868/sequence-cache-and-performance
https://stackoverflow.com/questions/2381681/oracle-sequence-caching
https://www.toadworld.com/platforms/oracle/w/wiki/1332.increasing-the-sequence-
cache-size
http://momendba.blogspot.co.uk/2007/08/to-cache-or-not-to-cache-oracle.html
http://grokbase.com/t/freelists.org/oracle-l/143fd6j1j6/index-contention-sequence-
caching
http://www.arikaplan.com/oracle/ari82599.html --cache option can skip numbers
https://technology.amis.nl/2006/09/22/how-does-the-sequence-cache-affect-
performance/
https://srivenukadiyala.wordpress.com/2010/12/09/determining-appropriate-sequence-
cache-value/
http://www-01.ibm.com/support/docview.wss?uid=swg21570128
http://oraclexpert.com/sequences/
https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:530735152441
I had increased the active sequences'(sequences that are active in the past 90
days) cache_size.
The recurrance of waits on "enq: SQ - contention" wait event almost stopped, in our
environment.
Readers are advised to make necessary changes to these scripts as may be required
to suit your requirements,
test these scripts throughly in lower environments, before porting to production.
There might be better ways to fix the sequences' cache_size as may be necessary,
the readers are advised to use their ingenuity in investigating further for a
better solution.
These scipts will not work as expected, in the event, if your application more
often selects sequence_name.currval,
You need to search for sql queries that are generating only sequence_name.nextval
and calculate
the average sequence generation per minute. You need to join dba_hist_sqltext and
look for sql_text with NEXTVAL strings.
Happy scripting.