Salesforce

How to calculate the number of bi clusters existing in the before-image log based off of the number of clusters shown in VST?

« Go Back

Information

 
TitleHow to calculate the number of bi clusters existing in the before-image log based off of the number of clusters shown in VST?
URL NameP182270
Article Number000137235
EnvironmentProduct: Progress
Version: 9.x
Product: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Other: VST
Question/Problem Description
How to calculate the number of clusters existing in the before-image log based off of the number of clusters shown in VST?
How to calculate the number of clusters existing in the before-image log?
How many clusters exist in the bi log?
How to calculate clusters in the before-image log?
How to calculate current before-image log size at any given point using VST?
How to calculate current before-image log size at any given point?
How much data is in the BI file?
How to calculate the amount of free space in the BI file ?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution

The following ABL code computes the total number of clusters in the before-image log. 

  • The amount of data in the BI file in kilobytes,
  • There may be unused but allocated space after these clusters, if fixed bi extents are being used.
FIND _areastatus no-lock where _areastatus-areanum = 3.
FIND _dbstatus no-lock.

DISPLAY "Total BI Clusters:" string(_areastatus-hiwater * _dbstatus._dbstatus-biblksize 
               / _dbstatus-biclsize /  1024 ) + " kb".
 

Free space in the BI file(fixed BI Extent) can be calculated using the below formula   

Total size of BI Extent - The Amount of used space 


To calculate the total size of the before-image log, multiply the number of clusters from the above result with the before-image cluster size (_dbstatus._dbstatus-biclsize) which is stored as KB. 

Total before-image log size in KB:

FIND _areastatus no-lock where _areastatus-areanum = 3.
FIND _dbstatus no-lock.
    DISPLAY 
             (_areastatus-hiwater *
              _dbstatus._dbstatus-biblksize /
              _dbstatus-biclsize /
                1024) *  
              _dbstatus-biclsize.
Workaround
Notes
Keyword Phrase
Last Modified Date11/20/2020 7:36 AM

Powered by