SCOM 2016 Scheduled Maintenance Mode won’t run if you picked a different database name during install

There is a bug in SCOM 2016 where if you choose a different Operations Manager Database Name during install, schedule maintenance mode won’t work!

The Jobs will run but nothing is put into Maintenance Mode. You won’t get an error in SCOM or in the event log.

As you can see below I named my “OperationsManager” Database “SCOMDB”

The stored procedure has ‘OperationsManager’ hard coded as the Database name so it fails!

The workaround is to change the stored procedure that creates these Schedules.

The stored procedure name is p_MaintenanceScheduleCreate

Right click Modify.

Find the line

	SET @SQLCommand = CONCAT('EXEC OperationsManager.dbo.p_MaintenanceScheduleJobStep ''', @ScheduleId, '''');

 

and change OperationsManager to your database name and click Execute

You will have to delete all your Schedules in the console.

Now they run without issue.

This is a known bug and will be fixed in SCOM 2016 UR3.

 

 

 

 

Trackbacks/Pingbacks

  1. System Center Mart 2017 Bülten – Sertaç Topal - March 22, 2017

    […] SCOM 2016 Scheduled Maintenance Mode won’t run if you picked a different database name during … […]

  2. System Center Mart 2017 Bülten – Christopher Golden Blog - March 22, 2017

    […] SCOM 2016 Scheduled Maintenance Mode won’t run if you picked a different database name during … […]

  3. System Center Mart 2017 Bülten – IT-News von PC-Meister - March 22, 2017

    […] SCOM 2016 Scheduled Maintenance Mode won’t run if you picked a different database name during inst… […]

  4. System Center Mart 2017 Bülten – Sertac Topal - August 6, 2017

    […] SCOM 2016 Scheduled Maintenance Mode won't run if you picked a different database name during instal… […]

Leave a Reply