Quantcast
Channel: VMware Communities: Message List - vCenter™ Server
Viewing all articles
Browse latest Browse all 15787

Re: Very large VCI_PACKAGE_LOCALES table (Update Manager database)

$
0
0

Hello,

 

I cannot find anything on how to purge the update manager database.  I am using SQL express for this right now and needed to purge data myself.  Below is a SQL script i used while logged into the Update manager database.  I have have not had any issues since running it. I basically deleted all entries that have Microsoft in the name.  If you do this i suggest backing up the database first.   

 

The below script will delete 30000 rows at a time so if you have simple loggin enabled you will not grow your transaction logs by much.

 

WHILE (2 > 1)

BEGIN

DELETE top (30000) FROM VCI_PACKAGE_LOCALES

where DOWNLOADURL like '%microsoft%'

    IF @@ROWCOUNT = 0  -- no more to delete

      BREAK;

    -- 1 second delay loop to allow other processes to "jump in"

    WAITFOR delay '00:00:01'

END

GO


Viewing all articles
Browse latest Browse all 15787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>