Export (0) Print
Expand All

Rename the Managed Metadata Service service application databases in SharePoint Server 2013

SharePoint 2013
 

Applies to: SharePoint Server 2013

Topic Last Modified: 2013-12-18

Summary: Learn how to rename the Managed Metadata Service service application databases in SharePoint Server 2013.

You typically rename service application databases to remove the GUID from the database name after the databases were created by the SharePoint Products Configuration Wizard, or to bring the databases into alignment with your organization's naming standards.

You can rename the Managed Metadata service application databases by using the SharePoint Central Administration website, Windows PowerShell, or SQL Server tools. Which backup tool you use depends on what kind of environment you have deployed, what your backup schedule requires, and what service level agreements you have made with your organization.

ImportantImportant:
The steps in this article apply to SharePoint Server 2013 only.

In this article:

Before you begin this operation, review the following information about prerequisites:

  • 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 R2 RTM - Management Studio Express.

  • On the database servers on which the operations are performed, you must be a member of the following:

    • Administrators group on the local server

    • db_owner fixed database role

NoteNote:
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:

To rename a service application database, you must use SQL Server. 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 rename or move the related database. In general, we expect that you will either rename or move a database. That is, you will typically not perform both actions.

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

To stop the Managed Metadata service application
  1. Verify that the user account that is performing this procedure is a member of the Farm Administrators SharePoint group.

  2. For each service application that you plan to change the database for, you must stop the service or disable the 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 rename the databases by using SQL Server Management Studio
  1. Verify that the user account that is performing this procedure is a member of the db_owner fixed database role.

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

  3. Right-click the database that you want to rename, click Rename, and then type the new name. Repeat this step for each database that you want to rename.

You can point the Managed Metadata service application to a renamed or moved database by using Central Administration or Windows PowerShell.

This procedure has the following steps integrated into them, and do not require that they have already been performed:

  1. Stopping a service application

  2. Renaming a database in SQL Server Management Studio

  3. Moving a database by using SQL Server Management Studio and Windows Explorer

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

  2. Start SharePoint 2013 Central Administration.

    • For Windows Server 2008 R2:

      • Click Start, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Central Administration.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Central Administration.

        If SharePoint 2013 Central Administration is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Central Administration.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

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

  4. In the Service list, next to the Managed Metadata service, click Stop.

  5. In the Quick Launch, click Application Management.

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

  7. On the Manage Service applications page, click the empty area in the row next to Managed Metadata Service. The ribbon becomes active.

    NoteNote:
    You must click the empty area to enable the ribbon on the Manage Service applications page. If you click Managed Metadata Service Application, the Term Store Management Tool page opens for this service application.
  8. Click Properties on the ribbon.

  9. The Edit Managed Metadata Service dialog box appears.

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

  11. In the Quick Launch, click System Settings.

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

  13. In the Service list, next to Managed Metadata Web Service, click Start.

To point the Managed Metadata service application to a renamed or moved database by using Windows PowerShell
  1. Verify that you have the following memberships:

    • securityadmin fixed server role on the SQL Server instance.

    • db_owner fixed database role on all databases that are to be updated.

    • Administrators group on the server on which you are running the Windows PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 Products cmdlets.

    NoteNote:
    If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Add-SPShellAdmin.
  2. On the Start menu, click All Programs.

  3. Click Microsoft SharePoint 2013 Products.

  4. Click SharePoint 2013 Management Shell.

  5. At the Windows PowerShell command prompt, type the following command:

    $app = Get-SPServiceApplication -Name "<ServiceApplicationName>"
    Set-SPMetadataServiceApplication -Identity $app -DatabaseName "<DatabaseName>"
    

    Where:

    • <ServiceApplicationName> is the name of the Managed Metadata service application.

    • <DbName> is the name of the renamed database.

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