Verifying jobs and stored procedures in VMware vCenter Server 4.1.x
search cancel

Verifying jobs and stored procedures in VMware vCenter Server 4.1.x

book

Article ID: 305794

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

vCenter Server offloads many data maintenance tasks to the database itself by installing stored procedures and jobs to kick off the stored procedures. For example, these procedures move data between tables or delete old data.
 
This article contain the full list of jobs and stored procedures for vCenter Server 4.1.


Symptoms:



Environment

VMware vCenter Server 4.1.x

Resolution

Verifying the jobs installed in vCenter Server 4.1

To check the jobs installed in vCenter Server 4.1 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 Job
    Corresponding file
    Past Day stats rollup <myDB>Job_schedule1_<DB>.sql
    Past Week stats rollup <myDB>Job_schedule2_<DB>.sql
    Past Month stats rollup <myDB>Job_schedule3_<DB>.sql
    Event Task Cleanup <myDB>job_cleanup_events_<DB>.sql
    Topn past day <myDB>job_topn_pastday_<DB>.sql
    Topn past month <myDB>job_topn_pastmonth_< DB >.sql
    Topn past week <myDB>job_topn_pastweek_< DB >.sql
    Topn past year <myDB>job_topn_pastyear_< DB >.sql


Where <DB> is either db2, mssql, or oracle

Note: Make sure that <myDB> references the vCenter Server database and not some other database. If the above jobs reference any other database, you must delete and recreate the jobs.

If any of these jobs are missing, see Updating rollup jobs after the error: Performance data is currently not available for this entity (1004382).

 

Verifying the stored procedures installed in vCenter Server 4.1

To check the stored procedures installed in vCenter Server 4.1 using MS SQL:

  1. Navigate to vCenter DB > Programmability > Stored Procedures.
  2. Ensure that the stored procedures listed in this table are installed:
     
    Stored Procedure
    Corresponding 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_proc_<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_stat_procpurge_usage_stat_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 either 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

For more information, see Verifying jobs and stored procedures installed in vCenter Server 5.1 and 5.5 (2033096).

"Performance data is currently not available for this entity" error after updating rollup in vSphere
vCenter Server 4.1 installation rolls back when updating the database
Verifying vCenter Server 2.5 jobs and stored procedures
Verifying jobs and stored procedures installed in vCenter Server 5.1, 5.5 and 6.x
VMware vCenter Server 4.1.x のジョブおよびストアド プロシージャを確認する
验证 VMware vCenter Server 4.1.x 中的作业和存储过程