Step-By-Step Upgrade SCOM 1807 database to SQL Server 2017

0fbad-featured_image-scom_1807_sql_2017.png

In this guide we will go through on how to perform an upgrade of the SCOM 1807 SQL Server database, we will be performing an upgrade from SQL Server 2016 SP1 to SQL Server 2017.

There is one new thing to keep note of when installing SQL Server 2017, SQL Reporting Services is now a separately installed feature and needs to be downloaded separately.

Contents

  • Prerequisites

  • Back up the SQL Server Reporting Server database

    • Back up the SQL Server Reporting Server encryption key

    • Back up the SQL Server Reporting Server configuration files

    • Uninstalling the SCOM Reporting Server

    • Upgrading the SQL Server to 2017

    • Installing the SQL Server Reporting Services 2017

      • Configure the SQL Server Reporting Services 2017

      • Installing the SCOM Report Server

      • Verifying the installation of the SCOM Report Server

Prerequisites

SQL Server Version

SQL Server 2017 (14.x) supports upgrade from the following versions of SQL Server:

  • SQL Server 2008 SP4 or later.

  • SQL Server 2008 R2 SP3 or later.

  • SQL Server 2012 SP2 or later.

  • SQL Server 2014 or later.

  • SQL Server 2016 or later.

System Center Operations Manager Version

  • System Center Operations Manager 1807.

Back up the SQL Server Reporting Server database

Before installing, uninstalling, or upgrading always make sure to have a backup, in case something goes wrong or doesn't go as planned.

We will now go through how to backup the SQL Server Reporting server, log on to the server hosting the SQL Server Reporting server database(s).

1. On the server hosting the SCOM SQL Server Reporting Server database, open the SQL Management Studio.

e626a-scom1807_sql2017_4.png

2. Once the SQL Management Studio has opened, make sure to have the SCOM instance selected, and then click Connect.

71c09-scom1807_sql2017_5.png

(In this guide the SCOM server is named SCOM and the SQL instance is named SCOMDB)

3. We should now be connected to our SCOM instance, expand Databases on the left pane, we should then see our SCOM Report Server database(s).

007c1-scom1807_sql2017_6.png

4. To backup the SCOM Report Server database, right click on the ReportServer database, choose Tasks and then click Back Up.

12dba-scom1807_sql2017_10.png

5. A Back Up Database window will open up. select the Backup type to Full, make sure the Backup component is set to Database, and then select a destination where to save the backup, finally click OK to start the backup.

8436d-scom1807_sql2017_11.1.png

6. Once the backup has completed, we will be notified by a pop up window, click OK  twice to close the backup windows.

2248c-scom1807_sql2017_12.png

7. Now we will perform the same steps for the SCOM Report Server temp database,  right click on the ReportServer Temp database, choose Tasks and then click Back Up.

12dba-scom1807_sql2017_10.png

8. The Back Up Database window once again open up. make sure the Backup type is set to Full, and that the Backup component is set to Database, select a destination where to save the backup and finally click OK to start the backup.

8436d-scom1807_sql2017_11.1.png

9. Once the backup is done, click OK twice to close the backup windows.

2248c-scom1807_sql2017_12.png

10. Let's make a final check to see that the backups actually got created, head to the following folder:

D:\Program Files\Microsoft SQL Server\MSSQL13.SCOMDB\MSSQL\Backup

Note: The drive letter is where the SQL Server is installed.

3bd6e-scom1807_sql2017_12.1.png

We have now verified that the backups have been created.

Back up the SQL Server Reporting Server encryption key

We will now go through how to backup the SQL Server Reporting Services encryption key.

1. Open up the Reporting Services Configuration Manager console, make sure both Server Name and Report Server Instance are correct, then click Connect.

0fd1b-scom1807_sql2017_13.png

2. Now head to the Encryption Keys tab, which can be found on the left pane at the bottom.

1522f-scom1807_sql2017_14.png

3. Now select Backup to start backing up the encryption keys.

13e87-scom1807_sql2017_15.png

4. Next specify a file that will contain the stored key and to which location the the key will be saved (the key will be saved in a .snk file extension).

bff51-scom1807_sql2017_16.png

5. Finally come up with a strong password, remember to write it down!

17ab8-scom1807_sql2017_17.png

6. Click OK to finalize the backup of the encryption key.

d5774-scom1807_sql2017_19.png

7. The encryption key should now have been backed up, the results will be shown at the bottom of the Reporting Services Configuration Manager window.

9279b-scom1807_sql2017_18.png

We have now created a backup of our SQL Server Reporting Services encryption key.

Back up the SQL Server Reporting Server configuration files

The next thing to back up is the SQL Server Reporting Services configuration files, there are five (5) to back up.

The files:

  • Rsreportserver.config

  • Rssvrpolicy.config

  • Reportingservicesservice.exe.config

  • Web.config (for the Report Server ASP.NET application)

  • Machine.config (for ASP.NET)

You can also find the location of the SQL Server Reporting Services configuration files from here:

https://docs.microsoft.com/en-us/sql/reporting-services/report-server/reporting-services-configuration-files?view=sql-server-2017

To back up these configuration files we will simply copy them to a safe location.

1. Most of the SQL Server Reporting Services configuration files will be located where the SQL Server Reporting Services is installed.

Example: C:\Program Files\Microsoft SQL Server\MSRS13.YourSCOMInstanceName\Reporting Services\ReportServer

2. Browse to the folder where our Report Server is installed.

25bc2-scom1807_sql2017_20.png

3. Locate and copy the following three (3) configuration files:

web.config, rsreportserver.config & rssrvpolicy.config.

6ae26-scom1807_sql2017_21.png

4. Copy the three (3) files to another location so you have a back up of the files.

021a6-scom1807_sql2017_22.png

5. Next head to the bin folder within the Report Server installation folder.
Example: D:\Program Files\Microsoft SQL Server\MSRS13.SCOMDB\Reporting Services\ReportServer\bin

0d15f-scom1807_sql2017_23.png

6. Locate the following configuration file:
Reportingservicesservice.exe.config and copy it.

49575-scom1807_sql2017_24.png

7. Copy the configuration file to another location so you have a back up of the files.

021a6-scom1807_sql2017_22.png

8. Finally we will locate the last configuration file, it can be found from the following location:

32-bit

%windir%\Microsoft.NET\Framework\[version]\config64-bit

%windir%\Microsoft.NET\Framework64\[version]\config

9. Locate and copy the Machine.config file.

eeb61-scom1807_sql2017_27.png

10. Copy the configuration file to another location so you have a back up of the files.

a7f27-scom1807_sql2017_28.png

We have now made a copy of all the required SQL Server Reporting Services configuration files.

Uninstalling the SCOM Reporting Server

In order to be able to reinstall the SCOM Reporting Server, we will need to remove any data that has been left behind from the previous installation.

1. Go to the Control Panel on the server where the SQL Server Reporting Services is installed.

0318a-scom1807_sql2017_29.png

2. In the Control Panel, click on Uninstall a Program which can be found under Programs.

df153-scom1807_sql2017_30.png

3. Locate the System Center Operations Manager, select it and then click on Uninstall/Change.

0b862-scom1807_sql2017_31.png

4. An Operations Manager setup window will appear, click on Remove a feature.

c15d4-scom1807_sql2017_32.png

5. In the next window we will be able to select which SCOM feature we want to uninstall, select Reporting server and then click on Uninstall.

7826a-scom1807_sql2017_33.png

6. Once the uninstallation is complete, click on Close to exit the Operations Manager setup wizard.

b5c59-scom1807_sql2017_34.png

7. Now we will need to remove any data related to the SCOM Reporting Server that's been left behind, to do this we will use a tool called ResetSRS.exe which can be found on the SCOM installation disc/ISO.

8. Mount the SCOM installation ISO (if you don't have one, download here). by right clicking the ISO file and select Mount.

9ce98-scom1807_sql2017_35.1.png

9. We should now have the SCOM 1801 installation ISO mounted.

28d71-scom1807_sql2017_37.png

10. We will need to extract the contents of the SCOM_1801_EN.EXE file, open it and extract the installation files locally on the SCOM server.

54968-scom1807_sql2017_38.png

11. Once the extraction is complete, navigate to the extracted SCOM installation files folder.

1d7d3-scom1807_sql2017_39.png

12. Now head to the SupportTools folder within the System Center Operations Manager (the SCOM installation files folder) folder.

5c8f7-scom1807_sql2017_40.png

13. Then head to the AMD64 folder.

018e7-scom1807_sql2017_41.png

14. Now copy the ResetSRS.exe file to a local folder (for example C:\Temp).

3faaf-scom1807_sql2017_42.png
0a3db-scom1807_sql2017_43.png

15. Now right click your start button and open up Command Prompt(Admin).

de8aa-scom1807_sql2017_44.png

16. Change the directory to where we copied the ResetSRS.exe tool, in our case C:\Temp.

e9e16-scom1807_sql2017_45.png

17. Run the ResetSRS.exe tool as follows: ResetSRS.exe

The SQL Server instance name is the SQL Server instance that SQL Reporting Services is installed on. (Default instance is: MSSQLSERVER).

In our case the instance name is: SCOMDB.

23dcd-scom1807_sql2017_46.png

18. We will now be prompted to enter an account to use for setting up the database connection, make sure you have sufficient permissions to the database.

1c95b-scom1807_sql2017_48.png

19. Once the credentials have been entered and the restore has completed, we should see the following:

413c1-scom1807_sql2017_47.png

We have now successfully deleted any leftover data.

Upgrading the SQL Server to 2017

Now it's time to perform an upgrade of the SQL Server 2016 to SQL Server 2017.

1. Mount the SQL Server 2017 ISO file on the SCOM database server.

d5cdd-scom1807_sql2017_49.png

2. Once mounted, right click and open the setup.exe with Run as administrator.

430c9-scom1807_sql2017_50.png

3. The SQL Server Installation Center window will now open up, head to the Installation pane on the upper left.

150eb-scom1807_sql2017_51.png

4. At the bottom of the SQL Server Installation Center window, click on Upgrade from a previous version of SQL Server.

8870f-scom1807_sql2017_52.png

5. An Upgrade to SQL Server 2017 wizard will open up, enter your SQL Server product key and click Next.

8995d-scom1807_sql2017_53.png

6. Check the box I accept the license terms and then click Next to continue.

386aa-scom1807_sql2017_54.png

7. Next up check the box if you want Microsoft Update to check for updates, if not just leave it unchecked and click Next to continue.

f7d6e-scom1807_sql2017_55.png

8. In the next step we will select which SQL instance we want to upgrade, if you have multiple SQL instances on the same server make sure to select the SCOM instance, click Next to continue.

957b5-scom1807_sql2017_56.png

9. In the following step the Upgrade to SQL Server 2017 wizard will give us a warning to tell us that the SQL Reporting Services will be uninstalled, check the mark for Uninstall Reporting Services and then click Next.

2b00a-scom1807_sql2017_57.png

10. Next up, we can see which SQL features will be upgraded, click Next to continue.

8abc2-scom1807_sql2017_58.png

11. In the Instance Configuration window there's no change needed, click Next to continue.

40d14-scom1807_sql2017_59.png

12. In the Server Configuration window we don't need to change anything, click Next to continue.

947be-scom1807_sql2017_60.png

13. In the Full-Text Upgrade window, choose the an option that suits you the best, we will go with the default Import, click Next to continue.

b7db6-scom1807_sql2017_61.png

14. We are now ready to upgrade, click on Upgrade to start the upgrade process.

c54db-scom1807_sql2017_62.png

15. Once the upgrade is completed, press OK and Close to finish.

69b39-scom1807_sql2017_63.png

We have now successfully upgraded to SQL Server 2017.

Installing the SQL Server Reporting Services 2017

Since SQL Server 2017, the Reporting Services is no longer part of the SQL installation media so we will have to download and install it separately. SQL Server Reporting Services 2017 can be downloaded from here.

1. Download the SQL Server Reporting Services 2017 to your SCOM database server.

1.png

2. Locate the SQL Server Reporting Services 2017 installer and open it as Run as administrator.

2.png

3. A Microsoft SQL Server 2017 Reporting Services setup wizard will open up, click Install Reporting Services.

3.png

4. Select Enter the product key and enter your product key for SQL Server 2017 and click Next to continue.

4.png

5. Check the I accept the license terms check box and click Next.

5.png

6. Click Next again.

6.png

7. Specify an install location and finally click Install to start installing the SQL Server 2017 Reporting Services

7.png

8. Once the installation is complete, click on Configure report server to launch the Reporting Services8. Configuration Manager.

8.png

Configure the SQL Server Reporting Services 2017

1. Select the SCOM Reporting Service instance and click Connect.

1A.png

2. Head to the Database tab on the left, and then select Change database.

2A.png

3. Select Choose an existing report server database and click Next.

3A.png

4. Make sure we have connectivity to the database, we can test this by clicking Test Connection, if the test passed click OK and click Next to continue.

4A.png

5. Select the SCOM ReportServer database from the drop-down list, and then click Next.

5A.png

6. Specify the credentials of an existing account that is used to connect to the SCOM Reporting Services database, then click Next.

I will go with my sysadmin account and configure my specific SQL Reporting Services account later.

Note: If you used a specific account for the report server connection, make sure it is the account that was previously used.

6A.png

7. Have a look at the summary screen and verify that everything is correct, click Next to continue.

7A.png

8. Once the configuration is complete, click Finish.

8A.png

9. We have now configured the Reporting Services database and we should see the following:

9A.png

10. Next up we will restore the symmetric key that is used to encrypt the stored connection strings and credentials, head to the Encryption Keys tab and click on Restore.

10A.png

11. We will now need to locate the encryption key that we stored earlier.

11A.png

12. Locate the encryption key and then click Open.

12A.png

13. We will now need the password for our encryption key, locate it and write it down in the Password field and finish up by clicking OK.

13A.png

14. Once the encryption key has successfully been restored, we should see the following results:

14A.png

15. Next we will create and configure the Web Service and Web Portal URLs, head to the Web Service URL pane on the left of the Report Server Configuration Manager.

15A.png

16. In this guide we have everything on the default settings, if you have configured this, make sure to configure it as it was before, then click on Apply to configure the Web Service URL.

16A.png

17. Once done we should see green in the bottom of the window under Results.

17A.png

18. Next we will configure the Web Portal URL, head to the Web Portal URL pane on the left.

18A.png

19. Click on Apply to configure the Web Portal URL.

19A.png

20. We should once again see some green in the Results at the bottom of the window.

20A.png

21. Next we will delete the encrypted content as we will not need it anymore, head to the Encryption Keys tab in the Report Server Configuration Manager, and click on the Delete button within the Delete Encrypted Content.

21A.png

22. Now open up a Command Prompt (Admin) and type regedit to open the Windows Registry.

22A.png

23. In the Windows registry, head to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\SSRS\MSSQLServer\CurrentVersion

24. We should see a registry key with the name CurrentVersion, copy the value of the registry key.

24A.png

25. Head to the following registry path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\SSRS\Setup

25A.png

26. Now create a new String Value (REG_SZ) registry entry with the name Version and paste the version of the previous registry key (step 25).

26.1A.png
26.2A.png

27. Now we will need to restart the server for the changes to take effect.

Installing the SCOM Report Server

1. Open up the Control Panel, and click on Uninstall a program under Programs.

8f944-scom1807_sql2017_99.png

2. Locate and select the System Center Operations Manager and then click on Uninstall/Change.

2.png

3. In the Operations Manager Setup window, select Add a feature.

3.png

4. Next up check the Reporting server and click Next to continue.

4.png

5. All prerequisites should already be installed, click Next.

5.png

6. Select the SCOM Reporting Services Instance and click Next.

6.png

7. Now enter the account used for the Data Reader account, click Next to continue.

7.png

8. On the Diagnostic and Usage Data step, just click Next again to continue.

8.png

9. We will not be choosing to check for updates in this guide, choose which suits you the best and then click Next.

9.png

10. Finally click Install to start the installation of the SCOM Report Server.

10.png

11. Once the installation is complete, we should see the following:

11.png

12. Click Close to finish.

Verifying the installation of the SCOM Report Server

The last step is to verify that the newly upgraded SCOM Reporting is working.

  1. Open the Report Server Configuration Manager and connect to the SCOM report server instance.

ed7fc-scom1807_sql2017_112.png

2. Head to the Web Service URL tab, and click on the Report Server Web Service URL (for example: http://SCOMserver:80/ReportServer) to test if the report server opens.

2A.png

Once the URL opens, we should see something similar to this:

2B.png

3. Head back to the Report Server Configuration Manager and go to the Web Portal URL tab, now open the URL for the Web Portal (for example: http://SCOMserver:80/Reports) to test if the report web portal opens.

3A.png

Once the URL opens, we should see something similar to this:

3B.png

4. Lastly we will ensure that the health status of our SCOM management group.

Open the Operations Console, head to the Monitoring pane and find the Operations Manager folder and click on Management Group Health.

4A.png

If any of the above objects are in critical or warning status, make sure to investigate them.

We have now successfully upgraded our SCOM 1807's to SQL Server 2017!

Happy SCOM'ing!

Previous
Previous

Deleting ServiceNow Records via List Filter

Next
Next

Automatically raise incidents in ServiceNow from SCOM alerts - Alert Sync 1.0 is now live!