Vous êtes sur la page 1sur 6

20/04/2015

HowtomoveVirtualCenterDatabasefromSQLExpresstoSQLServer2005

Register
FreeRegistration

Knowledge
Base
BrowseKB

News
Viewlatestnews
items

Knowledge
Base
SearchKB

Articles
RecentArticles

Utilities
Downloads

Scripts
ScriptLibrary

Home / KnowledgeBase / VMWare /


HowtomoveVirtualCenterDatabase
fromSQLExpresstoSQLServer2005

Share
Actions
Howto
move
VirtualCenterDatabasefrom
SQLExpresstoSQLServer
2005
Author:NetworkAdminKB.com
Created:20090703
Modified:20091031

Information:
PerquisiteKnowledgeandAssumptions
HowtoconnecttotheembeddedSQLServer
(SQLEXP_VIM)usedbyVirtualCenter
HowtorestoreadatabaseinSQLServer2005
DBOorAdminPermissionstotheSQL2005
Server
AdminPermissionstotheVirtualCenterServer
1)StopalltheVirtualCenterServices

ArticleRating

Clicktorate
0Rating(s)
0
0
0
0
0

2)BackuptheexistingVirtualCenterDatabase
a.ConnecttotheembeddedSQLServer
(SQLEXP_VIM)
b.Runthefollowingcommandtobackup
theVIM_VCDB
BACKUPDATABASE
TODISK=
'C:\Backup\VIM_VCDB.bak'
WITHFORMAT

3)Optional:IfpresentbackuptheexistingUpdate
ManagerDatabase
a.ConnecttotheembeddedSQLServer
(SQLEXP_VIM)
b.Runthefollowingcommandtobackup
the
BACKUPDATABASE
TODISK=
'C:\Backup\VIM_UMDB.bak'
WITHFORMAT
http://networkadminkb.com/KB/a337/howtomovevirtualcenterdatabasefromsqlexpress.aspx

1/6

20/04/2015

HowtomoveVirtualCenterDatabasefromSQLExpresstoSQLServer2005

4)StopandDisabletheLocalSQLServer
(SQLEXP_VIM)services

5)RestoretheVirtualCenterDatabasetothenew
SQL2005Server
a.IwouldkeepthesameDBname,but
youcanchangeitifyoulike.
b.Seetheperquisitesformoreinformation
onhowtorestoreadatabase
6)Optional:IfpresentrestoretheUpdate
ManagerDatabase
a.IwouldkeepthesameDBname,but
youcanchangeitifyoulike.
b.Seetheperquisitesformoreinformation
onhowtorestoreadatabase
7)CreateaSQLLoginaccount
a.AccountName:VCAdmin
b.Password:any
c.UncheckEnforcePasswordexpiration
d.DefaultDatabase:theVirtualCenter
database

e.ClickOK
8)ConfigureVCAdminastheDatabaseOwnerof
theVirtualCenterDatabase
a.Runthefollowingcommandagainstthe
VirtualCenterDatabase
execsp_changedbowner
'VCAdmin'

b.YoucanverifythattheVCAdministhe
ownerofthedatabase.

http://networkadminkb.com/KB/a337/howtomovevirtualcenterdatabasefromsqlexpress.aspx

2/6

20/04/2015

HowtomoveVirtualCenterDatabasefromSQLExpresstoSQLServer2005

9)Optional:IfmovingtheUpdateManager
DatabaseconfigureVCAdminasOwnerofthe
UpdateManagerDatabase
10)ReconfiguretheODBCSettings
a.OpenDataSource(ODBC)
b.ClicktheSystemDSN
c.SelecttheVMWareVirtualCenter
DatabaseDSNname
d.ClickConfigure

e.TypeintheSQLServerandtheInstance
Name(ifany)

i. ClickNext
f.SelectWithSQLServer
authentication
g.TypeintheVCAdminusernameand
password

i. ClickNext
h.Changethedefaultdatabasetothe
VirtualCenterDatabase(VIM_VCDBif
usingthedefaultname).

http://networkadminkb.com/KB/a337/howtomovevirtualcenterdatabasefromsqlexpress.aspx

3/6

20/04/2015

HowtomoveVirtualCenterDatabasefromSQLExpresstoSQLServer2005

i. ClickNext
i.ClickFinish
j.ClicktheTestDataSourcebuttonto
verifyeverythingisworking.
k.ClickOK
l.ClickOK
11)Optional:ReconfigureODBCSettingsforthe
UpdateManagerDatabase
a.Repeattheprocedurefromabove
adjustingfortheUpdateManager
Databaseasneeded.
12)UpdatetheUsernameandpasswordusedby
VirtualCenter.
a.LogintotheVirtualCenterServer
console.
b.RunRegedit
i.Goto:
HKLM\SOFTWARE\VMware,
Inc.\VMware
VirtualCenter\DB
ii.Theuserthatisconfiguredfor
databaseconnectivityisinthe
registrykey.
iii.Rightclickonthe
selectmodify.
iv.ChangetheValuedatatothe
nameofthenewuseraccount
(VCAdmin)
c.Openacommandprompt
i.Runthefollowingcommands
1.CD/DC:\Program
Files\VMware\VMware
VirtualCenter2.0
a.

2.vpxd.exep
http://networkadminkb.com/KB/a337/howtomovevirtualcenterdatabasefromsqlexpress.aspx

4/6

20/04/2015

HowtomoveVirtualCenterDatabasefromSQLExpresstoSQLServer2005

a.

b.

13)Optional:UpdatetheUsernameandpassword
forUpdateManager
a.UsetherepairoptionofontheUpdate
Manageradd/removeprogramsitemto
configurethenewUsernameand
passwordfortheUpdateManagerDSN.
b.HowtoRepairtheVMwareUpdate
ManagerDatabaseorInstallationfiles
14)StartalltheVirtualCenterServices
15)LogintoVirtualCenter
16)VerifyDatabaseConnections
a.UsingtheSQLActivityMonitorverify
connectionstotheVCandUpdate
ManagerDatabases

b.Optional:Verifyconnectionstothe
UpdateManagerDatabaseaswell.
17)UsethefollowingKBArticlefromVMWareto
createSQLAgentJobsasneeded.
a.AfterVirtualCenter2.5upgrade:
Performancedataiscurrentlynot
availableforthisentity
b.ThiswillrequiretheVCAdminaccount
tohavetheServerRole
permissiontotheSQLServer.This
permissioncanberemovedafter
configuringthejobs.
c.UsethemostrecentUpgradevXtovY
folderasappropriateforyour
environment.

http://networkadminkb.com/KB/a337/howtomovevirtualcenterdatabasefromsqlexpress.aspx

5/6

20/04/2015

HowtomoveVirtualCenterDatabasefromSQLExpresstoSQLServer2005

MoreInformation:
HowtoRepairaVirtualCenterInstallationorDatabase
MovingaVirtualCentreDBfromoneSQLServerto
another
MovingtheVirtualCenterSQLDatabase
Troubleshootingthedatabasedatasourceusedby
VirtualCenterServer
MigratevCenterdatabasefromSQLExpresstofull
SQLServer

ArticleID:337,CreatedOn:20/09/2011,
Modified:20/09/2011

Comments(0)
AddComment

ShowMore(0of0)

http://networkadminkb.com/KB/a337/howtomovevirtualcenterdatabasefromsqlexpress.aspx

6/6

Vous aimerez peut-être aussi