Calculate Vault Audit table size
Symptom
It is stated that "Upgrading the Vault to version 14.x or higher from a version lower than 14.0 requires significant database changes.
How to calculate size of our audit table to check prior to installation if it is greater than 4 GB to assist in upgrade planning activities (plan if it will be required to run in background).
Referring to Idira documentation:
Home > Installation > Upgrade > Use Background mode during upgrade
Environment
14.0;14.2 Privileged Access Manager (PAM, self-hosted) Vault Server
Vault Server Upgrade to version 14.x or higher from a version lower than 14.0
Resolution
TO CALCULATE SIZE OF THE AUDIT TABLE
Run a DiagnoseDB Report:
CAVaultManager.exe diagnosedbreport > [full output location]
https://community.cyberark.com/s/article/00004956
Utilize the DiagnoseDB report to determine the size of audit table.
From the DiagnoseDBReport.txt:
-- Find "SHOW TABLE STATUS FROM ca_vault;"
-- Find record "vault_safes_log"
Size in bytes = (Data_length + Index_length)
-- Convert bytes to GB
Example:
Data length: 17596235776
Index length: 7890173952
Total:
25,486,409,728 bytes = 23.74 GB
(DiagnoseDB report extract)