Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:17 pm
by Gerard O'Brien >> Wed, 5 Mar 2008 23:21:27 GMT
I have responded to this for contacts in parsys in the past. What follows is the text from the response to one such contact. Hopefully it explains what you see.
cheers
Gerard
When a journal switch occurs a new journal becomes the current write journal. A journal switch has nothing to do with closing and releasing journals. A journal that has been switched from is in a stable state and is available for copying and verifying for backup purposes.
The database retains control of the journal until it is no longer required for transaction abort or database recovery purposes at which time it is released and any journal close action performed. You can copy but not remove the file while it is in this state.
Multiple journal files that are held open by database recovery should be viewed as the current journal set. A journal is dropped from this set when it is no longer required for either transaction abort or for database restart recovery. How many journals there are in the current journal set depends on transaction activity and on the settings for the JournalMinSize, JournalMaxSize and JournalSwitchInterval parameters. There is no limit. As the recovery point is evaluated journals no longer required are dropped from the current journal set and released. Recovery point evaluation only occurs during transaction activity.
Transaction activity is the normal stimulus for the evaluation that may result in the establishment of a restart recovery point. Other activities (e.g., changing database usage, deleting a map file, normal close down) also force the establishment of a restart recovery point but transaction activity is the usual stimulus. The establishing of a restart recovery point is called a checkpoint.
An accumulator of bytes written to the audit since the last checkpoint is maintained by transaction auditing. A checkpoint operation is initiated when this value goes beyond 1/3 of the JournalMaxSize ini file parameter value.
The checkpoint operation establishes a known restart recovery state consequentially determining which journals in the current journal set are no longer required and initiating their release if they don't contain and are not spanned by an active transaction.