Oracle cache aging too often

My asp.net application uses some sequences to generate table primary keys. Db administrators set the cache size to 20. Now the application is tested, and several entries are added every day (say 4 for each user test session). I found that new entries in the test session always use new parts of the cache, as if the timeout for the cached numbers expired, losing a tenth of the keys every day. I would like to understand if this is due to some kind of error that I could make in my application (utilization of tables or some other), or if this is the usual behavior. Are there any better programming methods to consider when working with oracle sequences?

Since the application does not have to carry a heavy load on the work (say, 20-40 new entries per day), I paid attention if this could be the case to set a smaller cache size or nothing at all. Does resizing a sequence cache mean resetting the current index?

in advance for any hint

+5
source share
4 answers

The answer from Justin Cave in this thread may be interesting for you:

http://forums.oracle.com/forums/thread.jspa?threadID=640623

In short: if the sequence is not sufficiently accessible, but you have a lot of “traffic” in the library cache, the sequence can be deleted and deleted from the cache. In this case, the pre-selected values ​​are lost.

, , .

, ( ) ( 20-40 )

+7

Oracle . ... . , ( nextval trigger/sql/pkg api) - ( sql server, /)

.

, , +1 (, seqer 125 nocache;)

, Oracle. .

, IO , .

/ .

a_horse_with_no_name, id?


Edit , : http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/views002.htm#i1007824


+2

- , . , , , , . .

, , . , , .

+1

: , , , - . ( , , ).

, . ( ).

alter sequence (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_2011.htm) reset / val .

0

All Articles