HomeSearchSite MapContact Us

   RemoteDBA Services for CODASYL DBMS and Rdb Remote Management of OpenVMS Systems Preserving Mission Critical IT Applications Through Virtualization

DATABASE
ADMINISTRATION

 
 

DBO/ANALYZE/ONLINE (DBMS only)
TECHNICAL ARTICLES -> MAINTENANCE ARTICLES
Back ] Printer Friendly Version ]

Q:

It appears that DBO/ANALYZE/ONLINE does not run as a “snapshot” (BATCH RETRIEVAL) transaction when used with the /NOSET qualifier. This appears inconsistent with other use of the “/ONLINE” qualifier, and in our environment this causes excessive stalls waiting for “snapshot cursor.” Is this a bug or “feature?”

 

A:

Yes, this is confusing, as is the documentation on this topic. The DBA Reference Manual (page 9-13) states “When you specify the /ONLINE qualifier, users can continue to update the database during the procedure. The online analysis procedure uses the snapshot file to retrieve the previous version of any record that has been modified since the analysis began.” This seems to clearly state that the “/ONLINE” qualifier means it runs as a snapshot transaction (BATCH RETRIEVAL). However, the Maintenance and Performance Guide (page 14-3) states, “ANALYZE runs in
PROTECTED RETRIEVAL mode while doing set analysis. (If you are not doing set analysis
[/NOSET], DBO/ANALYZE runs in CONCURRENT RETRIEVAL mode.)” The short answer is that DBO always uses “CONCURRENT RETRIEVAL” (not BATCH RETRIEVAL) when performing a /NOSET analysis. In large databases, this command may run for a long time (and thus cause long stalls waiting for the “snapshot cursor” lock). As a work-around, try disabling deferred snapshots ($DBO/MODIFY/SNAP=NODEFER<root>) or modifying the programs that are stalling so that they are also ready for CONCURRENT RETRIEVAL.

Top


Was this article helpful? 
This information and more was originally published in SCI's technical newsletter, DBAdvisor.
Past issues are available online; you may also fill out a subscription form.

If you have a technical question about this article or about any other 
CODASYL DBMS or Rdb topic, then ask our experts.

How would you rate this article?

5 (Highest)
4
3
2

0 (Did not apply)
Comments about this article or topic suggestions for new articles

Copyright © 2008 Software Concepts International
All Rights Reserved