本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
使用 RDS for Oracle 中的其他儲存磁碟區來備份和還原資料
您可以使用自動備份,並使用具有額外儲存磁碟區的資料庫執行個體建立資料庫快照。所有備份操作都包含主要磁碟區和其他儲存磁碟區。您也可以將資料庫執行個體的point-in-time復原與額外的儲存磁碟區搭配使用。還原資料庫時,您可以新增儲存磁碟區。您也可以修改現有磁碟區的儲存設定。當您從快照還原資料庫時,無法刪除其他儲存磁碟區。
建立手動快照
下列範例會使用其他儲存磁碟區建立資料庫的手動快照:
aws rds create-db-snapshot \ --db-instance-identifiermy-oracle-asv-instance\ --db-snapshot-identifiermy-snapshot
還原手動快照
從快照還原時,您可以新增新的其他儲存磁碟區,或修改現有磁碟區的 IOPS 或輸送量設定。下列範例會從快照還原資料庫執行個體,並修改rdsdbdata2磁碟區的 IOPS 設定:
aws rds restore-db-instance-from-db-snapshot \ --db-instance-identifiermy-restored-instance\ --db-snapshot-identifiermy-snapshot\ --region us-east-1 \ --additional-storage-volumes '[ { "VolumeName":"rdsdbdata2", "IOPS":5000 } ]'
時間點復原
在point-in-time(PITR) 期間,您可以使用自訂組態新增額外的儲存磁碟區。下列範例會執行 PITR,並新增 5,000 GiB 一般用途 SSD (gp3),其磁碟rdsdbdata2區的儲存輸送量為 5000 IOPS 和 200 MB/s:
aws rds restore-db-instance-to-point-in-time \ --source-db-instance-identifiermy-source-instancemy-source-instance \ --target-db-instancemy-pitr-instance\ --use-latest-restorable-time \ --region us-east-1 \ --additional-storage-volumes '[ { "VolumeName":"rdsdbdata2", "StorageType":"gp3", "AllocatedStorage":5000, "IOPS":5000, "StorageThroughput":200 } ]'