REFERENCE: HOW TO: : Move the backend SQL Server Synchronization Service Database

REFERENCE: HOW TO: : Move the backend SQL Server Synchronization Service Database

 

OVERVIEW

A need may arise to move the backend SQL Server database for the FIM Synchronization Service.  One good example would be the need to split the FIM backend databases from one SQL Server instance to two separate SQL Server instances, or simply just moving the FIM Synchronization Service Database to another SQL Server.

Previously, we were not able to do this without uninstalling and reinstalling the Synchronization Service.  Now we can simply update a registry key and ensure that the Synchronization Service Account has permissions.

I took some time to test and put together the following steps to outline the process of moving the backend FIM SQL Server database for the FIM Synchronization Service.

GOAL

Our goal is to be able to move the backend FIM Synchronization Service Database and be able to start the Forefront Identity Manager Synchronization Service, as well as launch the Synchronization Service Manager Console to be able to start working again.

STEPS TO MOVE THE BACKEND DATABASE

  1. Stop any scheduled tasks that are supposed to run in task scheduler
    1. If you have automated your run profiles to have your synchronization cycles run based on a schedule in task scheduler, ensure that they have been disabled.  If they are not, you will cause errors, and possibly cause data corruption.
  2. Ensure that you have no runs running
    1. Ensure that all Management Agents have a status of Idle, and that on the Operations tab that there is nothing running currently.
  3. Execute a Full Back up of the current FIM Synchronization Service Database
    1. This is done via SQL Server Management Studio
  4. Stop the Forefront Identity Manager Synchronization Service
    1. Open the Services Management Console under Administrative Tools
    2. Locate the Forefront Identity Manager Synchronization Service
    3. Double click to open the Properties
    4. Click the Stop button to stop the service
  5. Stop the FIM Service
    1. Go to the machine that the FIM Service is installed.
    2. Open the Services Management Console under Administrative Tools
    3. Locate the Forefront Identity Manager Service
    4. Double click to open the Properties
    5. Click the Stop button to stop the service
  6. Copy the FIM Synchronization Service Database to the new SQL Server
  7. Ensure that the SQL Server version on the new SQL Server is the same as the old SQL Server
    1. Open SQL Server Management Studio and connect to the SQL Server
    2. Click the New Query button in the upper left
    3. Type Select @@version
    4. Click the Execute Button
    5. Results will be shown at the bottom
  8. Restore the FIM Synchronization Service Database on the new SQL Server
    1. This is done via SQL Server Management Studio
  9. Create a SQL Server Login for the FIM Synchronization Service

*NOTE: Here is a Microsoft Knowledge Base Article that uses a SQL Script to move the account and passwords*

    1. Open SQL Server Management Studio and login to the SQL Server that is hosting the FIM Synchronization Service Database
    2. Select Logins and right mouse click
    3. Select New Login from the Context Menu

 

  1. Enter the domain name \ synchronization service account name in the Login Name text box, and choose Windows Authentication

 

  1. Select Server Roles, and ensure that Public is checked
  2. Select User Mapping, and ensure that the FIMSynchronizationService Database is selected, and that the FIM Synchronization Service Account has public and db_owner permissions checked.

 

  1. Select Status
    1. Permissions to connect to database engine should be Grant
    2. Permissions to Login should be Enabled
    3. Click the Ok button
  2. Open the Windows Registry
    1. Click the Start Button and then Run and type regedit and then click the Ok button
    2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FIMSynchronizationService\Parameters
      1. Server Property should equal the name of the new SQL Server
        1. Should be the MACHINE Name of the SQL Server that is hosting the FIM Synchronization Service backend database
        2. SQLInstance Property should equal the name of the instance

*NOTE* if it is the default instance, then it should be blank

  1. Start the FIM Services
    1. Follow the steps outlined in Step 4 and 5.  Replace stop with start.
  2. Open the FIM Synchronization Service Manager Console, and ensure that you see your Run History on the Operations Tab, and the Management Agents appear on the Management Agents.

 
SEE ALSO

ASSOCIATE PRODUCTS

  • Microsoft Identity Integration Server 2003
  • Microsoft Identity Integration Feature Pack
  • Microsoft Identity Lifecycle Manager 2007 Feature Pack 1
  • Microsoft Forefront Identity Manager 2010

 

Leave a Comment
  • Please add 6 and 6 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Tim Macaulay edited Revision 5. Comment: updated the title

  • Tim Macaulay edited Revision 3. Comment: registry key was incorrect.  fixed

  • Tim Macaulay edited Revision 2. Comment: how to move the backend sql server database for the fim synchronization service

  • Tim Macaulay edited Revision 1. Comment: added a kb article to move the sql login by using a sql account

  • Tim Macaulay edited Original. Comment: added the see also section for the registry keys and configuration file settings

Page 1 of 1 (5 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Tim Macaulay edited Original. Comment: added the see also section for the registry keys and configuration file settings

  • Tim Macaulay edited Revision 1. Comment: added a kb article to move the sql login by using a sql account

  • Tim Macaulay edited Revision 2. Comment: how to move the backend sql server database for the fim synchronization service

  • Tim Macaulay edited Revision 3. Comment: registry key was incorrect.  fixed

  • Tim Macaulay edited Revision 5. Comment: updated the title

Page 1 of 1 (5 items)