Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

cleanup_events_tasks_proc stored procedure fails to run on vCenter 4.0 (1014893)

Last Updated: 7/17/2020Categories: TroubleshootingTotal Views: 29067Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

The cleanup_events_tasks_proc stored procedure fails to run

If you are running an Oracle database you may experience the error:

ORA-12012: error on auto execute of job 30
ORA-02292: integrity constraint (VPXADMIN.FK_PARENT_TASK_REF) violated - child record found
ORA-06512: at "VPXADMIN.CLEANUP_EVENTS_TASKS_PROC", line 1
ORA-06512: at line 1"

If you are running Microsoft SQL, you may experience the error:

The DELETE statement conflicted with the SAME TABLE REFERENCE constraint "FK_PARENT_TASK_REF". The conflict occurred in database "VCenter_DB", table "dbo.VPX_TASK", column 'PARENT_TASK_ID'. [SQLSTATE 23000] (Error 547) The statement has been terminated. [SQLSTATE 01000] (Error 3621). The step failed.

vcenter-db-stored-procedures

Resolution

This issue is caused by a database constraint conflict. This is a known issue which prevents the Tasks and Events cleanup job from properly running under certain circumstances. Updated stored procedures are now available which resolve the problem.

To resolve this issue for Microsoft SQL:

Download cleanup_events_mssql.zip (attached to this article).

Copy the zip file to the server which hosts the vCenter database and extract it.

Open up SQL Enterprise Manager and enter the appropriate credentials to gain access to SQL.

In the Object Explorer window navigate to the vCenter database > Programmability > Stored Procedures object.

Right-click cleanup_events_tasks_proc.

Click Delete to remove the existing stored procedure.

Click File > Open > File.

Select the cleanup_events_mssql.sql file.

Click OK.

Note: If prompted, enter the appropriate username and password.

Ensure that the selected database in the Available Database dropdown menu is the vCenter database and not Primary.

Click Execute. If the job is created successfully, a message saying Command(s) Completed successfully displays.

Click the Refresh button on the Object Explorer. The cleanup_events_tasks_proc stored procedure is recreated.

To resolve this issue for Oracle:

Download cleanup_events_oracle.zip (attached to this article).

Extract the zip file.

Open SQL Plus.

Click File > Open > File.

Select the cleanup_events_oracle.sql file.

Click OK.

Ensure that the vCenter Database is selected.

Click Execute Query. If the job is updated successfully a message confirming the procedure update is displayed.

Related Information

Note: This issue can also be resolved with a fresh installation of VCenter 4.0 U2.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

cleanup_events_oracle.zip

cleanup_events_mssql.zip

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
vCenter Server los gráficos de rendimiento solo muestran datos en tiempo real (1020903)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vCenter Server

Related Versions:

VMware vCenter Server 4.0.x

Take Our Survey

Support Assistant