

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 停用和捨棄 SSIS 資料庫
<a name="SSIS.DisableDrop"></a>

使用下列步驟將 SSIS 資料庫停用或捨棄：

**Topics**
+ [停用 SSIS](#SSIS.Disable)
+ [卸除 SSISDB 資料庫](#SSIS.Drop)

## 停用 SSIS
<a name="SSIS.Disable"></a>

若要停用 SSIS，請將 `SSIS` 選項從其選項群組中移除。

**重要**  
移除選項並不會刪除 SSISDB 資料庫，因此您可以安全地移除選項，而不會遺失 SSIS 專案。  
您可以在移除之後重新啟用此 `SSIS` 選項，以重複使用先前部署至 SSIS 目錄的 SSIS 專案。

### 主控台
<a name="SSIS.Disable.Console"></a>

下列程序會移除 `SSIS` 選項。

**從選項群組中移除 SSIS 選項**

1. 登入 AWS 管理主控台，開啟位於 [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/) 的 Amazon RDS 主控台。

1. 在導覽窗格中，選擇 **Option groups** (選項群組)。

1. 選擇具有 `SSIS` 選項的選項群組 (上述範例中的 `ssis-se-2016`)。

1. 選擇 **Delete option (刪除選項)**。

1. 在 **Deletion options (刪除選項)** 下，為 **Options to delete (要刪除的選項)** 選擇 **SSIS**。

1. 在 **Apply immediately (立即套用)** 下，選擇 **Yes (是)** 立即刪除選項，或選擇 **No (否)** 在下一個維護時段將其刪除。

1. 選擇 **刪除**。

### CLI
<a name="SSIS.Disable.CLI"></a>

下列程序會移除 `SSIS` 選項。

**從選項群組中移除 SSIS 選項**
+ 請執行下列其中一個命令：  
**Example**  

  針對 Linux、macOS 或 Unix：

  ```
  aws rds remove-option-from-option-group \
      --option-group-name ssis-se-2016 \
      --options SSIS \
      --apply-immediately
  ```

  針對 Windows：

  ```
  aws rds remove-option-from-option-group ^
      --option-group-name ssis-se-2016 ^
      --options SSIS ^
      --apply-immediately
  ```

## 卸除 SSISDB 資料庫
<a name="SSIS.Drop"></a>

移除 SSIS 選項之後，系統不會刪除 SSISDB 資料庫。若要卸除 SSISDB 資料庫，請在移除 SSIS 選項之後使用 `rds_drop_ssis_database` 儲存的程序。

**卸除 SSIS 資料庫**
+ 請使用下列預存程序。

  ```
  USE [msdb]
  GO
  EXEC dbo.rds_drop_ssis_database
  GO
  ```

卸除 SSISDB 資料庫後，如果您重新啟用 SSIS 選項，您會得到一個新的 SSISDB 目錄。