在系統資料庫中查找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