Resolution
Workaround
Caution: Ensure that the statistics purge stored procedures are not running before performing any of the steps below.
Microsoft SQL Server
To replace the statistics purge stored procedure in your vCenter Server database:
- DownloadPurgeScripts_mssql.zip( attached to this article).
- In your database client utility (SQL Server Query Analyzer or SQL Server Management Studio), connect to your SQL Server database using credentials that vCenter Server uses to connect.
- Open a new query window and select the vCenter Server database.
- Run these commands at the SQL prompt:
DROP PROCEDURE purge_stat1_proc;
DROP PROCEDURE purge_stat2_proc;
DROP PROCEDURE purge_stat3_proc;
DROP PROCEDURE purge_usage_stat_proc;
- Extract the contents of the downloaded ZIP file.
- Paste the contents from thepurge_stat1_proc_mssql.sqlfile into the new query window and click Execute. When the procedure is updated, this message appears:
Command(s) completed successfully
- Repeat step 6 with the filespurge_stat2_proc_mssql.sql, purge_stat3_proc_mssql.sql and purge_usage_stats_proc_mssql.sql.
Notes:
- You need to replace purge_usage_stats_proc_mssql.sql for vCenter Server 4.0 and 4.1, but not for VirtualCenter 2.5.
- Ifinvalid object namedisplayswhen you run the update scripts, verify that:
- The SQL login is the one used by VirtualCenter server, not sa or Administrator.
- The current database is the VirtualCenter database, not master or some other database.
Oracle
To replace the statistics purge stored procedure in your vCenter Server database:
- DownloadPurgeScripts_oracle.zip ( attached to this article).
- Using the SQL*Plus utility, login to the Oracle database using credentials that the VirtualCenter server uses to connect.
- Run these commands at the SQL prompt:
DROP PROCEDURE purge_stat1_proc;
DROP PROCEDURE purge_stat2_proc;
DROP PROCEDURE purge_stat3_proc;
DROP PROCEDURE purge_usage_stat_proc;
- Replace the existing statistics purge stored procedure by running these files from the downloaded ZIP file:
- purge_stat1_proc_oracle.sql
- purge_stat2_proc_oracle.sql
- purge_stat3_proc_oracle.sql
- purge_usage_stats_proc_oracle.sql
Note: You need to replace purge_usage_stats_proc_oracle.sql for vCenter Server 4.0 and 4.1, but not for VirtualCenter 2.5.
DB2
To replace the statistics purge stored procedure in your vCenter Server database:
- Open a DB2 Command Editor window and log in as the user that you created on the vCenter Server database.
- Open DB2 Control Center.
- Select the vCenter Server database.
- Right-click the database and choose Menu > Query.
- In the DB2 Command Editor window, type in each statement and press Ctrl+Enter to run each query:
DROP PROCEDURE purge_stat1_proc;
DROP PROCEDURE purge_stat2_proc;
DROP PROCEDURE purge_stat3_proc;
DROP PROCEDURE purge_usage_stat_proc;
- Replace the existing statistics purge stored procedure by running these files from the downloaded ZIP(PurgeScripts_db2.zip) file and press Ctrl+Enter to run each SQL file query:
purge_stat1_proc_db2.sql
purge_stat2_proc_db2.sql
purge_stat3_proc_db2.sql
purge_usage_stats_proc_db2.sql
Note: You need to replace purge_usage_stats_proc_db2.sql for vCenter Server 4.0 and 4.1, but not for VirtualCenter 2.5.
Additional Information
To be alerted when this article is updated, click Subscribe to Document in the Actions box.
For translated versions of this article, see: