本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
建立 RDS Custom for Oracle 快照
RDS Custom for Oracle 會建立資料庫執行個體的儲存體磁碟區快照,因此會備份整個資料庫執行個體,而不只是個別的資料庫。當您的資料庫執行個體包含容器資料庫 (CDB) 時,執行個體的快照會包含根 CDB 和所有 PDB。
建立 RDS Custom for Oracle 快照時,請指定要備份哪個 RDS Custom 資料庫執行個體。為快照命名,稍後即可從該快照進行還原。
建立快照時,RDS Custom for Oracle 會為連接到資料庫執行個體的每個磁碟區建立 Amazon EBS 快照。RDS Custom for Oracle 會使用根磁碟區的 EBS 快照來註冊新的 Amazon Machine Image (AMI)。為了讓快照更容易與特定資料庫執行個體產生關聯,它們透過 DBSnapshotIdentifier、DbiResourceId 和VolumeType 加上標籤。
建立資料庫快照會導致短暫的輸入/輸出暫停。根據資料庫執行個體的大小和類別,暫停時間會持續幾秒鐘至幾分鐘。快照建立時間會隨著資料庫的大小而有所不同。由於快照包括整個儲存體磁碟區,所以檔案大小 (例如暫存檔案) 也會影響建立快照建立時間。若要進一步了解建立快照,請參閱 為 Amazon RDS 的單一可用區域資料庫執行個體建立資料庫快照。
使用主控台或 AWS CLI 建立 RDS Custom for Oracle 快照。
若要建立 RDS Custom 快照
-
登入 AWS Management Console,開啟位於 https://console.aws.amazon.com/rds/
的 Amazon RDS 主控台。 -
在導覽窗格中,選擇 Databases (資料庫)。
-
在 RDS Custom 資料庫執行個體清單中,選擇您要建立快照的執行個體。
-
針對 Actions (動作),選擇 Take snapshot (建立快照)。
Take DB Snapshot (建立資料庫快照) 視窗隨即顯示。
-
在 Snapshot name (快照名稱) 中輸入快照的名稱。
-
選擇 Take Snapshot (擷取快照)。
您可以使用 create-db-snapshot AWS CLI 命令來建立 RDS Custom 資料庫執行個體的快照。
指定下列選項:
-
--db-instance-identifier– 識別您要備份的 RDS Custom 資料庫執行個體 -
--db-snapshot-identifier– 為您的 RDS Custom 快照命名以便稍後從該快照還原
在此範例中,您會為名稱為 的 RDS Custom 資料庫執行個體建立名稱為 my-custom-instance 的資料庫快照。my-custom-snapshot
對於 Linux、macOS 或 Unix:
aws rds create-db-snapshot \ --db-instance-identifiermy-custom-instance\ --db-snapshot-identifiermy-custom-snapshot
在 Windows 中:
aws rds create-db-snapshot ^ --db-instance-identifiermy-custom-instance^ --db-snapshot-identifiermy-custom-snapshot