Sometimes in a POC project, you often want to replace a new database, or database migration recovery database, you can refer to the following methods to recover the database
1, when the database server needs to do disaster recovery, first ensure that the XenDesktop database has a backup, database TSCTXVC001
2. Restore the new database server, TSCTXDB101
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6D/CE/wKiom1VsDL-T72FqAACeKqzhe7w764.jpg "title=" 2013-07-19_113607.jpg "alt=" Wkiom1vsdl-t72fqaacekqzhe7w764.jpg "/>
3. Open a new database server and make sure that the DDC server has its own login on the new database server, there is no need to create a command
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6D/CA/wKioL1VsEoDg7TdEAAJKApcxBqE245.jpg "title=" Qq20150601155919.jpg "alt=" Wkiol1vseodg7tdeaajkapcxbqe245.jpg "/>
4. Ensure the DDC native login name, have Citrix related service role, and give permission
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6D/CA/wKioL1VsFK3i7pLLAAI0s64cvzM418.jpg "title=" 1.jpg " alt= "Wkiol1vsfk3i7pllaai0s64cvzm418.jpg"/>650) this.width=650; src= http://s3.51cto.com/wyfs02/M02/6D/CE/ Wkiom1vse2ybhrabaacmjqebjvk697.jpg "title=" 2013-07-19_142857.jpg "alt=" Wkiom1vse2ybhrabaacmjqebjvk697.jpg "/>
5. Use the administrator to run PowerShell on the DDC server, emptying the current DDC and database connection configuration
ASNP citrix.*
Set-configdbconnection-dbconnection $null
Set-acctdbconnection-dbconnection $null
Set-hypdbconnection-dbconnection $null
Set-provdbconnection-dbconnection $null
Set-pvsvmdbconnection-dbconnection $null
Set-brokerdbconnection-dbconnection $null
6, this is to open the DDC console, back to the initial state, you can reconfigure, but slower, you can also use the command
7, the use of command configuration, as follows
Set-configdbconnection-dbconnection "SERVER=TSCTXDB101.CSDCCSH.TS;DATABASE=TSDDC; Trusted_connection=true "
Set-acctdbconnection-dbconnection "SERVER=TSCTXDB101.CSDCCSH.TS;DATABASE=TSDDC; Trusted_connection=true "
Set-hypdbconnection-dbconnection "SERVER=TSCTXDB101.CSDCCSH.TS;DATABASE=TSDDC; Trusted_connection=true "
Set-provdbconnection-dbconnection "SERVER=TSCTXDB101.CSDCCSH.TS;DATABASE=TSDDC; Trusted_connection=true "
Set-pvsvmdbconnection-dbconnection "SERVER=TSCTXDB101.CSDCCSH.TS;DATABASE=TSDDC; Trusted_connection=true "
Set-brokerdbconnection-dbconnection "SERVER=TSCTXDB101;DATABASE=TSDDC; Trusted_connection=true "
8. Refresh the console to see normal recovery
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6D/CA/wKioL1VsFbnhiJJSAAQZh5nB8Bg278.jpg "title=" 2013-07-19_151024.jpg "alt=" wkiol1vsfbnhijjsaaqzh5nb8bg278.jpg "/> above method, test for XD5.6. Latest version, unverified test ....
This article is from the "liy-l" blog, make sure to keep this source http://liy116.blog.51cto.com/2991406/1657171
XenDesktop 5.6 Database Recovery test, switch to a new database