Search the VMware Knowledge Base (KB)
View by Article ID

Verifying jobs and stored procedures installed in VMware vCenter Server 5.0 (2006097)

  • 14 Ratings

Purpose

vCenter Server offloads many data maintenance tasks to the database by installing stored procedures and jobs to invoke the stored procedures. For example, vCenter Server includes procedures to move data between tables or delete old data.

This article provides a complete list of jobs and stored procedures in vCenter Server 5.0.

Note: For more information about SQL agent jobs for vCenter Server, see Updating rollup jobs after the error: Performance data is currently not available for this entity (1004382).

Resolution

Verifying the jobs installed in vCenter Server 5.0

To check the jobs installed in vCenter Server 5.0 using MS SQL:
  1. Launch SQL Server Management Studio.
  2. Navigate to SQL Server Agent.

    Note: SQL Express does not have a SQL Server Agent so it does not have the jobs listed. Only the full edition of SQL Server has the agent and jobs.

  3. Ensure that the jobs listed in this table are installed:

    Note: For managing an Oracle vCenter Server database, you can use Oracle SQL Developer and for managing a DB2 vCenter Server database, you can use DB2 Control Center.

    Rollup JobCorresponding File
    Event Task Cleanup myDBjob_cleanup_events_DB.sql
    Past Day stats rollup myDBjob_schedule1_DB.sql
    Past Month stats rollup myDBjob_schedule3_DB.sql
    Past Week stats rollup myDBjob_schedule2_DB.sql
    Process Performance Data myDBjob_dbm_performance_data_DB.sql
    Property Bulletin Daily Update myDBjob_property_bulletin_DB.sql
    Topn past day myDBjob_topn_past_day_DB.sql
    Topn past month myDBjob_topn_past_month_DB.sql
    Topn past week myDBjob_topn_past_week_DB.sql
    Topn past year myDBjob_topn_past_year_DB.sql

    Where DB is db2, mssql, or oracle.

    Note: Ensure that myDB references the vCenter Server database and not the master or some other database. If these jobs reference any other database, you must delete and recreate the jobs.

Verifying the stored procedures installed in vCenter Server 5.0

To check the stored procedures installed in vCenter Server 5.0 using MS SQL:
  1. Navigate to vCenter DB > Programmability > Stored Procedures.
  2. Ensure that the stored procedures listed in this table are installed:

    Stored ProcedureCorresponding File
    calc_topn1_proccalc_topn1_proc_DB.sql
    calc_topn2_proccalc_topn2_proc_DB.sql
    calc_topn3_proccalc_topn3_proc_DB.sql
    calc_topn4_proccalc_topn4_proc_DB.sql
    cleanup_events_tasks_proccleanup_events_DB.sql
    clear_topn1_procclear_topn1_proc_DB.sql
    clear_topn2_procclear_topn2_proc_DB.sql
    clear_topn3_procclear_topn3_proc_DB.sql
    clear_topn4_procclear_topn4_proc_DB.sql
    delete_stats_procdelete_stats_proc_DB.sql
    process_license_snapshot_procprocess_license_snapshot_DB.sql
    process_performance_data_procprocess_performance_data_DB.sql
    process_temptable0_procprocess_temptable0_proc_DB.sql
    process_temptable1_procprocess_temptable1_proc_DB.sql
    process_temptable2_procprocess_temptable2_proc_DB.sql
    purge_stat1_procpurge_stat1_proc_DB.sql
    purge_stat2_procpurge_stat2_proc_DB.sql
    purge_stat3_procpurge_stat3_proc_DB.sql
    purge_usage_stats_procpurge_usage_stats_proc_DB.sql
    rule_topn1_procrule_topn1_proc_DB.sql
    rule_topn2_procrule_topn2_proc_DB.sql
    rule_topn3_procrule_topn3_proc_DB.sql
    rule_topn4_procrule_topn4_proc_DB.sql
    stats_rollup1_procstats_rollup1_proc_DB.sql
    stats_rollup2_procstats_rollup2_proc_DB.sql
    stats_rollup3_procstats_rollup3_proc_DB.sql
    upsert_last_event_procupsert_last_event_proc_DB.sql

    Where DB is db2, mssql, or oracle.

    If any of these jobs or stored procedures are missing, you must install them by running the corresponding .sql file on the vCenter Server database using a database management tool such as SQL Management Studio. For more information on running the .sql files, see the Adding the SQL Server Agent Jobs section in Updating rollup jobs after the error: Performance data is currently not available for this entity (1004382).

    Note: The upsert_last_event_proc is not required for the Oracle database.

    All SQL scripts are located in the vCenter Server installation folder in C:\Program Files\VMware\Infrastructure\VirtualCenter Server\sql. For more information on commonly used vCenter Server installation paths, see Common vCenter Server and vSphere Client Windows paths (1028185).

    Ensure that the vCenter Server database is the target before executing the SQL file.

Additional Information

See Also

Update History

01/25/2012 - Added link to vSphere 4.x and earlier information 05/24/2012 - Added path to the scripts directory 09/27/2012 - Added link to KB 2033096 in See Also section 10/02/2012 - Added note to KB regarding managing an Oracle vCenter Server database 10/09/2012 - Added link to article 1004382

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.

Feedback

  • 14 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 14 Ratings
Actions
KB: