RDS Custom for Oracle DB 스냅샷에서 복원 - Amazon Relational Database Service

RDS Custom for Oracle DB 스냅샷에서 복원

RDS Custom for Oracle DB 인스턴스를 복원하는 경우 DB 스냅샷의 이름과 새로운 인스턴스의 이름을 입력합니다. 스냅샷에서 기존 RDS Custom DB 인스턴스로 복원할 수 없습니다. 복원 시 새로운 RDS Custom for Oracle DB 인스턴스가 생성됩니다.

복원 프로세스는 다음과 같은 면에서 Amazon RDS의 복원과 다릅니다.

  • 스냅샷을 복원하기 전에 RDS Custom for Oracle은 기존 구성 파일을 백업합니다. 이러한 파일은 디렉터리 /rdsdbdata/config/backup의 복원된 인스턴스에서 사용할 수 있습니다. RDS Custom for Oracle은 기본 파라미터로 DB 스냅샷을 복원하고 이전 데이터베이스 구성 파일을 기존 데이터베이스 구성 파일로 덮어씁니다. 따라서 복원된 인스턴스는 사용자 지정 파라미터 및 데이터베이스 구성 파일의 변경 사항을 보존하지 않습니다.

  • 복원된 데이터베이스의 이름은 스냅샷과 동일하며, 다른 이름을 지정할 수 없습니다. (RDS Custom for Oracle의 경우 기본값은 ORCL입니다.)

DB 스냅샷에서 RDS Custom DB 인스턴스를 복원하는 방법
  1. AWS Management Console에 로그인한 후 https://console.aws.amazon.com/rds/에서 Amazon RDS 콘솔을 엽니다.

  2. 탐색 창에서 [Snapshots]를 선택합니다.

  3. 복원 원본으로 사용할 DB 스냅샷을 선택합니다.

  4. 작업에서 스냅샷 복원을 선택합니다.

  5. DB 인스턴스 복원(Restore DB instance) 페이지의 DB 인스턴스 식별자(DB instance identifier)에 복원된 RDS Custom DB 인스턴스의 이름을 입력합니다.

  6. DB 인스턴스 복원을 선택합니다.

restore-db-instance-from-db-snapshot AWS CLI 명령을 사용하여 RDS Custom DB 스냅샷을 복원합니다.

복원하려는 스냅샷이 프라이빗 DB 인스턴스용인 경우 db-subnet-group-nameno-publicly-accessible을 모두 올바르게 지정해야 합니다. 그렇지 않으면 DB 인스턴스의 기본값에 공개적으로 액세스할 수 있게 됩니다. 다음 옵션이 필요합니다.

  • db-snapshot-identifier - 복구할 스냅샷을 식별합니다.

  • db-instance-identifier - DB 스냅샷에서 생성할 RDS Custom DB 인스턴스의 이름을 지정합니다.

  • custom-iam-instance-profile - RDS Custom for Oracle DB 인스턴스의 기본 Amazon EC2 인스턴스와 연결된 인스턴스 프로필을 지정합니다.

다음 코드는 my-custom-instance에 대한 my-custom-snapshot이라는 스냅샷을 복원합니다.

대상 LinuxmacOS, 또는Unix:

aws rds restore-db-instance-from-db-snapshot \ --db-snapshot-identifier my-custom-snapshot \ --db-instance-identifier my-custom-instance \ --custom-iam-instance-profile AWSRDSCustomInstanceProfileForRdsCustomInstance \ --no-publicly-accessible

Windows의 경우:

aws rds restore-db-instance-from-db-snapshot ^ --db-snapshot-identifier my-custom-snapshot ^ --db-instance-identifier my-custom-instance ^ --custom-iam-instance-profile AWSRDSCustomInstanceProfileForRdsCustomInstance ^ --no-publicly-accessible