<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vSphere 4.1 to 5 Upgrade, Database Update Fails. in vSphere Upgrade &amp; Install Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227020#M12676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same issue and after 26 hours working on it i have found the solution !! first of all i was not as lucky as you because mine was production env.&lt;/P&gt;&lt;P&gt;to solve it find a vSphere 4.1 database that's running and have all the tables. Run SQL Mgmt Studio to connect to DB. Copy missing tables to your problematic DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've copied all VPX_LIC_* to problematic db. (because after i only copied vpx_lic_metdata i received another missing table info)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps : to get the table right click on it and select ''script table as --&amp;gt; Create to --&amp;gt; new query editor window''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any trouble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the Best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muharrem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 15:32:58 GMT</pubDate>
    <dc:creator>vmprofessor</dc:creator>
    <dc:date>2011-10-27T15:32:58Z</dc:date>
    <item>
      <title>vSphere 4.1 to 5 Upgrade, Database Update Fails.</title>
      <link>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227016#M12672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I'm trying to update our development VirtualCenter server to 5 and the upgrade fails when it tries to upgrade the database with the error "Exception thrown while executing SQL script". Looking in the VCDatabaseUpgrade.log file I find it's getting stuck on this command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;exec sp_rename 'VPX_LIC_METADATA', 'VPX_LIC_METADATA_OLD';&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;[10/19/2011 4:18:02 PM] Error: Failed to execute command: exec sp_rename 'VPX_LIC_METADATA', 'VPX_LIC_METADATA_OLD';&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;[10/19/2011 4:18:02 PM] Got exception: ERROR [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]No item by the name of 'VPX_LIC_METADATA' could be found in the current database 'vCenter', given that @itemtype was input as '(null)'.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;[10/19/2011 4:18:02 PM] Error while upgrading: ERROR [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]No item by the name of 'VPX_LIC_METADATA' could be found in the current database 'vCenter', given that @itemtype was input as '(null)'.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;[10/19/2011 4:18:02 PM] Info: Exiting Upgrade Wizard&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;[10/19/2011 4:18:02 PM] Successfully run: alter database [vCenter] set recovery SIMPLE&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After restoring the database and looking at it in SQL Explorer I see there is no VPX_LIC_METADATA table, the closest one being VPX_LICENSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have some insight as to why this might be occuring and what I can do to fix it? Let me know if you need any additional info or log files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks heaps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 05:47:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227016#M12672</guid>
      <dc:creator>GlobalChange</dc:creator>
      <dc:date>2011-10-19T05:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: vSphere 4.1 to 5 Upgrade, Database Update Fails.</title>
      <link>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227017#M12673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to &lt;A href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1029495"&gt;this KB Article&lt;/A&gt; there seems to be something gone wrong with your DB. Try the steps described in the KB Article. I think this will resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Bjoern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 09:07:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227017#M12673</guid>
      <dc:creator>rothb</dc:creator>
      <dc:date>2011-10-19T09:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: vSphere 4.1 to 5 Upgrade, Database Update Fails.</title>
      <link>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227018#M12674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bjoern,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the link, I followed the instructions but they didn't fix my problem. I'm not sure how it happened but it seems our database is missing several tables that the upgrade process looks for. After removing a couple lines from the database upgrade script (just the ones renaming the non-existant tables) I finally hit on a foreign key dependency error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did notice that the first part of the database upgrade script changes the database version number. Figuring that the database might be mislabelled as 4.1 instead of 4.0 (it's database looked similar to our other VirtualCenter servers which are 4.0) I tried changing the database version to see if that worked but unfortunately it didn't. I'm not entirely sure what's happened to our database but it doesn't seem to be upgradable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm installing a new server and adding all the hosts back in manually. It's only our dev environment so no big loss. If I encounter the same problem with our prod servers I'll come back to this dicussion.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 04:05:56 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227018#M12674</guid>
      <dc:creator>GlobalChange</dc:creator>
      <dc:date>2011-10-20T04:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: vSphere 4.1 to 5 Upgrade, Database Update Fails.</title>
      <link>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227019#M12675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What database are you running on 4.1.&lt;/P&gt;&lt;P&gt;If it is sql 2005 express than you may have some problems.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: PalatinoLinotype-Roman; "&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;MS SQL Server 2005 Express&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;supported :No&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;After you upgrade to a database server that is supported by vCenter&lt;/P&gt;&lt;P align="left"&gt;Server, you can install or upgrade to vCenter Server.&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;MS SQL Server 2005 &lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;supported:Yes&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;You can install or upgrade to vCenter Server.&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;MS SQL Server 2008 Express&lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;STRONG&gt;supported:No &lt;/STRONG&gt;&lt;/P&gt;&lt;P align="left"&gt;You can perform a fresh installation of vCenter Server 5.0.&lt;/P&gt;&lt;P&gt;You cannot upgrade because vCenter Server 5.0 is the first release that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above is a cutout from the PDF that VMware has for upgade path, if I understood it well.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:42:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227019#M12675</guid>
      <dc:creator>seadl</dc:creator>
      <dc:date>2011-10-27T14:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: vSphere 4.1 to 5 Upgrade, Database Update Fails.</title>
      <link>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227020#M12676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same issue and after 26 hours working on it i have found the solution !! first of all i was not as lucky as you because mine was production env.&lt;/P&gt;&lt;P&gt;to solve it find a vSphere 4.1 database that's running and have all the tables. Run SQL Mgmt Studio to connect to DB. Copy missing tables to your problematic DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've copied all VPX_LIC_* to problematic db. (because after i only copied vpx_lic_metdata i received another missing table info)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps : to get the table right click on it and select ''script table as --&amp;gt; Create to --&amp;gt; new query editor window''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any trouble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the Best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muharrem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 15:32:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Upgrade-Install/vSphere-4-1-to-5-Upgrade-Database-Update-Fails/m-p/1227020#M12676</guid>
      <dc:creator>vmprofessor</dc:creator>
      <dc:date>2011-10-27T15:32:58Z</dc:date>
    </item>
  </channel>
</rss>

