Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Performance history for Past Year contains only 30 days of information in vCenter Server 5.1 (2042009)
Symptoms
- In vCenter Server 5.1, you see only the last 30 days of performance history in the past year view.
- Only one month of performance history appears when trying to view past year performance history.
- This issue can occur on vCenter Server databases using SQL Server or Oracle.
Cause
Resolution
There are 2 steps outlined below: Step 1 is essential, and Step 2 is optional.
Note: Step 2 should not be run until 24 hours after Step 1.
- Step 1: Fix the issue going forward
- Step 2: Recover data older than 30 days
To prepare for the steps below, download and unzip the relevant script attached to this article:
- For Oracle:
RevisedOracle.zip - For SQL Server:
RevisedSQL.zip
Step 1: Fix the issue going forward
Note: Follow these steps to ensure data older than 30 days will be collected in the future.- Stop the vCenter Server Service. For more information, see Stopping, starting, or restarting vCenter services (1003895).
- Log into the database using SQL*Plus (for Oracle) or SQL Management Studio (for SQL Server).
- Drop the stored procedure by running the command:
DROP PROCEDURE purge_stat3_proc;
Note: The same command is used for both Oracle and SQL Server. - Copy and paste the contents of
purge_stat3_proc_dbname.sqlinto SQL*Plus or SQL Management Studio.
Note: The script is contained in the downloaded zip file. - Execute this script to create a new fixed stored procedure.
- Restart the vCenter Server services.
Step 2: Recover data older than 30 days
Note: If these steps are run immediately after the procedure in Step 1, all your data may not be recovered. VMware recommends waiting 24 hours before performing Step 2.- Stop the vCenter Server Service. For more information, see Stopping, starting, or restarting vCenter services (1003895).
- Log into the database using SQL*Plus (for Oracle) or SQL Management Studio (for SQL Server).
- Optional: If using SQL*Plus, you can obtain logging information from the fix script by running the command:
SET SERVEROUTPUT ON; - Copy and paste the contents of
Fix_30_Days_dbname.sqlinto SQL*Plus or SQL Management Studio. - Create a new stored procedure by running the command:
Note: This process can take several hours depending on the amount of data to be recovered.execute Fix_30_Days; - Drop the stored procedure by running the command:
DROP PROCEDURE Fix_30_Days; - Restart the vCenter Server services.
See Also
Attachments
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

