刪除 RDS Custom for Oracle 資料庫執行個體 - Amazon Relational Database Service

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

刪除 RDS Custom for Oracle 資料庫執行個體

警告

刪除資料庫執行個體是永久動作。除非您有備份或快照,否則無法在刪除後復原資料庫執行個體。

當您刪除 RDS Custom 資料庫執行個體時, AWS 會自動刪除基礎 Amazon EC2 執行個體和 EBS 磁碟區。在透過 Amazon RDS 刪除資料庫執行個體之前,請勿手動終止 Amazon EC2 執行個體或刪除 EBS 磁碟區。手動刪除這些資源會導致資料庫執行個體刪除和最終快照建立失敗,以防止任何復原的可能性。

若要刪除 RDS Custom 資料庫執行個體,請執行以下操作:

  • 提供資料庫執行個體的名稱。

  • 清除讓您建立資料庫執行個體最終資料庫快照的選項。

  • 選擇或清除保留自動化備份的選項。

您可以使用主控台或 CLI 刪除 RDS Custom 資料庫執行個體。刪除資料庫執行個體所需的時間會因備份保留期 (也就是要刪除的備份數量) 和要刪除的資料數量而有所不同。

若要刪除 RDS Custom 資料庫執行個體
  1. 登入 AWS 管理主控台 ,並在 https://console.aws.amazon.com/rds/:// 開啟 Amazon RDS 主控台。

  2. 在導覽窗格中選擇 Databases (資料庫),然後選擇您要刪除的 RDS Custom 資料庫執行個體。RDS Custom 資料庫執行個體會顯示角色 Instance (RDS Custom) (執行個體 (RDS Custom))

  3. 對於 Actions (動作),請選擇 Delete (刪除)。

  4. 若要保留自動備份,請選擇 Retain automated backups (保留自動備份)

  5. 在方塊中輸入 delete me

  6. 選擇 刪除

您可以使用 delete-db-instance AWS CLI 命令刪除 RDS Custom 資料庫執行個體。使用所需的參數 --db-instance-identifier 識別資料庫執行個體。其餘參數與 Amazon RDS 資料庫執行個體的參數相同,但是有下列例外:

  • --skip-final-snapshot 是必要的。

  • --no-skip-final-snapshot 不支援。

  • --final-db-snapshot-identifier 不支援。

下列範例會刪除名為 my-custom-instance 的 RDS Custom 資料庫執行個體,並保留自動化備份。

在 Linux、macOS 或 Unix 中:

aws rds delete-db-instance \ --db-instance-identifier my-custom-instance \ --skip-final-snapshot \ --no-delete-automated-backups

在 Windows 中:

aws rds delete-db-instance ^ --db-instance-identifier my-custom-instance ^ --skip-final-snapshot ^ --no-delete-automated-backups