13.4 Sequences

 < Day Day Up > 



Sequences can be cached. Twenty sequences are cached by default. If a system failure occurs then all cached sequences are lost.

Tip 

Only sequence numbers are lost if a database server crashes, not log file recoverable rows in tables, or any other operations using sequence values.

If required by local law that all sequence numbers added to something like invoices must exist then always create sequences with the NOCACHE option. Generally extensive sequence caching is useful for highly active concurrent OLTP or Oracle RAC installations. I have never seen extensive caching of sequences adversely affect performance except in circumstances where sequences were abused.



 < Day Day Up > 



Oracle High Performance Tuning for 9i and 10g
Oracle High Performance Tuning for 9i and 10g
ISBN: 1555583059
EAN: 2147483647
Year: 2003
Pages: 164

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net