移除前端集區的 SQL Server 資料庫Remove the SQL Server database for a Front End pool

 

主題上次修改日期: 2012-10-04Topic Last Modified: 2012-10-04

移除 Microsoft Lync Server 2010 前端集區或重新設定集區以使用其他資料庫之後,您可以移除主控集區資料的 SQL Server 資料庫。After you remove a Microsoft Lync Server 2010 Front End pool or reconfigure the pool to use a different database, you can remove the SQL Server databases that hosted the pool data. 請使用下列程式,從拓撲產生器移除定義,然後從資料庫伺服器中移除資料庫和記錄檔。Use the following procedures to remove the definitions from Topology Builder, and then remove the database and log files from the database server.

使用拓撲產生器移除 SQL Server 資料庫To remove the SQL Server database using Topology Builder

  1. 從 Lync Server 2013 前端伺服器開啟拓撲產生器,並下載現有的拓撲。From the Lync Server 2013 Front End Server, open Topology Builder and download the existing topology.

  2. 在 [拓撲產生器] 中,流覽至 [共用元件],然後按一下 [ Sql server 存放區],以滑鼠右鍵按一下與已移除或重新設定的前端集區相關聯的 SQL Server 實例,然後按一下 [刪除In Topology Builder, navigate to Shared Components and then SQL Server Stores, right-click the SQL Server instance associated with the removed or reconfigured Front End pool, and then click Delete.

  3. 發行拓撲,然後檢查複寫狀態。Publish the topology, and then check the replication status.

從 SQL Server 移除使用者和應用程式資料庫To remove user and application databases from the SQL Server

  1. 若要移除 SQL Server 上的資料庫,您必須是要移除資料庫檔案之 SQL Server 的 SQL Server sysadmins 群組成員。To remove the databases on the SQL Server, you must be a member of the SQL Server sysadmins group for the SQL Server where you are removing the database files.

  2. 開啟 Lync Server 管理命令介面Open Lync Server Management Shell

  3. 移除集區使用者存放區的資料庫,請輸入:To remove the database for the pool user store, type:

    Uninstall-CsDataBase -DatabaseType User -SqlServerFqdn <FQDN> [-SqlInstanceName <instance>]
    

    其中 <FQDN> 是資料庫伺服器的 FQDN) 的完整功能變數名稱 (,也就是 <instance> 指定的資料庫實例 (也就是說,如果有一個定義) 。Where <FQDN> is the fully qualified domain name (FQDN) of the database server, and <instance> is the named database instance (that is, if one was defined).

  4. 移除集區應用程式存放區的資料庫,請輸入:To remove the database for the pool application store, type:

    Uninstall-CsDataBase -DatabaseType Application -SqlServerFqdn <FQDN> [-SqlInstanceName <instance>]
    

    其中 <FQDN> 是資料庫伺服器的 FQDN,也 <instance> 就是指定的資料庫實例 (,也就是) 中已定義。Where <FQDN> is the FQDN of the database server, and <instance> is the named database instance (that is, if one was defined).

  5. Uninstall-CsDataBase Cmdlet 提示您確認動作時,請閱讀資訊,然後按 Y (或按 Enter) 繼續作業,或是依序按 N 及 Enter 停止 Cmdlet (例如發生錯誤時)。When the Uninstall-CsDataBase cmdlet prompts you to confirm actions, read the information, and then press Y (or press Enter) to proceed, or press N and then Enter if you want to stop the cmdlet (that is, in case there errors).