天天看点

DDC从新配置连接数据库

在注册表中查找connectionstring来修改数据库连接串,修改数据库连接地址。

重启所有citrix的服务

使用下面的命令查看monitor和logging的connectionstring是否正确

Get-MonitorDataStore

Get-LogDataStore

如果不正确使用下面的命令来修改

$cs="xxx"

Set-MonitorDBConnection -Datastore Monitor -DBConnection $null

Set-MonitorDBConnection -Datastore Monitor -DBConnection $CS

Set-LogDBConnection -DataStore Logging -DBConnection $null

Set-LogDBConnection -DataStore Logging -DBConnection $cs

使用下面的命令重新注册service instance

Unregister Service Instance (Analytics only for

7.6)

Get-configregisteredserviceinstance | unregister-configregisteredserviceinstance #only run one time on a DDC

Get-Configserviceinstance | register-configserviceinstance

Get-Hypserviceinstance | register-configserviceinstance

Get-Acctserviceinstance | register-configserviceinstance

Get-AnalyticsServiceInstance | register-configserviceinstance

Get-Provserviceinstance | register-configserviceinstance

Get-Sfserviceinstance | register-configserviceinstance

Get-Monitorserviceinstance | register-configserviceinstance

Get-Envtestserviceinstance | register-configserviceinstance

Get-Brokerserviceinstance | register-configserviceinstance

Get-Logserviceinstance | register-configserviceinstance

Get-Adminserviceinstance | register-configserviceinstance

$ccs = Get-Configserviceinstance

$ccs | Reset-ConfigServiceGroupMemberShip

$ccs | Reset-LogServiceGroupMemberShip

$ccs | Reset-AdminServiceGroupMemberShip

$ccs | Reset-ProvServiceGroupMemberShip

$ccs | Reset-HypServiceGroupMemberShip

$ccs | Reset-AcctServiceGroupMemberShip

$ccs | Reset-AnalyticsServiceGroupMemberShip

$ccs | Reset-SfServiceGroupMemberShip

$ccs | Reset-BrokerServiceGroupMemberShip