Configure Operations Manager to communicate with SQL Server
If after installing System Center Operations Manager, you move the Operations Manager operational or data warehouse database to a different SQL Server instance, move the databases to a SQL Server Always On availability group, or reconfigure the SQL Server instance, you need to follow the steps below to reconfigure the management group to reference the new TCP/IP Port, instance name, or computer name.
SQL Instance Naming
For all of the steps below where a SQL instance network name is referenced, use the format computername\instancename
followed by a comma, and then the SQL Server port number (computername\instancename,portNumber
). If you're hosting the database on a SQL Server cluster, replace computername with the virtual network name of the SQL cluster resource group. If the database is part of a SQL Always On Availability Group, replace computername\instancename
with the availability group listener name in the format of AvalabilityGroupListenerName,portNumber
.
Configure settings for the operational database
On each management server run regedit from an elevated Command Prompt, then edit:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\System Center\2010\Common\Database
Change DatabaseServerName with your operational database SQL instance network name.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup
Change DatabaseServerName with your operational database SQL instance network name.
On each management server, edit the following file:
%ProgramFiles%\System Center 2016\Operations Manager\Server\ConfigService.config
for System Center 2016 - Operations Manager, or for all later releases (2019, and 2022),%ProgramFiles%\Microsoft System Center\Operations Manager\Server\ConfigService.config
:Under the tag
<Category Name=”Cmdb”>
, change the value for ServerName to your operational database SQL instance network name and change the value for PortNumber to the SQL Server port number.Under the tag
<Name=”ConfigStore”>
, change the value for ServerName to your operational database SQL instance network name and change the value for PortNumber to the SQL Server port number.
On the SQL Server instance hosting the operational database, configure the following:
a. Open SQL Server Management Studio.
b. In the Object Explorer pane, expand Databases, expand the operational database (for example, OperationsManager), expand Tables, right-click
dbo.MT_Microsoft$SystemCenter$ManagementGroup
, and select Edit Top 200 Rows. In the results pane, scroll to the right to the column titledcolumn.SQLServerName_<GUID>
.c. In the first row, enter your operational database SQL instance network name.
d. Right-click
dbo.MT_Microsoft$SystemCenter$OpsMgrDB$AppMonitoring
and select Edit Top 200 Rows. In the results pane, scroll to the right to the column titledMainDatabaseServerName_<GUID>
.e. In the first row, enter your operational database SQL instance network name.
f. Right-click
dbo.MT_Microsoft$SystemCenter$OpsMgrDB$AppMonitoring_Log
and select Edit Top 200 Rows. In the results pane, scroll to the right to the column titledPost_MainDatabaseServerName_<GUID>
.g. In the first row, enter your operational database SQL instance network name.
Configure settings for the data warehouse database
On each management server, run regedit from an elevated Command Prompt, and then edit:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup
Change DataWarehouseDBServerName to your data warehouse database SQL instance network name.Open SQL Server Management Studio, connect to the SQL Server instance hosting the operational database.
In the Object Explorer pane, expand Databases, expand the operational database (for example, OperationsManager), expand Tables, right-click
dbo.MT_Microsoft$SystemCenter$DataWarehouse
, and select Edit Top 200 Rows.In the results pane, scroll to the right to the column titled
MainDatabaseServerName_<GUID>
.In the first row, enter your data warehouse database SQL instance network name.
Right-click
dbo.MT_Microsoft$SystemCenter$DataWarehouse$AppMonitoring
, and select Edit Top 200 Rows.In the results pane, scroll to the right to the column titled
MainDatabaseServerName_<GUID>
.In the first row, enter your data warehouse database SQL instance network name.
Right-click
dbo.MT_Microsoft$SystemCenter$DataWarehouse$AppMonitoring_Log
, and select Edit Top 200 Rows.In the results pane, scroll to the right to the column titled
Post_MainDatabaseServerName_<GUID>
.In the first row, enter your data warehouse database SQL instance network name.
Right-click
dbo.MT_Microsoft$SystemCenter$DataWarehouse_Log
, and select Edit Top 200 Rows.In the results pane, scroll to the right to the column titled
Post_MainDatabaseServerName_<GUID>
.In the first row, enter your data warehouse database SQL instance network name.
Right-click
dbo.MT_Microsoft$SystemCenter$OpsMgrDWWatcher
, and select Edit Top 200 Rows.In the results pane, scroll to the right to the column titled
DatabaseServerName_<GUID>
.In the first row, enter your data warehouse database SQL instance network name.
Right-click
dbo.MT_Microsoft$SystemCenter$OpsMgrDWWatcher_Log
, and select Edit Top 200 Rows.In the results pane, scroll to the right to the column titled
Post_DatabaseServerName_<GUID>
.In the first row, enter your data warehouse database SQL instance network name.
In the Object Explorer pane, expand Databases, expand the data warehouse database (for example, OperationsManagerDW), expand Tables, right-click
dbo.MemberDatabase
, and select Edit Top 200 Rows.In the results pane, scroll to the right to the column titled
column.ServerName
.In the first row, enter your data warehouse database SQL instance network name.
On the SQL Server instance hosting the operational database, configure the following:
a. Open SQL Server Management Studio.
b. In the Object Explorer pane, expand Databases, and select the operational database (for example, OperationsManager).
c. Select New Query on the menu, run the following query to find the GUIDs corresponding to the property name called MainDatabaseServerName, and note the results (the query should return 2 records):
select * from [dbo].[ManagedTypeProperty] where [ManagedTypePropertyName] like 'MainDatabaseServerName'
d. Expand the operational database (for example, OperationsManager), expand Tables, right-click
dbo.GlobalSettings
, and select Edit Top 200 Rows.e. In the results pane, scroll to the right of the column titled
column.ManagedTypePropertyId
.f. Find the row with a GUID that corresponds to one of those GUIDs returned by the query above (normally row number 8), and enter your data warehouse database SQL instance network name.
Update Reporting server
Perform the following steps to modify the configuration of Operations Manager reporting server component after you've updated the configuration of the Reporting data warehouse database.
Sign in to the computer hosting the Operations Manager Reporting server.
Run regedit from an elevated Command Prompt, then edit:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Reporting
. Change DWDBInstance tocomputer\<instance>
followed by a comma, and then the SQL Server port number(computer\instance,portNumber)
. If you're hosting the data warehouse database on a SQL Server cluster, replace computer with the virtual network name of the cluster. If the database is part of a SQL Always On Availability Group, replacecomputer\<instance>
with the availability group listener name in the format of<AvalabilityGroupListenerName,portNumber>
.Select OK.
Open a browser and go to the reporting webpage,
http://localhost/reports_instancename
. If there's no named instance, go tohttp://localhost/reports
.Select Show Details, and select Data Warehouse Main. Locate Connection string and the line that reads
source=<computer>\<instance>;initial
.Change the Connection string to contain your data warehouse database SQL instance network name.
- Example Connection string:
data source=YourSQLServer.contoso.com;initial catalog=OperationsManagerDW;Integrated Security=SSPI
- Example Connection string:
data source=SQL1.contoso.com\SQLINST1,1234;initial catalog=OperationsManagerDW;Integrated Security=SSPI
- Example Connection string:
Select Apply.
To change the connection string for AppMonitoringSource, select Application monitoring, and select .NET monitoring.
Select AppMonitoringSource.
On the AppMonitoringSource page, select Properties, and change Connection string to contain your data warehouse database SQL instance network name.
Select Apply.
Close the browser.
Next steps
To understand the sequence and steps for moving the Operations Manager operational database to a new SQL Server instance, see How to move the Operational database.
To understand the sequence and steps for moving the Operations Manager Reporting data warehouse database to a new SQL Server instance, see How to move the Reporting data warehouse database.