Prepare PostgreSQL Database Before Upgrading vCenter Server - cleanup_orphaned_data_PostgresSQL.sql
search cancel

Prepare PostgreSQL Database Before Upgrading vCenter Server - cleanup_orphaned_data_PostgresSQL.sql

book

Article ID: 343082

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

The cleanup script cleans and purges any unnecessary or orphaned data in your vCenter Server database that is not used by any vCenter Server component.

Here are the documents which reference the
cleanup_orphaned_data_Postresql.sql which are missing from the ISO.

https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.upgrade.doc/GUID-7B1306D9-0B0D-4E01-8B9D-31B94F0ABC60.html
https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vcenter.upgrade.doc/GUID-7B1306D9-0B0D-4E01-8B9D-31B94F0ABC60.html
https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vcenter.upgrade.doc/GUID-40214325-EFD8-47E3-B5E1-3B46358A6177.html





Symptoms:
vCenter Server Upgrade Product Documentation asking customers to run a script which isn't available on the ISO image as outlined.

Environment

VMware vCenter Server Appliance 6.7.x
VMware vCenter Server Appliance 6.5.x
VMware vCenter Server 7.0.x

Cause

A known issue causes orphan data to be stored in the historical statistical tables.

Resolution


Please follow the product documentation for implementation of this script.

However for the Step 2.
  1. For vCenter Server, locate the cleanup_orphaned_data_PostgresSQL.sql script in the ISO image and copy it to your PostgreSQL server.
Please download the script from the attachments section of this KB article.


Attachments

cleanup_orphaned_data_Postgres get_app