Export (0) Print
Expand All

Move the Secure Store Service service application databases in SharePoint 2013

SharePoint 2013
 

Applies to: SharePoint Server 2013, SharePoint Foundation 2013

Topic Last Modified: 2014-09-24

Summary: Learn how to move the Secure Store Service service application database.

This article describes how to move the Secure Store service application database. Moving service application databases to another farm database server or database instance can be done to load-balance a system. The process involves the two main tasks, each with sub-tasks, of moving the databases files and then pointing the service application to the moved database.

In this article:

NoteNote:
Administrators typically use the SharePoint Central Administration website and the SharePoint Management Shell to manage deployments. For information about accessibility for administrators, see Accessibility for SharePoint 2013.
Because SharePoint 2013 runs as websites in Internet Information Services (IIS), administrators and users depend on the accessibility features that browsers provide. SharePoint 2013 supports the accessibility features of supported browsers. For more information, see the following resources:
ImportantImportant:
The account, or accounts, performing the operations, you must have the following rights and permissions:
  • A member of the Farm Administrators SharePoint group.

  • A member of the Administrators group on the local server

  • Have read permission on the source location and write permission on the target location.

  • Have the db_owner fixed database role for all of the databases that you are moving.

In some environments, you must coordinate the rename and move procedures with the database administrator. Be sure to follow any applicable policies and guidelines for managing databases.

To move a service application database, you must use SQL Server and Windows Explorer. We recommend that you stop the services related to the service application before you move the related database.

The instructions in this article assume that you have installed SQL Server Management Studio on the database server. If this is not the case, you can download and install Management Studio at Microsoft SQL Server 2008 Management Studio Express (http://go.microsoft.com/fwlink/p/?LinkID=186132&clcid=0x409).

ImportantImportant:
To move database files within the same instance SQL Server we recommend that you use the FILENAME clause of the ALTER DATABASE statement. For more information, see Move User Databases.
To move a database to another instance of SQL Server or to another server, we recommend that you use procedures found in Database Detach and Attach (SQL Server) or Back Up and Restore of SQL Server Databases.
To stop the service application
  1. Verify that the user account that is performing this procedure is a member of the Farm Administrators SharePoint group.

  2. You must stop the Secure Store service application by following the appropriate procedure for the service application that you are working with. For more information, see Start or stop a service (SharePoint 2013).

To detach the database from SQL Server
  1. Verify that the user account that is performing this procedure has the db_owner fixed database role for all of the databases that are being moved.

  2. In SQL Server Management Studio, open the source SQL Server instance, and then expand the Databases node.

  3. Right-click the database, point to Tasks, and then click Detach. Repeat this step for each database that you want to move.

To move database files to a new location by using Windows Explorer
  1. Verify that the user account that is performing this procedure has read permission on the source location and write permission on the target location.

  2. In Windows Explorer, locate the .mdf, .ndf, and .ldf files for the service application databases.

  3. Select the .mdf, .ndf, and .ldf files for the databases that you want to move, and then either copy or move them to the destination directory.

To attach a database to a new instance of SQL Server
  1. Verify that the user account that is performing this procedure has the db_owner fixed database role for all of the databases that are being moved.

  2. In Management Studio, open the destination SQL Server instance.

  3. Right-click the Databases node, point to Tasks, and then click Attach.

  4. In the Attach Database dialog box, browse to where you transferred the .mdf, .ndf, and .ldf files, select the .mdf file for the database that you want to attach, and then click OK.

  5. Repeat for each database that you are moving.

You can point the Secure Store service application to a renamed or moved database by using Central Administration. Or, you can rename or move the database, and then delete or re-create the service application. If you choose to delete and re-create the service application, you must use the same passphrase that you used when you first configured the service application.

To point the Secure Store service application to a renamed or moved database by using Central Administration
  1. Verify that the user account that is performing this task is a member of the Farm Administrators SharePoint group.

  2. In Central Administration, under System Settings, click Manage services on server.

  3. In the Service list, next to the Secure Store service, click Stop.

  4. In the Quick Launch, click Application Management.

  5. On the Application Management page, click Manage service applications.

  6. Click the Secure Store Service service application. The ribbon becomes active.

  7. Click Properties on the ribbon.

    The Edit Secure Store Service Application page opens.

  8. Change the database server or database name, and then click OK.

    NoteNote:
    If you use an incorrect name, SharePoint 2013 creates a new database.
  9. In the Quick Launch, click System Settings.

  10. On the System Settings page, under Servers, click Manage services on server.

  11. In the Service list, next to the Secure Store Service, click Start.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft