How to change the SQL instance connected to PME
Issue
The customer would like a procedure for migrating their PME databases to a new server without requiring the software to be uninstalled.
Product Line
Power Monitoring Expert 2020
Power Monitoring Expert 2021
Power Monitoring Expert 2022
Power Monitoring Expert 2023
Power Monitoring Expert 2024
Environment
SQL Server Management Studio (SSMS)
RegEdit
Resolution
*Warning: Take backups of any files prior to modifying them. Ensure the backups are in a location that will not be overwritten (i.e. the Desktop).
*Warning: This article contains information about editing the registry. Improper changes to the registry can permanently damage the operating system. Always back up the registry before making any changes.*
On the old database server
- Backup the 4 PME databases from the source SQL instance:
- (ApplicationModules, ION_Data, ION_Network, ION_SystemLog)
- Migrate the database backups to the new database server.
On the PME application server
- Stop all of the services associated with the Power Monitoring Expert software
- For more information about how to stop all PME associated services, please see article # FA366487
On the old database server
- Detach the 4 databases from the source SQL instance
On the PME application server
- Open the Registry Editor “regedit”
- Navigate to the following directory
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Schneider Electric\Power Monitoring Expert\[Version # (i.e. 11.0)]\Databases - Back up all of the "Databases" registry keys
- Right-click the "Databases" registry keys
- Export the selected keys to a file folder that backups have been designated for
- Update the registry key in the “Data” field to match the new database server name and instance name
- Do this for all 4 databases (Use the following example image as a guide:
-
Tip: If both the server name and the instance name have changed, be sure to update the registry key accordingly:
i.e. SERVER1\ION => SERVER2\ION2Alternatively, if only the instance name has changed, update the registry accordingly:
i.e. SERVER1\ION => SERVER1\ION2
-
Still within the RegEdit application, navigate to the following directory:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Schneider Electric\Power Monitoring Expert\11.0\ServiceMetadataBackup all of the "ServiceMetaData" registry keys
Update the registry key in the “Dependencies” field to match the new SQL Service name if it changed.
Example of the default MS SQL Service name:
- The following registry keys need to be updated:
- AlarmServiceHost
- CoreServicesHost
- CoreServicesHostx64
- DataServicesHost
- DataServicesHostx64
- IONDiagnosticAndUsage
- PMALARM
- PMLNetman
- ProviderEngineHost
- ProviderEngineHostx64
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\config\cfg\logsrv\LOGINSERTER.<MACHINENAME>
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\config\cfg\logsrv\QUERYSERVER.<MACHINENAME> 12. Update the InstallInfo.xml
-
- Open the InstallInfo.xml file using a text editor. The InstallInfo.xml is located in the following directory:
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\Uninst_PowerMonitoringExpert - Look for instances of the old database server name and change it to the new name. There are two of them, globalEEMDBName and globalEEMDbServer.
- For example:
globalEEMDBName="OLDSERVER" => globalEEMDBName="NEWSERVER" globalEEMDbServer="OLDSERVER\ION" => globalEEMDbServer="NEWSERVER\ION"
- For example:
- If there has ben a cumulative update installed on the server then the InstallInfo.xml for that update will also need to be edited in the same way. InstallInfo.xml can be found in the directory containing that update.
- For example Cumulative Update 1 for PME 2022 would be located in the following directory:
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\Uninst_PME 2022 Cumulative Update 1
- For example Cumulative Update 1 for PME 2022 would be located in the following directory:
- Open the InstallInfo.xml file using a text editor. The InstallInfo.xml is located in the following directory:
On the PME application server
14. Run a Reconfigure
15. If any Cumulative Updates have been installed rerun those as well
Udgivet til: Schneider Electric Danmark
Brug for hjælp?
Produktvælger
Find hurtigt og nemt de rette produkter og det rette tilbehør til dine anvendelser.
Få et tilbud
Start din salgsforespørgsel online, så vil du blive kontaktet af en ekspert.
Find forhandler
Find den nærmeste Schneider Electric-distributør.
Hjælpecenter
Find supportressourcer til alle dine behov på ét sted.