Skip to main content
NetApp Solutions
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

TR-4973: AWS FSx ONTAP에서 증분 병합을 사용하여 Oracle VLDB의 빠른 복구 및 복제

기여자

Allen Cao, Niyaz Mohamed, NetApp

이 솔루션은 FSx ONTAP의 NFS 마운트를 통해 AWS EC2 컴퓨팅 인스턴스에 구축된 Oracle VLDB를 빠른 복구와 복제하여 대기 데이터 파일 복사본을 RMAN을 통해 지속적으로 증분식으로 병합하는 데 필요한 간략한 개요를 제공합니다.

목적

Oracle RMAN(Recovery Manager) 백업 툴을 사용하여 Oracle에서 매우 큰 데이터베이스(VLDB)를 복구하는 것은 매우 어려운 작업이 될 수 있습니다. 오류가 발생할 경우 백업 미디어에서 데이터베이스 복원 프로세스를 수행하는 데 시간이 오래 걸릴 수 있으므로 데이터베이스 복구가 지연되고 서비스 수준 계약(SLA)에 상당한 영향을 줄 수 있습니다. 그러나 Oracle은 버전 10g부터 사용자가 DB 서버 호스트에 있는 추가 디스크 스토리지에 Oracle 데이터베이스 데이터 파일의 스테이징된 이미지 복제본을 생성할 수 있는 RMAN 기능을 도입했습니다. 이러한 이미지 복제본은 RMAN을 사용하여 매일 점진적으로 업데이트할 수 있습니다. 장애가 발생할 경우 DBA(데이터베이스 관리자)가 Oracle 데이터베이스를 실패한 미디어에서 이미지 복사본으로 신속하게 전환하여 전체 데이터베이스 미디어 복원이 필요하지 않게 할 수 있습니다. 그 결과, 필요한 데이터베이스 스토리지가 2배로 증가했지만 SLA가 크게 개선되었습니다.

VLDB에 대한 SLA에 관심이 있고 Oracle 데이터베이스를 AWS와 같은 퍼블릭 클라우드로 이전하려는 경우 대기 데이터베이스 이미지 복사본을 스테이징하기 위해 AWS FSx ONTAP와 같은 리소스를 사용하여 유사한 데이터베이스 보호 구조를 설정할 수 있습니다. 이 문서에서는 운영 스토리지 장애 시 신속한 복구를 위해 대기 데이터베이스 복사본을 스테이징하기 위해 AWS FSx ONTAP에서 마운트될 NFS 파일 시스템을 Oracle 데이터베이스 서버에 프로비저닝하고 내보내는 방법을 설명합니다.

또한, NetApp FlexClone을 활용하여 추가 스토리지 투자 없이 동일한 대기 데이터베이스 이미지 복사본을 사용하여 개발/테스트 Oracle 환경을 구축하는 등의 다른 사용 사례에서 동일한 스테이징 NFS 파일 시스템의 복사본을 생성하는 방법도 살펴볼 수 있습니다.

이 솔루션은 다음과 같은 사용 사례를 해결합니다.

  • AWS FSx ONTAP 스토리지의 NFS 마운트 지점에서 RMAN을 통해 Oracle VLDB 이미지 복제 증분 병합이 수행됩니다.

  • 장애 발생 시 FSx ONTAP 스토리지의 데이터베이스 이미지 복사본으로 전환하여 Oracle VLDB를 빠르게 복구합니다.

  • 클론 FSx ONTAP NFS 파일 시스템 볼륨에 Oracle VLDB 이미지 복제본을 저장하여 다른 활용 사례에서 다른 데이터베이스 인스턴스를 설치하는 데 사용됩니다.

대상

이 솔루션은 다음과 같은 사용자를 대상으로 합니다.

  • 더 빠른 데이터베이스 복구를 위해 AWS에서 RMAN을 통해 Oracle VLDB 이미지 복사본 증분 병합을 설정하는 DBA.

  • AWS 퍼블릭 클라우드에서 Oracle 워크로드를 테스트하는 데이터베이스 솔루션 설계자

  • AWS FSx ONTAP 스토리지에 구축된 Oracle 데이터베이스를 관리하는 스토리지 관리자

  • AWS FSx/EC2 환경에서 Oracle 데이터베이스를 가동하려는 애플리케이션 소유자입니다.

솔루션 테스트 및 검증 환경

이 솔루션의 테스트 및 검증은 최종 구축 환경과 일치하지 않을 수 있는 AWS FSx ONTAP 및 EC2 환경에서 수행되었습니다. 자세한 내용은 섹션을 참조하십시오 구축 시 고려해야 할 주요 요소.

있습니다

이 이미지는 FSx ONTAP를 사용하여 AWS 퍼블릭 클라우드에서 Oracle VLDB 증분 병합 구현을 보여주는 상세한 그림을 제공합니다.

하드웨어 및 소프트웨어 구성 요소

* 하드웨어 *

FSX ONTAP 저장소

AWS에서 제공하는 현재 버전입니다

동일한 VPC 및 가용성 존에 FSx HA 클러스터 1개

컴퓨팅용 EC2 인스턴스

T2.xLarge/4vCPU/16G

EC2 T2 xLarge EC2 인스턴스 2개, 하나는 운영 DB 서버로, 다른 하나는 클론 DB 서버로

* 소프트웨어 *

RedHat Linux

RHEL-8.6.0_HVM-20220503-x86_64-2-Hourly2-GP2

테스트를 위해 RedHat 서브스크립션을 배포했습니다

Oracle Grid Infrastructure

버전 19.18

RU 패치 p34762026_190000_Linux-x86-64.zip 를 적용했습니다

Oracle 데이터베이스

버전 19.18

RU 패치 p34765931_190000_Linux-x86-64.zip 를 적용했습니다

Oracle OPatch

버전 12.2.0.1.36

최신 패치 p6880880_190000_Linux-x86-64.zip

구축 시 고려해야 할 주요 요소

  • * RMAN 증분 병합용 Oracle VLDB 스토리지 레이아웃 * 테스트 및 검증에서 Oracle 증분 백업 및 병합용 NFS 볼륨은 단일 FSx 파일 시스템에서 4Gbps 처리량, 160,000 원시 SSD IOPS 및 192TiB 용량 제한이 있는 할당됩니다. 임계값을 통한 구축의 경우 여러 FSx 파일 시스템을 여러 NFS 마운트 지점과 병렬로 연결하여 더 큰 용량을 제공할 수 있습니다.

  • * RMAN 증분 병합을 사용하여 Oracle 복구 성능. * RMAN 증분 백업 및 병합은 일반적으로 RTO 및 RPO 목표에 따라 사용자 정의 빈도로 실행됩니다. 운영 데이터 스토리지 및/또는 아카이브 로그가 완전히 손실되면 데이터 손실이 발생할 수 있습니다. Oracle 데이터베이스는 FSx 데이터베이스 백업 이미지 복사본에서 사용할 수 있는 마지막 증분 백업까지 복구할 수 있습니다. 데이터 손실을 최소화하기 위해 FSx NFS 마운트 지점에 Oracle 플래시 복구 영역을 설정할 수 있으며 데이터베이스 이미지 복사본과 함께 아카이빙된 로그를 FSx NFS 마운트에 백업할 수 있습니다.

  • * FSx NFS 파일 시스템에서 Oracle VLDB를 실행합니다. * 데이터베이스 백업을 위한 다른 대용량 스토리지와 달리 AWS FSx ONTAP는 높은 수준의 성능과 스토리지 효율성을 제공하는 클라우드 지원 운영 등급 스토리지입니다. Oracle VLDB가 운영 스토리지에서 FSx ONTAP NFS 파일 시스템의 이미지 복제본으로 전환되면 기본 스토리지 장애가 해결되는 동안 데이터베이스 성능을 높은 수준으로 유지할 수 있습니다. 기본 스토리지 장애로 인해 사용자 애플리케이션 환경이 저하되지 않는다는 것을 알면 편리할 수 있습니다.

  • * FlexClone Oracle VLDB 기타 사용 사례에서 NFS 볼륨의 이미지 복사본 * AWS FSx ONTAP FlexClone은 쓰기 가능한 동일한 NFS 데이터 볼륨의 공유 복사본을 제공합니다. 따라서 Oracle 데이터베이스가 전환되더라도 Oracle VLDB 이미지 복제본을 스테이징하는 무결성을 유지하면서 다른 많은 활용 사례에 사용할 수 있습니다. 따라서 VLDB 스토리지 설치 공간이 크게 줄어 스토리지 비용이 크게 절감됩니다. NetApp은 Oracle 성능을 높은 수준으로 유지하기 위해 데이터베이스를 운영 스토리지에서 데이터베이스 이미지 복사본으로 전환하는 경우 FlexClone 활동을 최소화하는 것이 좋습니다.

  • * EC2 컴퓨팅 인스턴스 * 이러한 테스트 및 검증에서는 AWS EC2 T2.xLarge 인스턴스를 Oracle 데이터베이스 컴퓨팅 인스턴스로 사용했습니다. NetApp에서는 데이터베이스 워크로드에 최적화되어 있으므로 운영 구축 시 Oracle용 컴퓨팅 인스턴스로 M5 유형 EC2 인스턴스를 사용할 것을 권장합니다. 실제 워크로드 요구 사항에 따라 vCPU 수와 RAM 양에 따라 EC2 인스턴스를 적절하게 사이징해야 합니다.

  • * FSx 스토리지 HA 클러스터 단일 또는 다중 영역 배포. * 이러한 테스트 및 검증에서는 단일 AWS 가용성 영역에 FSx HA 클러스터를 구축했습니다. 프로덕션 배포를 위해 FSx HA 쌍을 두 가지 가용성 영역에 배포하는 것이 좋습니다. FSx HA 클러스터는 스토리지 레벨 이중화를 제공하기 위해 액티브-패시브 파일 시스템 쌍으로 미러링되는 HA 쌍으로 프로비저닝됩니다. 다중 영역 구축을 통해 단일 AWS 영역에서 장애가 발생할 경우 고가용성을 더욱 강화할 수 있습니다.

  • * FSx 스토리지 클러스터 사이징. * Amazon FSx ONTAP 스토리지 파일 시스템은 최대 160,000 물리적 SSD IOPS, 최대 4GBps 처리량, 최대 192TiB 용량을 제공합니다. 그러나 구현 시 실제 요구 사항에 따라 프로비저닝된 IOPS, 처리량 및 스토리지 제한(최소 1,024GiB)을 기준으로 클러스터 크기를 조정할 수 있습니다. 애플리케이션 가용성에 영향을 주지 않고 용량을 즉각적으로 동적으로 조정할 수 있습니다.

  • * dNFS 구성. * dNFS는 Oracle 커널에 내장되어 있으며 Oracle을 NFS 스토리지에 구축할 때 Oracle 데이터베이스 성능을 크게 향상시키는 것으로 알려져 있습니다. dNFS는 Oracle 바이너리로 패키징되지만 기본적으로 활성화되어 있지 않습니다. NFS 기반 Oracle 데이터베이스 구축 시 이 기능을 설정해야 합니다. VLDB를 위한 여러 FSx 파일 시스템 배포의 경우 다른 FSx NFS 파일 시스템에 대한 dNFS 다중 경로를 올바르게 구성해야 합니다.

솔루션 구축

VPC 내에서 AWS EC2 환경에 Oracle VLDB를 이미 구축한 것으로 가정합니다. AWS에서의 Oracle 구축에 대한 도움이 필요한 경우 다음 기술 보고서에서 도움말을 참조하십시오.

Oracle VLDB는 FSx ONTAP 또는 AWS EC2 에코시스템 내에서 선택 가능한 다른 스토리지에서 실행될 수 있습니다. 다음 섹션에서는 AWS FSx ONTAP 스토리지에서 NFS 마운트에 스테이징되는 Oracle VLDB의 이미지 복제본에 RMAN 증분 병합을 설정하는 단계별 구축 절차를 제공합니다.

배포를 위한 사전 요구 사항

Details

배포에는 다음과 같은 사전 요구 사항이 필요합니다.

  1. AWS 계정이 설정되었으며 AWS 계정 내에 필요한 VPC 및 네트워크 세그먼트가 생성되었습니다.

  2. AWS EC2 콘솔에서 2개의 EC2 Linux 인스턴스를 구축해야 합니다. 하나는 운영 Oracle DB 서버로, 다른 하나는 선택적 대체 클론 타겟 DB 서버입니다. 환경 설정에 대한 자세한 내용은 이전 섹션의 아키텍처 다이어그램을 참조하십시오. 또한 를 검토합니다 "Linux 인스턴스에 대한 사용자 가이드" 를 참조하십시오.

  3. AWS EC2 콘솔에서 Amazon FSx ONTAP 스토리지 HA 클러스터를 구축하여 Oracle 데이터베이스 대기 이미지 복사본을 저장하는 NFS 볼륨을 호스팅합니다. FSx 스토리지 구축에 익숙하지 않은 경우 설명서에서 단계별 지침을 참조하십시오"FSx ONTAP 파일 시스템 생성".

  4. 2단계와 3단계는 라는 EC2 인스턴스를 만드는 다음 Terraform 자동화 툴킷을 사용하여 수행할 수 있습니다 ora_01 이라는 FSx 파일 시스템이 있습니다 fsx_01. 실행 전에 지침을 주의 깊게 검토하고 환경에 맞게 변수를 변경하십시오. 사용자 고유의 배포 요구 사항에 맞게 템플릿을 쉽게 수정할 수 있습니다.

    git clone https://github.com/NetApp-Automation/na_aws_fsx_ec2_deploy.git
참고 Oracle 설치 파일을 스테이징할 충분한 공간을 확보하기 위해 EC2 인스턴스 루트 볼륨에 50G 이상을 할당했는지 확인합니다.

EC2 DB 인스턴스 호스트에 마운트할 NFS 볼륨을 프로비저닝하고 내보냅니다

Details

이 데모에서는 FSx 클러스터 관리 IP를 통해 ssh를 통해 fsxadmin 사용자로 FSx 클러스터에 로그인하여 명령줄에서 NFS 볼륨을 프로비저닝하는 방법을 보여 줍니다. 또는 AWS FSx 콘솔을 사용하여 볼륨을 할당할 수도 있습니다. 데이터베이스 크기를 수용하도록 둘 이상의 FSx 파일 시스템이 설정된 경우 다른 FSx 파일 시스템에서 이 절차를 반복합니다.

  1. 먼저, SSH를 통해 FSx 클러스터에 fsxadmin 사용자로 로그인하여 CLI를 통해 NFS 볼륨을 프로비저닝합니다. FSx ONTAP UI 콘솔에서 검색할 수 있는 FSx 클러스터 관리 IP 주소로 변경합니다.

    ssh fsxadmin@172.30.15.53
  2. 운영 Oracle VLDB 데이터베이스 데이터 파일 이미지 복사본을 저장하기 위해 운영 스토리지와 동일한 크기의 NFS 볼륨을 생성합니다.

    vol create -volume ora_01_copy -aggregate aggr1 -size 100G -state online -type RW -junction-path /ora_01_copy -snapshot-policy none -tiering-policy snapshot-only
  3. 또는 AWS FSx 콘솔 UI에서 스토리지 효율성 옵션을 사용하여 볼륨을 프로비저닝할 수 있습니다 Enabled, 보안 스타일 Unix , 스냅샷 정책 None`스토리지 계층화를 지원합니다 `Snapshot Only 아래 그림과 같이 표시됩니다.

    입력/출력 대화 상자 또는 작성된 내용을 표시하는 그림

  4. 일별 스케줄과 30일 보존 기간을 사용하여 Oracle 데이터베이스에 대한 사용자 지정된 스냅샷 정책을 생성합니다. 스냅샷 빈도 및 보존 기간 측면에서 특정 요구에 맞게 정책을 조정해야 합니다.

    snapshot policy create -policy oracle -enabled true -schedule1 daily -count1 30

    RMAN 증분 백업 및 병합을 위해 프로비저닝된 NFS 볼륨에 정책을 적용합니다.

    vol modify -volume ora_01_copy -snapshot-policy oracle
  5. EC2 인스턴스에 EC2-USER로 로그인하여 /nfsfsxn 디렉토리를 생성합니다. 추가 FSx 파일 시스템에 대한 추가 마운트 지점 디렉토리를 생성합니다.

    sudo mkdir /nfsfsxn
  6. FSx ONTAP NFS 볼륨을 EC2 DB 인스턴스 호스트에 마운트합니다. FSx 가상 서버 NFS lif 주소로 변경합니다. FSx ONTAP UI 콘솔에서 NFS lif 주소를 검색할 수 있습니다.

    sudo mount 172.30.15.19:/ora_01_copy /nfsfsxn -o rw,bg,hard,vers=3,proto=tcp,timeo=600,rsize=262144,wsize=262144,nointr
  7. 마운트 지점 소유권을 Oracle로 변경합니다. 즉, 필요에 따라 Oracle 사용자 이름 및 기본 그룹으로 변경하십시오.

    sudo chown oracle:oinstall /nfsfsxn

FSx에서 이미지 복사본에 대한 Oracle RMAN 증분 병합을 설정합니다

Details

RMAN 증분 병합은 증분 백업/병합 간격마다 스테이징 데이터베이스 데이터 파일 이미지 복제본을 지속적으로 업데이트합니다. 데이터베이스 백업의 이미지 복사본은 증분 백업/병합을 실행하는 빈도만큼 최신 상태가 됩니다. 따라서 RMAN 증분 백업 및 병합의 빈도를 결정할 때 데이터베이스 성능, RTO 및 RPO 목표를 고려해야 합니다.

  1. Oracle 사용자로 운영 DB 서버 EC2 인스턴스에 로그인합니다

  2. Oracle 플래시 복구 영역의 Oracle 데이터 파일 이미지 복제본 및 archlog 디렉토리를 저장하려면 마운트 지점 /nfsfxn 아래에 oracopy 디렉토리를 생성합니다.

    mkdir /nfsfsxn/oracopy
    mkdir /nfsfsxn/archlog
  3. sqlplus 를 통해 Oracle 데이터베이스에 로그인하고, 더 빠른 증분 백업을 위해 블록 변경 추적을 활성화하고, 현재 운영 스토리지에 있는 경우 Oracle 플래시 복구 영역을 FSx ONTAP 마운트로 변경합니다. 이렇게 하면 RMAN 기본 제어 파일/spfile 자동 백업 및 아카이빙된 로그를 FSx ONTAP NFS 마운트에 백업하여 복구할 수 있습니다.

    sqlplus / as sysdba

    sqlplus 프롬프트에서 다음 명령을 실행합니다.

    alter database enable block change tracking using file '/nfsfsxn/oracopy/bct_db1.ctf'
    alter system set db_recovery_file_dest='/nfsfsxn/archlog/' scope=both;
  4. RMAN 백업 및 증분 병합 스크립트를 생성합니다. 이 스크립트는 병렬 RMAN 백업 및 병합을 위해 여러 채널을 할당합니다. 첫 번째 실행에서는 초기 전체 기준선 이미지 복사본이 생성됩니다. 전체 실행에서 먼저 보존 기간 외부에 있는 폐기된 백업을 정리하여 스테이징 영역을 깨끗하게 유지합니다. 그런 다음 병합 및 백업 전에 현재 로그 파일을 전환합니다. 증분 백업은 병합 후에 데이터베이스 이미지 복사본이 현재 데이터베이스 상태를 하나의 백업/병합 주기로 후행 하도록 합니다. 병합 및 백업 순서를 반대로 하면 사용자가 원하는 대로 신속하게 복구할 수 있습니다. RMAN 스크립트는 기본 DB 서버의 crontab에서 실행할 간단한 셸 스크립트로 통합할 수 있습니다. RMAN 설정에서 제어 파일 자동 백업이 켜져 있는지 확인합니다.

    vi /home/oracle/rman_bkup_merge.cmd
    
    Add following lines:
    
    RUN
    {
      allocate channel c1 device type disk format '/nfsfsxn/oracopy/%U';
      allocate channel c2 device type disk format '/nfsfsxn/oracopy/%U';
      allocate channel c3 device type disk format '/nfsfsxn/oracopy/%U';
      allocate channel c4 device type disk format '/nfsfsxn/oracopy/%U';
      delete obsolete;
      sql 'alter system archive log current';
      recover copy of database with tag 'OraCopyBKUPonFSxN_level_0';
      backup incremental level 1 copies=1 for recover of copy with tag 'OraCopyBKUPonFSxN_level_0' database;
    }
  5. EC2 DB 서버에서 RMAN 카탈로그를 사용하거나 사용하지 않고 Oracle 사용자로 RMAN에 로컬로 로그인합니다. 이 데모에서는 RMAN 카탈로그에 접속하지 않습니다.

    rman target / nocatalog;
    
    output:
    
    [oracle@ip-172-30-15-99 ~]$ rman target / nocatalog;
    
    Recovery Manager: Release 19.0.0.0.0 - Production on Wed May 24 17:44:49 2023
    Version 19.18.0.0.0
    
    Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: DB1 (DBID=1730530050)
    using target database control file instead of recovery catalog
    
    RMAN>
  6. RMAN 프롬프트에서 스크립트를 실행합니다. 첫 번째 실행에서는 기본 데이터베이스 이미지 복사본과 후속 실행이 기본 이미지 복사본을 점진적으로 병합하고 업데이트합니다. 다음은 스크립트 및 일반 출력을 실행하는 방법입니다. 호스트의 CPU 코어와 일치하는 채널 수를 설정합니다.

    RMAN> @/home/oracle/rman_bkup_merge.cmd
    
    RMAN> RUN
    2> {
    3>   allocate channel c1 device type disk format '/nfsfsxn/oracopy/%U';
    4>   allocate channel c2 device type disk format '/nfsfsxn/oracopy/%U';
    5>   allocate channel c3 device type disk format '/nfsfsxn/oracopy/%U';
    6>   allocate channel c4 device type disk format '/nfsfsxn/oracopy/%U';
    7>   delete obsolete;
    8>   sql 'alter system archive log current';
    9>   recover copy of database with tag 'OraCopyBKUPonFSxN_level_0';
    10>  backup incremental level 1 copies=1 for recover of copy with tag 'OraCopyBKUPonFSxN_level_0' database;
    11> }
    
    allocated channel: c1
    channel c1: SID=411 device type=DISK
    
    allocated channel: c2
    channel c2: SID=146 device type=DISK
    
    allocated channel: c3
    channel c3: SID=402 device type=DISK
    
    allocated channel: c4
    channel c4: SID=37 device type=DISK
    
    Starting recover at 17-MAY-23
    no copy of datafile 1 found to recover
    no copy of datafile 3 found to recover
    no copy of datafile 4 found to recover
    no copy of datafile 5 found to recover
    no copy of datafile 6 found to recover
    no copy of datafile 7 found to recover
    .
    .
    Finished recover at 17-MAY-23
    
    Starting backup at 17-MAY-23
    channel c1: starting incremental level 1 datafile backup set
    channel c1: specifying datafile(s) in backup set
    input datafile file number=00022 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.287.1137018311
    input datafile file number=00026 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.291.1137018481
    input datafile file number=00030 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.295.1137018787
    input datafile file number=00011 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/undotbs1.271.1136668041
    input datafile file number=00035 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.300.1137019181
    channel c1: starting piece 1 at 17-MAY-23
    channel c2: starting incremental level 1 datafile backup set
    channel c2: specifying datafile(s) in backup set
    input datafile file number=00023 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.288.1137018359
    input datafile file number=00027 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.292.1137018523
    input datafile file number=00031 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.296.1137018837
    input datafile file number=00009 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/system.272.1136668041
    input datafile file number=00034 name=+DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.299.1137019117
    .
    .
    Finished backup at 17-MAY-23
    
    Starting Control File and SPFILE Autobackup at 17-MAY-23
    piece handle=+LOGS/DB1/AUTOBACKUP/2023_05_17/s_1137095435.367.1137095435 comment=NONE
    Finished Control File and SPFILE Autobackup at 17-MAY-23
    released channel: c1
    released channel: c2
    released channel: c3
    released channel: c4
    
    RMAN> **end-of-file**
  7. 백업 후 데이터베이스 이미지 복제본을 나열하여 FSx ONTAP NFS 마운트 지점에서 데이터베이스 이미지 복제본이 생성되었는지 확인합니다.

    RMAN> list copy of database tag 'OraCopyBKUPonFSxN_level_0';
    
    List of Datafile Copies
    =======================
    
    Key     File S Completion Time Ckp SCN    Ckp Time        Sparse
    ------- ---- - --------------- ---------- --------------- ------
    19      1    A 17-MAY-23       3009819    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_0h1sd7ae
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    20      3    A 17-MAY-23       3009826    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_0i1sd7at
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    21      4    A 17-MAY-23       3009830    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_0j1sd7b4
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    27      5    A 17-MAY-23       2383520    12-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_0p1sd7cf
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    26      6    A 17-MAY-23       2383520    12-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_0o1sd7c8
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    34      7    A 17-MAY-23       3009907    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-7_101sd7dl
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    33      8    A 17-MAY-23       2383520    12-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_0v1sd7di
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    28      9    A 17-MAY-23       3009871    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_0q1sd7cm
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    22      10   A 17-MAY-23       3009849    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_0k1sd7bb
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    25      11   A 17-MAY-23       3009862    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_0n1sd7c1
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    35      12   A 17-MAY-23       3009909    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-12_111sd7dm
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    29      13   A 17-MAY-23       3009876    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_0r1sd7ct
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    23      14   A 17-MAY-23       3009854    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_0l1sd7bi
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    31      15   A 17-MAY-23       3009900    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_0t1sd7db
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    36      16   A 17-MAY-23       3009911    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_121sd7dn
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    30      17   A 17-MAY-23       3009895    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_0s1sd7d4
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    24      18   A 17-MAY-23       3009858    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_0m1sd7bq
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    32      19   A 17-MAY-23       3009903    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_0u1sd7de
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    37      20   A 17-MAY-23       3009914    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_131sd7do
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    4       21   A 17-MAY-23       3009019    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_021sd6pv
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    5       22   A 17-MAY-23       3009419    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-22_031sd6r2
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    6       23   A 17-MAY-23       3009460    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_041sd6s5
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    7       24   A 17-MAY-23       3009473    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-24_051sd6t9
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    8       25   A 17-MAY-23       3009502    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_061sd6uc
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    9       26   A 17-MAY-23       3009548    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-26_071sd6vf
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    10      27   A 17-MAY-23       3009576    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_081sd70i
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    11      28   A 17-MAY-23       3009590    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-28_091sd71l
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    12      29   A 17-MAY-23       3009619    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-29_0a1sd72o
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    13      30   A 17-MAY-23       3009648    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-30_0b1sd73r
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    14      31   A 17-MAY-23       3009671    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_0c1sd74u
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    15      32   A 17-MAY-23       3009729    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-32_0d1sd762
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    16      33   A 17-MAY-23       3009743    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-33_0e1sd775
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    17      34   A 17-MAY-23       3009771    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_0f1sd788
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    18      35   A 17-MAY-23       3009805    17-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-35_0g1sd79b
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    
    RMAN>
  8. Oracle RMAN 명령 프롬프트에서 스키마를 보고하여 현재 활성 데이터베이스 데이터 파일이 운영 스토리지 ASM + 데이터 디스크 그룹에 있는지 확인합니다.

    RMAN> report schema;
    
    Report of database schema for database with db_unique_name DB1
    
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    ---- -------- -------------------- ------- ------------------------
    1    1060     SYSTEM               YES     +DATA/DB1/DATAFILE/system.257.1136666315
    3    810      SYSAUX               NO      +DATA/DB1/DATAFILE/sysaux.258.1136666361
    4    675      UNDOTBS1             YES     +DATA/DB1/DATAFILE/undotbs1.259.1136666385
    5    400      PDB$SEED:SYSTEM      NO      +DATA/DB1/86B637B62FE07A65E053F706E80A27CA/DATAFILE/system.266.1136667165
    6    460      PDB$SEED:SYSAUX      NO      +DATA/DB1/86B637B62FE07A65E053F706E80A27CA/DATAFILE/sysaux.267.1136667165
    7    5        USERS                NO      +DATA/DB1/DATAFILE/users.260.1136666387
    8    230      PDB$SEED:UNDOTBS1    NO      +DATA/DB1/86B637B62FE07A65E053F706E80A27CA/DATAFILE/undotbs1.268.1136667165
    9    400      DB1_PDB1:SYSTEM      YES     +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/system.272.1136668041
    10   490      DB1_PDB1:SYSAUX      NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/sysaux.273.1136668041
    11   465      DB1_PDB1:UNDOTBS1    YES     +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/undotbs1.271.1136668041
    12   5        DB1_PDB1:USERS       NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/users.275.1136668057
    13   400      DB1_PDB2:SYSTEM      YES     +DATA/DB1/FB867EA89ECF81C0E053630F1EACB901/DATAFILE/system.277.1136668057
    14   470      DB1_PDB2:SYSAUX      NO      +DATA/DB1/FB867EA89ECF81C0E053630F1EACB901/DATAFILE/sysaux.278.1136668057
    15   235      DB1_PDB2:UNDOTBS1    YES     +DATA/DB1/FB867EA89ECF81C0E053630F1EACB901/DATAFILE/undotbs1.276.1136668057
    16   5        DB1_PDB2:USERS       NO      +DATA/DB1/FB867EA89ECF81C0E053630F1EACB901/DATAFILE/users.280.1136668071
    17   400      DB1_PDB3:SYSTEM      YES     +DATA/DB1/FB867F8A4D4F821CE053630F1EAC69CC/DATAFILE/system.282.1136668073
    18   470      DB1_PDB3:SYSAUX      NO      +DATA/DB1/FB867F8A4D4F821CE053630F1EAC69CC/DATAFILE/sysaux.283.1136668073
    19   235      DB1_PDB3:UNDOTBS1    YES     +DATA/DB1/FB867F8A4D4F821CE053630F1EAC69CC/DATAFILE/undotbs1.281.1136668073
    20   5        DB1_PDB3:USERS       NO      +DATA/DB1/FB867F8A4D4F821CE053630F1EAC69CC/DATAFILE/users.285.1136668087
    21   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.286.1137018239
    22   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.287.1137018311
    23   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.288.1137018359
    24   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.289.1137018405
    25   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.290.1137018443
    26   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.291.1137018481
    27   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.292.1137018523
    28   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.293.1137018707
    29   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.294.1137018745
    30   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.295.1137018787
    31   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.296.1137018837
    32   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.297.1137018935
    33   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.298.1137019077
    34   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.299.1137019117
    35   4096     DB1_PDB1:SOE         NO      +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/DATAFILE/soe.300.1137019181
    
    List of Temporary Files
    =======================
    File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
    ---- -------- -------------------- ----------- --------------------
    1    123      TEMP                 32767       +DATA/DB1/TEMPFILE/temp.265.1136666447
    2    123      PDB$SEED:TEMP        32767       +DATA/DB1/FB864A929AEB79B9E053630F1EAC7046/TEMPFILE/temp.269.1136667185
    3    10240    DB1_PDB1:TEMP        32767       +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/TEMPFILE/temp.274.1136668051
    4    123      DB1_PDB2:TEMP        32767       +DATA/DB1/FB867EA89ECF81C0E053630F1EACB901/TEMPFILE/temp.279.1136668067
    5    123      DB1_PDB3:TEMP        32767       +DATA/DB1/FB867F8A4D4F821CE053630F1EAC69CC/TEMPFILE/temp.284.1136668081
    
    RMAN>
  9. OS NFS 마운트 지점에서 데이터베이스 이미지 복사본 검증

    [oracle@ip-172-30-15-99 ~]$ ls -l /nfsfsxn/oracopy/
    total 70585148
    -rw-r----- 1 oracle asm 4294975488 May 17 18:09 data_D-DB1_I-1730530050_TS-SOE_FNO-21_021sd6pv
    -rw-r----- 1 oracle asm 4294975488 May 17 18:10 data_D-DB1_I-1730530050_TS-SOE_FNO-22_031sd6r2
    -rw-r----- 1 oracle asm 4294975488 May 17 18:10 data_D-DB1_I-1730530050_TS-SOE_FNO-23_041sd6s5
    -rw-r----- 1 oracle asm 4294975488 May 17 18:11 data_D-DB1_I-1730530050_TS-SOE_FNO-24_051sd6t9
    -rw-r----- 1 oracle asm 4294975488 May 17 18:11 data_D-DB1_I-1730530050_TS-SOE_FNO-25_061sd6uc
    -rw-r----- 1 oracle asm 4294975488 May 17 18:12 data_D-DB1_I-1730530050_TS-SOE_FNO-26_071sd6vf
    -rw-r----- 1 oracle asm 4294975488 May 17 18:13 data_D-DB1_I-1730530050_TS-SOE_FNO-27_081sd70i
    -rw-r----- 1 oracle asm 4294975488 May 17 18:13 data_D-DB1_I-1730530050_TS-SOE_FNO-28_091sd71l
    -rw-r----- 1 oracle asm 4294975488 May 17 18:14 data_D-DB1_I-1730530050_TS-SOE_FNO-29_0a1sd72o
    -rw-r----- 1 oracle asm 4294975488 May 17 18:14 data_D-DB1_I-1730530050_TS-SOE_FNO-30_0b1sd73r
    -rw-r----- 1 oracle asm 4294975488 May 17 18:15 data_D-DB1_I-1730530050_TS-SOE_FNO-31_0c1sd74u
    -rw-r----- 1 oracle asm 4294975488 May 17 18:16 data_D-DB1_I-1730530050_TS-SOE_FNO-32_0d1sd762
    -rw-r----- 1 oracle asm 4294975488 May 17 18:16 data_D-DB1_I-1730530050_TS-SOE_FNO-33_0e1sd775
    -rw-r----- 1 oracle asm 4294975488 May 17 18:17 data_D-DB1_I-1730530050_TS-SOE_FNO-34_0f1sd788
    -rw-r----- 1 oracle asm 4294975488 May 17 18:17 data_D-DB1_I-1730530050_TS-SOE_FNO-35_0g1sd79b
    -rw-r----- 1 oracle asm  513810432 May 17 18:18 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_0k1sd7bb
    -rw-r----- 1 oracle asm  492838912 May 17 18:18 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_0l1sd7bi
    -rw-r----- 1 oracle asm  492838912 May 17 18:18 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_0m1sd7bq
    -rw-r----- 1 oracle asm  849354752 May 17 18:18 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_0i1sd7at
    -rw-r----- 1 oracle asm  482353152 May 17 18:18 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_0o1sd7c8
    -rw-r----- 1 oracle asm 1111498752 May 17 18:18 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_0h1sd7ae
    -rw-r----- 1 oracle asm  419438592 May 17 18:19 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_0r1sd7ct
    -rw-r----- 1 oracle asm  419438592 May 17 18:19 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_0s1sd7d4
    -rw-r----- 1 oracle asm  419438592 May 17 18:19 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_0p1sd7cf
    -rw-r----- 1 oracle asm  419438592 May 17 18:19 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_0q1sd7cm
    -rw-r----- 1 oracle asm  487596032 May 17 18:18 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_0n1sd7c1
    -rw-r----- 1 oracle asm  246423552 May 17 18:19 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_0t1sd7db
    -rw-r----- 1 oracle asm  246423552 May 17 18:19 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_0u1sd7de
    -rw-r----- 1 oracle asm  707796992 May 17 18:18 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_0j1sd7b4
    -rw-r----- 1 oracle asm  241180672 May 17 18:19 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_0v1sd7di
    -rw-r----- 1 oracle asm    5251072 May 17 18:19 data_D-DB1_I-1730530050_TS-USERS_FNO-12_111sd7dm
    -rw-r----- 1 oracle asm    5251072 May 17 18:19 data_D-DB1_I-1730530050_TS-USERS_FNO-16_121sd7dn
    -rw-r----- 1 oracle asm    5251072 May 17 18:19 data_D-DB1_I-1730530050_TS-USERS_FNO-20_131sd7do
    -rw-r----- 1 oracle asm    5251072 May 17 18:19 data_D-DB1_I-1730530050_TS-USERS_FNO-7_101sd7dl

이것으로 Oracle 데이터베이스 대기 이미지 복사 백업 및 병합의 설치가 완료되었습니다.

빠른 복구를 위해 Oracle DB를 이미지 복제본으로 전환합니다

Details

데이터 손실 또는 손상과 같은 운영 스토리지 문제로 인해 장애가 발생할 경우 데이터베이스를 FSx ONTAP NFS 마운트의 이미지 복제본으로 신속하게 전환하며 데이터베이스 복구 없이 현재 상태로 복구할 수 있습니다. 미디어 복원을 제거하면 VLDB의 데이터베이스 복구 속도가 엄청나게 빨라집니다. 이 활용 사례에서는 데이터베이스 호스트 인스턴스가 온전하고 데이터베이스 제어 파일, 아카이브된 로그 및 현재 로그를 모두 복구에 사용할 수 있다고 가정합니다.

  1. Oracle 사용자로 EC2 DB 서버 호스트에 로그인하고 테스트 테이블을 생성한 후 전환합니다.

    [ec2-user@ip-172-30-15-99 ~]$ sudo su
    [root@ip-172-30-15-99 ec2-user]# su - oracle
    Last login: Thu May 18 14:22:34 UTC 2023
    [oracle@ip-172-30-15-99 ~]$ sqlplus / as sysdba
    
    SQL*Plus: Release 19.0.0.0.0 - Production on Thu May 18 14:30:36 2023
    Version 19.18.0.0.0
    
    Copyright (c) 1982, 2022, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
    Version 19.18.0.0.0
    
    SQL> show pdbs
    
        CON_ID CON_NAME                       OPEN MODE  RESTRICTED
    ---------- ------------------------------ ---------- ----------
             2 PDB$SEED                       READ ONLY  NO
             3 DB1_PDB1                       READ WRITE NO
             4 DB1_PDB2                       READ WRITE NO
             5 DB1_PDB3                       READ WRITE NO
    SQL> alter session set container=db1_pdb1;
    
    Session altered.
    
    SQL> create table test (id integer, dt timestamp, event varchar(100));
    
    Table created.
    
    SQL> insert into test values(1, sysdate, 'test oracle incremental merge switch to copy');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from test;
    
            ID
    ----------
    DT
    ---------------------------------------------------------------------------
    EVENT
    --------------------------------------------------------------------------------
             1
    18-MAY-23 02.35.37.000000 PM
    test oracle incremental merge switch to copy
    
    
    SQL>
  2. 중단 데이터베이스를 종료하여 오류를 시뮬레이션한 다음 마운트 단계에서 Oracle을 시작합니다.

    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    
    Total System Global Area 1.2885E+10 bytes
    Fixed Size                  9177880 bytes
    Variable Size            1778384896 bytes
    Database Buffers         1.1073E+10 bytes
    Redo Buffers               24375296 bytes
    Database mounted.
    SQL>
  3. Oracle 사용자는 RMAN을 통해 Oracle 데이터베이스에 접속하여 데이터베이스를 복제본으로 전환합니다.

    RMAN> switch database to copy;
    
    datafile 1 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_0h1sd7ae"
    datafile 3 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_0i1sd7at"
    datafile 4 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_0j1sd7b4"
    datafile 5 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_0p1sd7cf"
    datafile 6 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_0o1sd7c8"
    datafile 7 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-7_101sd7dl"
    datafile 8 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_0v1sd7di"
    datafile 9 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_0q1sd7cm"
    datafile 10 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_0k1sd7bb"
    datafile 11 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_0n1sd7c1"
    datafile 12 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-12_111sd7dm"
    datafile 13 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_0r1sd7ct"
    datafile 14 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_0l1sd7bi"
    datafile 15 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_0t1sd7db"
    datafile 16 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_121sd7dn"
    datafile 17 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_0s1sd7d4"
    datafile 18 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_0m1sd7bq"
    datafile 19 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_0u1sd7de"
    datafile 20 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_131sd7do"
    datafile 21 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_021sd6pv"
    datafile 22 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-22_031sd6r2"
    datafile 23 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_041sd6s5"
    datafile 24 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-24_051sd6t9"
    datafile 25 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_061sd6uc"
    datafile 26 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-26_071sd6vf"
    datafile 27 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_081sd70i"
    datafile 28 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-28_091sd71l"
    datafile 29 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-29_0a1sd72o"
    datafile 30 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-30_0b1sd73r"
    datafile 31 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_0c1sd74u"
    datafile 32 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-32_0d1sd762"
    datafile 33 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-33_0e1sd775"
    datafile 34 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_0f1sd788"
    datafile 35 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-35_0g1sd79b"
  4. 복구 및 오픈 데이터베이스를 통해 마지막 증분 백업에서 최신 상태로 복원합니다.

    RMAN> recover database;
    
    Starting recover at 18-MAY-23
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=392 device type=DISK
    channel ORA_DISK_1: starting incremental datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00009: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_0q1sd7cm
    destination for restore of datafile 00023: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_041sd6s5
    destination for restore of datafile 00027: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_081sd70i
    destination for restore of datafile 00031: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_0c1sd74u
    destination for restore of datafile 00034: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_0f1sd788
    channel ORA_DISK_1: reading from backup piece /nfsfsxn/oracopy/321sfous_98_1_1
    channel ORA_DISK_1: piece handle=/nfsfsxn/oracopy/321sfous_98_1_1 tag=ORACOPYBKUPONFSXN_LEVEL_0
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    channel ORA_DISK_1: starting incremental datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00010: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_0k1sd7bb
    destination for restore of datafile 00021: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_021sd6pv
    destination for restore of datafile 00025: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_061sd6uc
    .
    .
    .
    channel ORA_DISK_1: starting incremental datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00016: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_121sd7dn
    channel ORA_DISK_1: reading from backup piece /nfsfsxn/oracopy/3i1sfov0_114_1_1
    channel ORA_DISK_1: piece handle=/nfsfsxn/oracopy/3i1sfov0_114_1_1 tag=ORACOPYBKUPONFSXN_LEVEL_0
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    channel ORA_DISK_1: starting incremental datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00020: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_131sd7do
    channel ORA_DISK_1: reading from backup piece /nfsfsxn/oracopy/3j1sfov0_115_1_1
    channel ORA_DISK_1: piece handle=/nfsfsxn/oracopy/3j1sfov0_115_1_1 tag=ORACOPYBKUPONFSXN_LEVEL_0
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    
    Finished recover at 18-MAY-23
    
    RMAN> alter database open;
    
    Statement processed
    
    RMAN>
  5. 복구 후 sqlplus에서 데이터베이스 구조를 확인하여 제어, 임시 및 현재 로그 파일을 제외한 모든 데이터베이스 데이터 파일이 이제 FSx ONTAP NFS 파일 시스템에서 복제본으로 전환되는지 확인합니다.

    SQL> select name from v$datafile
      2  union
      3  select name from v$tempfile
      4  union
      5  select name from v$controlfile
      6  union
      7  select member from v$logfile;
    
    NAME
    --------------------------------------------------------------------------------
    +DATA/DB1/CONTROLFILE/current.261.1136666435
    +DATA/DB1/FB864A929AEB79B9E053630F1EAC7046/TEMPFILE/temp.269.1136667185
    +DATA/DB1/FB867DA8C68C816EE053630F1EAC2BCF/TEMPFILE/temp.274.1136668051
    +DATA/DB1/FB867EA89ECF81C0E053630F1EACB901/TEMPFILE/temp.279.1136668067
    +DATA/DB1/FB867F8A4D4F821CE053630F1EAC69CC/TEMPFILE/temp.284.1136668081
    +DATA/DB1/ONLINELOG/group_1.262.1136666437
    +DATA/DB1/ONLINELOG/group_2.263.1136666437
    +DATA/DB1/ONLINELOG/group_3.264.1136666437
    +DATA/DB1/TEMPFILE/temp.265.1136666447
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_021sd6pv
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-22_031sd6r2
    
    NAME
    --------------------------------------------------------------------------------
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_041sd6s5
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-24_051sd6t9
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_061sd6uc
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-26_071sd6vf
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_081sd70i
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-28_091sd71l
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-29_0a1sd72o
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-30_0b1sd73r
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_0c1sd74u
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-32_0d1sd762
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-33_0e1sd775
    
    NAME
    --------------------------------------------------------------------------------
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_0f1sd788
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-35_0g1sd79b
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_0k1sd7bb
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_0l1sd7bi
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_0m1sd7bq
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_0i1sd7at
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_0o1sd7c8
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_0r1sd7ct
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_0s1sd7d4
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_0h1sd7ae
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_0p1sd7cf
    
    NAME
    --------------------------------------------------------------------------------
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_0q1sd7cm
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_0n1sd7c1
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_0t1sd7db
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_0u1sd7de
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_0j1sd7b4
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_0v1sd7di
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-12_111sd7dm
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_121sd7dn
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_131sd7do
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-7_101sd7dl
    
    43 rows selected.
    
    SQL>
  6. SQL plus에서 전환할 때 복사하도록 전환하기 전에 삽입한 테스트 테이블의 내용을 확인합니다

    SQL> show pdbs
    
        CON_ID CON_NAME                       OPEN MODE  RESTRICTED
    ---------- ------------------------------ ---------- ----------
             2 PDB$SEED                       READ ONLY  NO
             3 DB1_PDB1                       READ WRITE NO
             4 DB1_PDB2                       READ WRITE NO
             5 DB1_PDB3                       READ WRITE NO
    SQL> alter session set container=db1_pdb1;
    
    Session altered.
    
    SQL> select * from test;
    
            ID
    ----------
    DT
    ---------------------------------------------------------------------------
    EVENT
    --------------------------------------------------------------------------------
             1
    18-MAY-23 02.35.37.000000 PM
    test oracle incremental merge switch to copy
    
    
    SQL>
  7. FSx ONTAP는 뛰어난 성능을 제공하는 이중화된 운영 등급 스토리지이므로 FSx NFS 마운트에서 Oracle 데이터베이스를 장기간 동안 성능 저하 없이 실행할 수 있습니다. 운영 스토리지 문제가 해결되면 가동 중지 시간을 최소화하면서 증분 백업 병합 프로세스를 반대로 수행하여 다시 되돌릴 수 있습니다.

이미지 복사본에서 다른 EC2 DB 인스턴스 호스트로 Oracle DB 복구

Details

운영 스토리지와 EC2 DB 인스턴스 호스트가 모두 손실되는 경우 원래 서버에서 복구를 수행할 수 없습니다. 다행히 아직 이중화된 FSx ONTAP NFS 파일 시스템에 Oracle 데이터베이스 백업 이미지 복사본이 있습니다. 동일한 EC2 DB 인스턴스를 다시 빠르게 프로비저닝하고 NFS를 통해 VLDB의 이미지 복사본을 새 EC2 DB 호스트에 쉽게 마운트하여 복구를 실행할 수 있습니다. 이 섹션에서는 이러한 작업을 위한 단계별 절차를 시연합니다.

  1. 대체 호스트 검증으로 Oracle 데이터베이스를 복구하기 위해 이전에 만든 테스트 테이블에 행을 삽입합니다.

    [oracle@ip-172-30-15-99 ~]$ sqlplus / as sysdba
    
    SQL*Plus: Release 19.0.0.0.0 - Production on Tue May 30 17:21:05 2023
    Version 19.18.0.0.0
    
    Copyright (c) 1982, 2022, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
    Version 19.18.0.0.0
    
    SQL> show pdbs
    
        CON_ID CON_NAME                       OPEN MODE  RESTRICTED
    ---------- ------------------------------ ---------- ----------
             2 PDB$SEED                       READ ONLY  NO
             3 DB1_PDB1                       READ WRITE NO
             4 DB1_PDB2                       READ WRITE NO
             5 DB1_PDB3                       READ WRITE NO
    SQL> alter session set container=db1_pdb1;
    
    Session altered.
    
    
    SQL> insert into test values(2, sysdate, 'test recovery on a new EC2 instance host with image copy on FSx ONTAP');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from test;
    
            ID
    ----------
    DT
    ---------------------------------------------------------------------------
    EVENT
    --------------------------------------------------------------------------------
             1
    18-MAY-23 02.35.37.000000 PM
    test oracle incremental merge switch to copy
    
             2
    30-MAY-23 05.23.11.000000 PM
    test recovery on a new EC2 instance host with image copy on FSx ONTAP
    
    
    SQL>
  2. Oracle 사용자로서 RMAN 증분 백업 및 병합을 실행하여 트랜잭션을 FSx ONTAP NFS 마운트의 백업 세트로 플러시합니다.

    [oracle@ip-172-30-15-99 ~]$ rman target / nocatalog
    
    Recovery Manager: Release 19.0.0.0.0 - Production on Tue May 30 17:26:03 2023
    Version 19.18.0.0.0
    
    Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: DB1 (DBID=1730530050)
    using target database control file instead of recovery catalog
    
    RMAN> @rman_bkup_merge.cmd
  3. 운영 EC2 DB 인스턴스 호스트를 종료하여 스토리지 및 DB 서버 호스트의 총 장애를 시뮬레이션합니다.

  4. AWS EC2 콘솔을 통해 OS와 버전이 동일한 새 EC2 DB 인스턴스 호스트 ora_02 를 사용합니다. 운영 EC2 DB 서버 호스트와 동일한 패치를 사용하여 운영 체제 커널 을 구성하고, Oracle은 RPM을 사전 설치하고, 호스트에 스왑 공간을 추가합니다. 소프트웨어만 제공하는 운영 EC2 DB 서버 호스트와 동일한 버전의 Oracle 패치를 설치합니다. 아래 링크에서 제공되는 NetApp 자동화 툴킷을 사용하여 이러한 작업을 자동화할 수 있습니다.

  5. oratab, oraInst.loc 및 Oracle user.bash_profile과 같은 Oracle 환경을 운영 EC2 DB 인스턴스 호스트 ora_01에 맞게 구성합니다. 이러한 파일을 FSx ONTAP NFS 마운트 지점에 백업하는 것이 좋습니다.

  6. FSx ONTAP NFS 마운트의 Oracle 데이터베이스 백업 이미지 복사본은 이중화, 고가용성 및 고성능을 위해 AWS 가용성 영역을 포괄하는 FSx 클러스터에 저장됩니다. 네트워킹에 연결할 수 있는 한 NFS 파일 시스템을 새 서버에 쉽게 마운트할 수 있습니다. 다음 절차에서는 복구를 위해 Oracle VLDB 백업의 이미지 복제본을 새로 프로장된 EC2 DB 인스턴스 호스트에 마운트합니다.

    EC2-USER로 마운트 지점을 만듭니다.

    sudo mkdir /nfsfsxn

    EC2-USER로 Oracle VLDB 백업 이미지 복사본을 저장한 NFS 볼륨을 마운트합니다.

    sudo mount 172.30.15.19:/ora_01_copy /nfsfsxn -o rw,bg,hard,vers=3,proto=tcp,timeo=600,rsize=262144,wsize=262144,nointr
  7. FSx ONTAP NFS 마운트 지점에서 Oracle 데이터베이스 백업 이미지 복사본을 검증합니다.

    [ec2-user@ip-172-30-15-124 ~]$ ls -ltr /nfsfsxn/oracopy
    total 78940700
    -rw-r-----. 1 oracle 54331  482353152 May 26 18:45 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_4m1t508t
    -rw-r-----. 1 oracle 54331  419438592 May 26 18:45 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_4q1t509n
    -rw-r-----. 1 oracle 54331  241180672 May 26 18:45 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_4t1t50a6
    -rw-r-----. 1 oracle 54331     450560 May 30 15:29 6b1tf6b8_203_1_1
    -rw-r-----. 1 oracle 54331     663552 May 30 15:29 6c1tf6b8_204_1_1
    -rw-r-----. 1 oracle 54331     122880 May 30 15:29 6d1tf6b8_205_1_1
    -rw-r-----. 1 oracle 54331     507904 May 30 15:29 6e1tf6b8_206_1_1
    -rw-r-----. 1 oracle 54331    4259840 May 30 15:29 6f1tf6b9_207_1_1
    -rw-r-----. 1 oracle 54331    9060352 May 30 15:29 6h1tf6b9_209_1_1
    -rw-r-----. 1 oracle 54331     442368 May 30 15:29 6i1tf6b9_210_1_1
    -rw-r-----. 1 oracle 54331     475136 May 30 15:29 6j1tf6bb_211_1_1
    -rw-r-----. 1 oracle 54331   48660480 May 30 15:29 6g1tf6b9_208_1_1
    -rw-r-----. 1 oracle 54331     589824 May 30 15:29 6l1tf6bb_213_1_1
    -rw-r-----. 1 oracle 54331     606208 May 30 15:29 6m1tf6bb_214_1_1
    -rw-r-----. 1 oracle 54331     368640 May 30 15:29 6o1tf6bb_216_1_1
    -rw-r-----. 1 oracle 54331     368640 May 30 15:29 6p1tf6bc_217_1_1
    -rw-r-----. 1 oracle 54331      57344 May 30 15:29 6r1tf6bc_219_1_1
    -rw-r-----. 1 oracle 54331      57344 May 30 15:29 6s1tf6bc_220_1_1
    -rw-r-----. 1 oracle 54331      57344 May 30 15:29 6t1tf6bc_221_1_1
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-23_3q1t4ut3
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-21_3o1t4ut2
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-27_461t4vt7
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-25_3s1t4v1a
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-22_3p1t4ut3
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-31_4a1t5015
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-29_481t4vt7
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-34_4d1t5058
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-26_451t4vt7
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-24_3r1t4ut3
    -rw-r-----. 1 oracle 54331  555753472 May 30 17:26 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_4i1t5083
    -rw-r-----. 1 oracle 54331  429924352 May 30 17:26 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_4n1t509m
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-30_491t5014
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-28_471t4vt7
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-35_4e1t5059
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-32_4b1t501u
    -rw-r-----. 1 oracle 54331  487596032 May 30 17:26 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_4l1t508t
    -rw-r-----. 1 oracle 54331 4294975488 May 30 17:26 data_D-DB1_I-1730530050_TS-SOE_FNO-33_4c1t501v
    -rw-r-----. 1 oracle 54331    5251072 May 30 17:26 data_D-DB1_I-1730530050_TS-USERS_FNO-12_4v1t50aa
    -rw-r-----. 1 oracle 54331 1121984512 May 30 17:26 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_4f1t506m
    -rw-r-----. 1 oracle 54331  707796992 May 30 17:26 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_4h1t5083
    -rw-r-----. 1 oracle 54331  534781952 May 30 17:26 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_4j1t508s
    -rw-r-----. 1 oracle 54331  429924352 May 30 17:26 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_4o1t509m
    -rw-r-----. 1 oracle 54331  429924352 May 30 17:26 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_4p1t509m
    -rw-r-----. 1 oracle 54331  534781952 May 30 17:26 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_4k1t508t
    -rw-r-----. 1 oracle 54331 1027612672 May 30 17:26 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_4g1t506m
    -rw-r-----. 1 oracle 54331    5251072 May 30 17:26 data_D-DB1_I-1730530050_TS-USERS_FNO-7_4u1t50a6
    -rw-r-----. 1 oracle 54331  246423552 May 30 17:26 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_4r1t50a6
    -rw-r-----. 1 oracle 54331    5251072 May 30 17:26 data_D-DB1_I-1730530050_TS-USERS_FNO-16_501t50ad
    -rw-r-----. 1 oracle 54331  246423552 May 30 17:26 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_4s1t50a6
    -rw-r-----. 1 oracle 54331    5251072 May 30 17:26 data_D-DB1_I-1730530050_TS-USERS_FNO-20_511t50ad
    -rw-r-----. 1 oracle 54331 2318712832 May 30 17:32 721tfd6b_226_1_1
    -rw-r-----. 1 oracle 54331 1813143552 May 30 17:33 701tfd6a_224_1_1
    -rw-r-----. 1 oracle 54331     966656 May 30 17:33 731tfdic_227_1_1
    -rw-r-----. 1 oracle 54331    5980160 May 30 17:33 751tfdij_229_1_1
    -rw-r-----. 1 oracle 54331     458752 May 30 17:33 761tfdin_230_1_1
    -rw-r-----. 1 oracle 54331     458752 May 30 17:33 771tfdiq_231_1_1
    -rw-r-----. 1 oracle 54331   11091968 May 30 17:33 741tfdij_228_1_1
    -rw-r-----. 1 oracle 54331     401408 May 30 17:33 791tfdit_233_1_1
    -rw-r-----. 1 oracle 54331 2070708224 May 30 17:33 6v1tfd6a_223_1_1
    -rw-r-----. 1 oracle 54331     376832 May 30 17:33 7a1tfdit_234_1_1
    -rw-r-----. 1 oracle 54331 1874903040 May 30 17:33 711tfd6b_225_1_1
    -rw-r-----. 1 oracle 54331     303104 May 30 17:33 7c1tfdiu_236_1_1
    -rw-r-----. 1 oracle 54331     319488 May 30 17:33 7d1tfdiv_237_1_1
    -rw-r-----. 1 oracle 54331      57344 May 30 17:33 7f1tfdiv_239_1_1
    -rw-r-----. 1 oracle 54331      57344 May 30 17:33 7g1tfdiv_240_1_1
    -rw-r-----. 1 oracle 54331      57344 May 30 17:33 7h1tfdiv_241_1_1
    -rw-r--r--. 1 oracle 54331      12720 May 30 17:33 db1_ctl.sql
    -rw-r-----. 1 oracle 54331   11600384 May 30 17:54 bct_db1.ctf
  8. 복구를 위해 FSx ONTAP NFS 마운트에서 사용 가능한 Oracle 아카이브 로그를 확인하고 마지막 로그 파일 로그 시퀀스 번호를 기록합니다. 이 경우 175입니다. 복구 시점은 로그 시퀀스 번호 176입니다.

     [ec2-user@ip-172-30-15-124 ~]$ ls -ltr /nfsfsxn/archlog/DB1/archivelog/2023_05_30
    total 5714400
    -r--r-----. 1 oracle 54331    321024 May 30 14:59 o1_mf_1_140__003t9mvn_.arc
    -r--r-----. 1 oracle 54331  48996352 May 30 15:29 o1_mf_1_141__01t9qf6r_.arc
    -r--r-----. 1 oracle 54331 167477248 May 30 15:44 o1_mf_1_142__02n3x2qb_.arc
    -r--r-----. 1 oracle 54331 165684736 May 30 15:46 o1_mf_1_143__02rotwyb_.arc
    -r--r-----. 1 oracle 54331 165636608 May 30 15:49 o1_mf_1_144__02x563wh_.arc
    -r--r-----. 1 oracle 54331 168408064 May 30 15:51 o1_mf_1_145__031kg2co_.arc
    -r--r-----. 1 oracle 54331 169446400 May 30 15:54 o1_mf_1_146__035xpcdt_.arc
    -r--r-----. 1 oracle 54331 167595520 May 30 15:56 o1_mf_1_147__03bds8qf_.arc
    -r--r-----. 1 oracle 54331 169270272 May 30 15:59 o1_mf_1_148__03gyt7rx_.arc
    -r--r-----. 1 oracle 54331 170712576 May 30 16:01 o1_mf_1_149__03mfxl7v_.arc
    -r--r-----. 1 oracle 54331 170744832 May 30 16:04 o1_mf_1_150__03qzz0ty_.arc
    -r--r-----. 1 oracle 54331 169380864 May 30 16:06 o1_mf_1_151__03wgxdry_.arc
    -r--r-----. 1 oracle 54331 169833984 May 30 16:09 o1_mf_1_152__040y85v3_.arc
    -r--r-----. 1 oracle 54331 165134336 May 30 16:20 o1_mf_1_153__04ox946w_.arc
    -r--r-----. 1 oracle 54331 169929216 May 30 16:22 o1_mf_1_154__04rbv7n8_.arc
    -r--r-----. 1 oracle 54331 171903488 May 30 16:23 o1_mf_1_155__04tv1yvn_.arc
    -r--r-----. 1 oracle 54331 179061248 May 30 16:25 o1_mf_1_156__04xgfjtl_.arc
    -r--r-----. 1 oracle 54331 173593088 May 30 16:26 o1_mf_1_157__04zyg8hw_.arc
    -r--r-----. 1 oracle 54331 175999488 May 30 16:27 o1_mf_1_158__052gp9mt_.arc
    -r--r-----. 1 oracle 54331 179092992 May 30 16:29 o1_mf_1_159__0551wk7s_.arc
    -r--r-----. 1 oracle 54331 175524352 May 30 16:30 o1_mf_1_160__057l46my_.arc
    -r--r-----. 1 oracle 54331 173949440 May 30 16:32 o1_mf_1_161__05b2dmwp_.arc
    -r--r-----. 1 oracle 54331 184166912 May 30 16:33 o1_mf_1_162__05drbj8n_.arc
    -r--r-----. 1 oracle 54331 173026816 May 30 16:35 o1_mf_1_163__05h8lm1h_.arc
    -r--r-----. 1 oracle 54331 174286336 May 30 16:36 o1_mf_1_164__05krsqmh_.arc
    -r--r-----. 1 oracle 54331 166092288 May 30 16:37 o1_mf_1_165__05n378pw_.arc
    -r--r-----. 1 oracle 54331 177640960 May 30 16:39 o1_mf_1_166__05pmg74l_.arc
    -r--r-----. 1 oracle 54331 173972992 May 30 16:40 o1_mf_1_167__05s3o01r_.arc
    -r--r-----. 1 oracle 54331 178474496 May 30 16:41 o1_mf_1_168__05vmwt34_.arc
    -r--r-----. 1 oracle 54331 177694208 May 30 16:43 o1_mf_1_169__05y45qdd_.arc
    -r--r-----. 1 oracle 54331 170814976 May 30 16:44 o1_mf_1_170__060kgh33_.arc
    -r--r-----. 1 oracle 54331 177325056 May 30 16:46 o1_mf_1_171__0631tvgv_.arc
    -r--r-----. 1 oracle 54331 164455424 May 30 16:47 o1_mf_1_172__065d94fq_.arc
    -r--r-----. 1 oracle 54331 178252288 May 30 16:48 o1_mf_1_173__067wnwy8_.arc
    -r--r-----. 1 oracle 54331 170579456 May 30 16:50 o1_mf_1_174__06b9zdh8_.arc
    -r--r-----. 1 oracle 54331  93928960 May 30 17:26 o1_mf_1_175__08c7jc2b_.arc
    [ec2-user@ip-172-30-15-124 ~]$
  9. Oracle 사용자로, 새 EC2 인스턴스 DB 호스트 ora_02, ORACLE_SID에 ORACLE_HOME 변수를 현재 Oracle 설치 상태로 설정합니다. 이 경우 db1입니다.

  10. Oracle 사용자는 적절한 관리 디렉토리가 구성된 $ORACLE_HOME/dbs 디렉토리에 일반 Oracle 초기화 파일을 생성합니다. 가장 중요한 것은 Oracle이 운영 Oracle VLDB 인스턴스에 정의된 FSx ONTAP NFS 마운트 경로를 가리키도록 하는 flash recovery area 것입니다. flash recovery area 구성은 섹션에 `Setup Oracle RMAN incremental merge to image copy on FSx`설명되어 있습니다. Oracle 제어 파일을 FSx ONTAP NFS 파일 시스템으로 설정합니다.

    vi $ORACLE_HOME/dbs/initdb1.ora

    다음 예제 항목이 있는 경우:

    *.audit_file_dest='/u01/app/oracle/admin/db1/adump'
    *.audit_trail='db'
    *.compatible='19.0.0'
    *.control_files=('/nfsfsxn/oracopy/db1.ctl')
    *.db_block_size=8192
    *.db_create_file_dest='/nfsfsxn/oracopy/'
    *.db_domain='demo.netapp.com'
    *.db_name='db1'
    *.db_recovery_file_dest_size=85899345920
    *.db_recovery_file_dest='/nfsfsxn/archlog/'
    *.diagnostic_dest='/u01/app/oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=db1XDB)'
    *.enable_pluggable_database=true
    *.local_listener='LISTENER'
    *.nls_language='AMERICAN'
    *.nls_territory='AMERICA'
    *.open_cursors=300
    *.pga_aggregate_target=1024m
    *.processes=320
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=10240m
    *.undo_tablespace='UNDOTBS1'

    일치하지 않는 경우 위의 init 파일을 운영 Oracle DB 서버에서 복구된 백업 초기화 파일로 교체해야 합니다.

  11. Oracle 사용자로 RMAN을 실행하여 새 EC2 DB 인스턴스 호스트에서 Oracle 복구를 실행합니다.

    [oracle@ip-172-30-15-124 dbs]$ rman target / nocatalog;
    
    Recovery Manager: Release 19.0.0.0.0 - Production on Wed May 31 00:56:07 2023
    Version 19.18.0.0.0
    
    Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database (not started)
    
    RMAN> startup nomount;
    
    Oracle instance started
    
    Total System Global Area   12884900632 bytes
    
    Fixed Size                     9177880 bytes
    Variable Size               1778384896 bytes
    Database Buffers           11072962560 bytes
    Redo Buffers                  24375296 bytes
  12. 데이터베이스 ID를 설정합니다. 데이터베이스 ID는 FSx NFS 마운트 지점에 있는 이미지 복제본의 Oracle 파일 이름에서 검색할 수 있습니다.

    RMAN> set dbid = 1730530050;
    
    executing command: SET DBID
  13. 자동 백업에서 제어 파일을 복원합니다. Oracle 제어 파일 및 spfile 자동 백업이 활성화된 경우 모든 증분 백업 및 병합 주기에 백업됩니다. 여러 복제본을 사용할 수 있는 경우 최신 백업이 복구됩니다.

    RMAN> restore controlfile from autobackup;
    
    Starting restore at 31-MAY-23
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=2 device type=DISK
    
    recovery area destination: /nfsfsxn/archlog
    database name (or database unique name) used for search: DB1
    channel ORA_DISK_1: AUTOBACKUP /nfsfsxn/archlog/DB1/autobackup/2023_05_30/o1_mf_s_1138210401__08qlxrrr_.bkp found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20230531
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20230530
    channel ORA_DISK_1: restoring control file from AUTOBACKUP /nfsfsxn/archlog/DB1/autobackup/2023_05_30/o1_mf_s_1138210401__08qlxrrr_.bkp
    channel ORA_DISK_1: control file restore from AUTOBACKUP complete
    output file name=/nfsfsxn/oracopy/db1.ctl
    Finished restore at 31-MAY-23
  14. 나중에 기본 DB 인스턴스와 일치하도록 매개 변수 파일을 업데이트하기 위해 spfile에서 /tmp 폴더로 초기화 파일을 복구합니다.

    RMAN> restore spfile to pfile '/tmp/archive/initdb1.ora' from autobackup;
    
    Starting restore at 31-MAY-23
    using channel ORA_DISK_1
    
    recovery area destination: /nfsfsxn/archlog
    database name (or database unique name) used for search: DB1
    channel ORA_DISK_1: AUTOBACKUP /nfsfsxn/archlog/DB1/autobackup/2023_05_30/o1_mf_s_1138210401__08qlxrrr_.bkp found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20230531
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20230530
    channel ORA_DISK_1: restoring spfile from AUTOBACKUP /nfsfsxn/archlog/DB1/autobackup/2023_05_30/o1_mf_s_1138210401__08qlxrrr_.bkp
    channel ORA_DISK_1: SPFILE restore from AUTOBACKUP complete
    Finished restore at 31-MAY-23
  15. 제어 파일을 마운트하고 데이터베이스 백업 이미지 복제본을 확인합니다.

    RMAN> alter database mount;
    
    released channel: ORA_DISK_1
    Statement processed
    
    RMAN> list copy of database tag 'OraCopyBKUPonFSxN_level_0';
    
    List of Datafile Copies
    =======================
    
    Key     File S Completion Time Ckp SCN    Ckp Time        Sparse
    ------- ---- - --------------- ---------- --------------- ------
    316     1    A 30-MAY-23       4120170    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_4f1t506m
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    322     3    A 30-MAY-23       4120175    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_4g1t506m
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    317     4    A 30-MAY-23       4120179    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_4h1t5083
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    221     5    A 26-MAY-23       2383520    12-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_4q1t509n
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    216     6    A 26-MAY-23       2383520    12-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_4m1t508t
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    323     7    A 30-MAY-23       4120207    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-7_4u1t50a6
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    227     8    A 26-MAY-23       2383520    12-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_4t1t50a6
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    308     9    A 30-MAY-23       4120158    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_4n1t509m
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    307     10   A 30-MAY-23       4120166    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_4i1t5083
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    313     11   A 30-MAY-23       4120154    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_4l1t508t
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    315     12   A 30-MAY-23       4120162    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-12_4v1t50aa
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    319     13   A 30-MAY-23       4120191    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_4o1t509m
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    318     14   A 30-MAY-23       4120183    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_4j1t508s
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    324     15   A 30-MAY-23       4120199    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_4r1t50a6
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    325     16   A 30-MAY-23       4120211    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_501t50ad
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    320     17   A 30-MAY-23       4120195    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_4p1t509m
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    321     18   A 30-MAY-23       4120187    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_4k1t508t
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    326     19   A 30-MAY-23       4120203    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_4s1t50a6
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    327     20   A 30-MAY-23       4120216    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_511t50ad
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    298     21   A 30-MAY-23       4120166    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_3o1t4ut2
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    302     22   A 30-MAY-23       4120154    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-22_3p1t4ut3
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    297     23   A 30-MAY-23       4120158    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_3q1t4ut3
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    306     24   A 30-MAY-23       4120162    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-24_3r1t4ut3
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    300     25   A 30-MAY-23       4120166    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_3s1t4v1a
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    305     26   A 30-MAY-23       4120154    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-26_451t4vt7
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    299     27   A 30-MAY-23       4120158    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_461t4vt7
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    310     28   A 30-MAY-23       4120162    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-28_471t4vt7
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    303     29   A 30-MAY-23       4120166    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-29_481t4vt7
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    309     30   A 30-MAY-23       4120154    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-30_491t5014
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    301     31   A 30-MAY-23       4120158    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_4a1t5015
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    312     32   A 30-MAY-23       4120162    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-32_4b1t501u
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    314     33   A 30-MAY-23       4120162    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-33_4c1t501v
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    304     34   A 30-MAY-23       4120158    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_4d1t5058
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    311     35   A 30-MAY-23       4120154    30-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-35_4e1t5059
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
  16. 데이터베이스를 복원하지 않고 복구를 실행하도록 데이터베이스를 복제본으로 전환합니다.

    RMAN> switch database to copy;
    
    Starting implicit crosscheck backup at 31-MAY-23
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=11 device type=DISK
    Crosschecked 33 objects
    Finished implicit crosscheck backup at 31-MAY-23
    
    Starting implicit crosscheck copy at 31-MAY-23
    using channel ORA_DISK_1
    Crosschecked 68 objects
    Finished implicit crosscheck copy at 31-MAY-23
    
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    
    List of Cataloged Files
    =======================
    File Name: /nfsfsxn/archlog/DB1/autobackup/2023_05_30/o1_mf_s_1138210401__08qlxrrr_.bkp
    
    datafile 1 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_4f1t506m"
    datafile 3 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_4g1t506m"
    datafile 4 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_4h1t5083"
    datafile 5 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_4q1t509n"
    datafile 6 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_4m1t508t"
    datafile 7 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-7_4u1t50a6"
    datafile 8 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_4t1t50a6"
    datafile 9 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_4n1t509m"
    datafile 10 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_4i1t5083"
    datafile 11 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_4l1t508t"
    datafile 12 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-12_4v1t50aa"
    datafile 13 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_4o1t509m"
    datafile 14 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_4j1t508s"
    datafile 15 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_4r1t50a6"
    datafile 16 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_501t50ad"
    datafile 17 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_4p1t509m"
    datafile 18 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_4k1t508t"
    datafile 19 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_4s1t50a6"
    datafile 20 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_511t50ad"
    datafile 21 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_3o1t4ut2"
    datafile 22 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-22_3p1t4ut3"
    datafile 23 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_3q1t4ut3"
    datafile 24 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-24_3r1t4ut3"
    datafile 25 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_3s1t4v1a"
    datafile 26 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-26_451t4vt7"
    datafile 27 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_461t4vt7"
    datafile 28 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-28_471t4vt7"
    datafile 29 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-29_481t4vt7"
    datafile 30 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-30_491t5014"
    datafile 31 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_4a1t5015"
    datafile 32 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-32_4b1t501u"
    datafile 33 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-33_4c1t501v"
    datafile 34 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_4d1t5058"
    datafile 35 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-35_4e1t5059"
  17. 플래시 복구 영역에서 사용 가능한 마지막 아카이브 로그까지 Oracle 복구를 실행합니다.

    RMAN> run {
    2> set until sequence=176;
    3> recover database;
    4> }
    
    executing command: SET until clause
    
    Starting recover at 31-MAY-23
    using channel ORA_DISK_1
    
    starting media recovery
    
    archived log for thread 1 with sequence 142 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_142__02n3x2qb_.arc
    archived log for thread 1 with sequence 143 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_143__02rotwyb_.arc
    archived log for thread 1 with sequence 144 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_144__02x563wh_.arc
    archived log for thread 1 with sequence 145 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_145__031kg2co_.arc
    archived log for thread 1 with sequence 146 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_146__035xpcdt_.arc
    archived log for thread 1 with sequence 147 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_147__03bds8qf_.arc
    archived log for thread 1 with sequence 148 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_148__03gyt7rx_.arc
    archived log for thread 1 with sequence 149 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_149__03mfxl7v_.arc
    archived log for thread 1 with sequence 150 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_150__03qzz0ty_.arc
    archived log for thread 1 with sequence 151 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_151__03wgxdry_.arc
    archived log for thread 1 with sequence 152 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_152__040y85v3_.arc
    archived log for thread 1 with sequence 153 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_153__04ox946w_.arc
    archived log for thread 1 with sequence 154 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_154__04rbv7n8_.arc
    archived log for thread 1 with sequence 155 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_155__04tv1yvn_.arc
    archived log for thread 1 with sequence 156 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_156__04xgfjtl_.arc
    archived log for thread 1 with sequence 157 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_157__04zyg8hw_.arc
    archived log for thread 1 with sequence 158 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_158__052gp9mt_.arc
    archived log for thread 1 with sequence 159 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_159__0551wk7s_.arc
    archived log for thread 1 with sequence 160 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_160__057l46my_.arc
    archived log for thread 1 with sequence 161 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_161__05b2dmwp_.arc
    archived log for thread 1 with sequence 162 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_162__05drbj8n_.arc
    archived log for thread 1 with sequence 163 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_163__05h8lm1h_.arc
    archived log for thread 1 with sequence 164 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_164__05krsqmh_.arc
    archived log for thread 1 with sequence 165 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_165__05n378pw_.arc
    archived log for thread 1 with sequence 166 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_166__05pmg74l_.arc
    archived log for thread 1 with sequence 167 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_167__05s3o01r_.arc
    archived log for thread 1 with sequence 168 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_168__05vmwt34_.arc
    archived log for thread 1 with sequence 169 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_169__05y45qdd_.arc
    archived log for thread 1 with sequence 170 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_170__060kgh33_.arc
    archived log for thread 1 with sequence 171 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_171__0631tvgv_.arc
    archived log for thread 1 with sequence 172 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_172__065d94fq_.arc
    archived log for thread 1 with sequence 173 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_173__067wnwy8_.arc
    archived log for thread 1 with sequence 174 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_174__06b9zdh8_.arc
    archived log for thread 1 with sequence 175 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_175__08c7jc2b_.arc
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_142__02n3x2qb_.arc thread=1 sequence=142
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_143__02rotwyb_.arc thread=1 sequence=143
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_144__02x563wh_.arc thread=1 sequence=144
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_145__031kg2co_.arc thread=1 sequence=145
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_146__035xpcdt_.arc thread=1 sequence=146
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_147__03bds8qf_.arc thread=1 sequence=147
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_148__03gyt7rx_.arc thread=1 sequence=148
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_149__03mfxl7v_.arc thread=1 sequence=149
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_150__03qzz0ty_.arc thread=1 sequence=150
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_151__03wgxdry_.arc thread=1 sequence=151
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_152__040y85v3_.arc thread=1 sequence=152
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_153__04ox946w_.arc thread=1 sequence=153
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_154__04rbv7n8_.arc thread=1 sequence=154
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_155__04tv1yvn_.arc thread=1 sequence=155
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_156__04xgfjtl_.arc thread=1 sequence=156
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_157__04zyg8hw_.arc thread=1 sequence=157
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_158__052gp9mt_.arc thread=1 sequence=158
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_159__0551wk7s_.arc thread=1 sequence=159
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_160__057l46my_.arc thread=1 sequence=160
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_161__05b2dmwp_.arc thread=1 sequence=161
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_162__05drbj8n_.arc thread=1 sequence=162
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_163__05h8lm1h_.arc thread=1 sequence=163
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_164__05krsqmh_.arc thread=1 sequence=164
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_165__05n378pw_.arc thread=1 sequence=165
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_166__05pmg74l_.arc thread=1 sequence=166
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_167__05s3o01r_.arc thread=1 sequence=167
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_168__05vmwt34_.arc thread=1 sequence=168
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_169__05y45qdd_.arc thread=1 sequence=169
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_170__060kgh33_.arc thread=1 sequence=170
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_171__0631tvgv_.arc thread=1 sequence=171
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_172__065d94fq_.arc thread=1 sequence=172
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_173__067wnwy8_.arc thread=1 sequence=173
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_174__06b9zdh8_.arc thread=1 sequence=174
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_05_30/o1_mf_1_175__08c7jc2b_.arc thread=1 sequence=175
    media recovery complete, elapsed time: 00:48:34
    Finished recover at 31-MAY-23
    참고 더 빠른 복구를 위해서는 recovery_parallelism 매개 변수를 사용하여 병렬 세션을 설정하거나 데이터베이스 복구를 위한 복구 명령에서 병렬 처리 수준을 지정합니다. RECOVER DATABASE PARALLEL (DEGREE d INSTANCES DEFAULT);. 일반적으로 병렬 처리 수는 호스트의 CPU 코어 수와 같아야 합니다.
  18. RMAN을 종료하고 sqlplus를 통해 Oracle 사용자로 로그인하여 데이터베이스를 열고 불완전한 복구 후 로그를 재설정합니다.

    SQL> select name, open_mode from v$database;
    
    NAME      OPEN_MODE
    --------- --------------------
    DB1       MOUNTED
    
    SQL> select member from v$logfile;
    
    MEMBER
    --------------------------------------------------------------------------------
    +DATA/DB1/ONLINELOG/group_3.264.1136666437
    +DATA/DB1/ONLINELOG/group_2.263.1136666437
    +DATA/DB1/ONLINELOG/group_1.262.1136666437
    
    SQL> alter database rename file '+DATA/DB1/ONLINELOG/group_1.262.1136666437' to '/nfsfsxn/oracopy/redo01.log';
    
    Database altered.
    
    SQL> alter database rename file '+DATA/DB1/ONLINELOG/group_2.263.1136666437' to '/nfsfsxn/oracopy/redo02.log';
    
    Database altered.
    
    SQL> alter database rename file '+DATA/DB1/ONLINELOG/group_3.264.1136666437' to '/nfsfsxn/oracopy/redo03.log';
    
    Database altered.
    
    SQL> alter database open resetlogs;
    
    Database altered.
  19. 데이터베이스가 운영 데이터베이스 장애 전에 삽입한 행이 있는 새 호스트로 복구되었는지 확인합니다.

    SQL> show pdbs
    
        CON_ID CON_NAME                       OPEN MODE  RESTRICTED
    ---------- ------------------------------ ---------- ----------
             2 PDB$SEED                       READ ONLY  NO
             3 DB1_PDB1                       READ WRITE NO
             4 DB1_PDB2                       READ WRITE NO
             5 DB1_PDB3                       READ WRITE NO
    SQL> alter session set container=db1_pdb1;
    
    Session altered.
    
    SQL> select * from test;
    
            ID DT                                                                          EVENT
    ---------- --------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
             1 18-MAY-23 02.35.37.000000 PM                                                test oracle incremental merge switch to copy
             2 30-MAY-23 05.23.11.000000 PM                                                test recovery on a new EC2 instance host with image copy on FSx ONTAP
  20. 기타 복구 후 작업

    Add FSx ONTAP NFS mount to fstab so that the NFS file system will be mounted when EC2 instance host rebooted.
    
    As EC2 user, vi /etc/fstab and add following entry:
    
    172.30.15.19:/ora_01_copy       /nfsfsxn        nfs     rw,bg,hard,vers=3,proto=tcp,timeo=600,rsize=262144,wsize=262144,nointr  0       0
    
    Update the Oracle init file from primary databse init file backup that is restored to /tmp/archive and create spfile as needed.

이렇게 하면 FSx ONTAP NFS 파일 시스템의 백업 이미지 복사본에서 새 EC2 DB 인스턴스 호스트로 Oracle VDB 데이터베이스 복구가 완료됩니다.

다른 활용 사례를 위해 Oracle 대기 이미지 복제본을 복제합니다

Details

Oracle VLDB 이미지 복제본을 스테이징하기 위해 AWS FSx ONTAP를 사용하는 또 다른 이점은 FlexCluned가 최소한의 추가 스토리지 투자로 다른 많은 용도로 사용할 수 있다는 것입니다. 다음 활용 사례에서는 FSx ONTAP에서 DEV, UAT 등과 같은 다른 Oracle 활용 사례에 대해 스테이징 NFS 볼륨을 스냅샷 및 복제하는 방법을 시연합니다

  1. 먼저 이전에 만든 것과 동일한 테스트 테이블에 행을 삽입합니다.

     SQL> insert into test values (3, sysdate, 'test clone on a new EC2 instance host with image copy on FSx ONTAP');
    
    1 row created.
    
    SQL> select * from test;
    
            ID
    ----------
    DT
    ---------------------------------------------------------------------------
    EVENT
    --------------------------------------------------------------------------------
             1
    18-MAY-23 02.35.37.000000 PM
    test oracle incremental merge switch to copy
    
             2
    30-MAY-23 05.23.11.000000 PM
    test recovery on a new EC2 instance host with image copy on FSx ONTAP
    
            ID
    ----------
    DT
    ---------------------------------------------------------------------------
    EVENT
    --------------------------------------------------------------------------------
    
             3
    05-JUN-23 03.19.46.000000 PM
    test clone on a new EC2 instance host with image copy on FSx ONTAP
    
    
    SQL>
  2. RMAN 백업을 수행하고 FSx ONTAP 데이터베이스 이미지 복사본에 병합하여 FSx NFS 마운트의 백업 세트에 트랜잭션이 캡처되지만 클론 데이터베이스가 복구될 때까지 복제본으로 병합되지 않도록 합니다.

    RMAN> @/home/oracle/rman_bkup_merge.cmd
  3. ssh를 통해 fsxadmin 사용자로 FSx 클러스터에 로그인하여 예약된 백업 정책으로 생성된 스냅샷을 관찰하고 Oracle은 1단계에서 커밋한 트랜잭션을 포함하도록 일회성 스냅샷을 생성합니다.

    FsxId06c3c8b2a7bd56458::> vol snapshot create -vserver svm_ora -volume ora_01_copy -snapshot one-off.2023-06-05-1137 -foreground true
    
    FsxId06c3c8b2a7bd56458::> snapshot show
                                                                     ---Blocks---
    Vserver  Volume   Snapshot                                  Size Total% Used%
    -------- -------- ------------------------------------- -------- ------ -----
    svm_ora  ora_01_copy
                      daily.2023-06-02_0010                   3.59GB     2%    5%
                      daily.2023-06-03_0010                   1.10GB     1%    1%
                      daily.2023-06-04_0010                    608KB     0%    0%
                      daily.2023-06-05_0010                   3.81GB     2%    5%
                      one-off.2023-06-05-1137                  168KB     0%    0%
             svm_ora_root
                      weekly.2023-05-28_0015                  1.86MB     0%   78%
                      daily.2023-06-04_0010                    152KB     0%   22%
                      weekly.2023-06-04_0015                  1.24MB     0%   70%
                      daily.2023-06-05_0010                    196KB     0%   27%
                      hourly.2023-06-05_1005                   156KB     0%   22%
                      hourly.2023-06-05_1105                   156KB     0%   22%
                      hourly.2023-06-05_1205                   156KB     0%   22%
                      hourly.2023-06-05_1305                   156KB     0%   22%
                      hourly.2023-06-05_1405                  1.87MB     0%   78%
                      hourly.2023-06-05_1505                   148KB     0%   22%
    15 entries were displayed.
  4. 대체 EC2 Oracle 호스트에서 새 DB1 클론 인스턴스를 설치하는 데 사용할 일회성 스냅샷에서 클론을 생성합니다. 볼륨 ora_01_copy에 대해 사용 가능한 모든 일별 스냅샷에서 클론을 생성할 수 있습니다.

    FsxId06c3c8b2a7bd56458::> vol clone create -flexclone db1_20230605of -type RW -parent-vserver svm_ora -parent-volume ora_01_copy -junction-path /db1_20230605of -junction-active true -parent-snapshot one-off.2023-06-05-1137
    [Job 464] Job succeeded: Successful
    
    FsxId06c3c8b2a7bd56458::>
    
    FsxId06c3c8b2a7bd56458::> vol show db1*
    Vserver   Volume       Aggregate    State      Type       Size  Available Used%
    --------- ------------ ------------ ---------- ---- ---------- ---------- -----
    svm_ora   db1_20230605of
                           aggr1        online     RW        200GB    116.6GB   38%
    
    FsxId06c3c8b2a7bd56458::>
  5. 클론 복제된 볼륨을 보호하려는 경우를 제외하고 상위 볼륨 스냅샷 정책을 상속하므로 클론 복제된 볼륨에 대한 스냅샷 정책을 해제한 다음 그대로 둡니다.

    FsxId06c3c8b2a7bd56458::> vol modify -volume db1_20230605of -snapshot-policy none
    
    Warning: You are changing the Snapshot policy on volume "db1_20230605of" to "none". Snapshot copies on this volume that do not match any of the prefixes of the new Snapshot policy will not be deleted. However, when the new Snapshot policy
             takes effect, depending on the new retention count, any existing Snapshot copies that continue to use the same prefixes might be deleted. See the 'volume modify' man page for more information.
    Do you want to continue? {y|n}: y
    Volume modify successful on volume db1_20230605of of Vserver svm_ora.
    
    FsxId06c3c8b2a7bd56458::>
  6. 운영 Oracle EC2 인스턴스와 동일한 버전 및 패치 레벨로 사전 설치된 Oracle 소프트웨어를 사용하여 새로운 EC2 Linux 인스턴스에 로그인하고 복제된 볼륨을 마운트합니다.

    [ec2-user@ip-172-30-15-124 ~]$ sudo mkdir /nfsfsxn
    [ec2-user@ip-172-30-15-124 ~]$ sudo mount -t nfs 172.30.15.19:/db1_20230605of /nfsfsxn -o rw,bg,hard,vers=3,proto=tcp,timeo=600,rsize=262144,wsize=262144,nointr
  7. FSx NFS 마운트에서 데이터베이스 증분 백업 세트, 이미지 복사본 및 사용 가능한 아카이브 로그를 검증합니다.

    [ec2-user@ip-172-30-15-124 ~]$ ls -ltr /nfsfsxn/oracopy
    total 79450332
    -rw-r----- 1 oracle 54331  482353152 Jun  1 19:02 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_891tkrhr
    -rw-r----- 1 oracle 54331  419438592 Jun  1 19:03 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_8d1tkril
    -rw-r----- 1 oracle 54331  241180672 Jun  1 19:03 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_8g1tkrj7
    -rw-r----- 1 oracle 54331  912506880 Jun  1 20:21 8n1tkvv2_279_1_1
    -rw-r----- 1 oracle 54331     925696 Jun  1 20:21 8q1tl05i_282_1_1
    -rw-r----- 1 oracle 54331 1169014784 Jun  1 20:21 8p1tkvv2_281_1_1
    -rw-r----- 1 oracle 54331    6455296 Jun  1 20:21 8r1tl05m_283_1_1
    -rw-r----- 1 oracle 54331     139264 Jun  1 20:21 8t1tl05t_285_1_1
    -rw-r----- 1 oracle 54331    3514368 Jun  1 20:21 8s1tl05t_284_1_1
    -rw-r----- 1 oracle 54331     139264 Jun  1 20:21 8u1tl060_286_1_1
    -rw-r----- 1 oracle 54331     425984 Jun  1 20:21 901tl062_288_1_1
    -rw-r----- 1 oracle 54331     344064 Jun  1 20:21 911tl062_289_1_1
    -rw-r----- 1 oracle 54331     245760 Jun  1 20:21 931tl063_291_1_1
    -rw-r----- 1 oracle 54331     237568 Jun  1 20:21 941tl064_292_1_1
    -rw-r----- 1 oracle 54331      57344 Jun  1 20:21 961tl065_294_1_1
    -rw-r----- 1 oracle 54331      57344 Jun  1 20:21 971tl066_295_1_1
    -rw-r----- 1 oracle 54331      57344 Jun  1 20:21 981tl067_296_1_1
    -rw-r----- 1 oracle 54331 1040760832 Jun  1 20:23 8m1tkvv2_278_1_1
    -rw-r----- 1 oracle 54331  932847616 Jun  1 20:24 8o1tkvv2_280_1_1
    -rw-r----- 1 oracle 54331 1121984512 Jun  5 15:21 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_821tkrb8
    -rw-r----- 1 oracle 54331 1027612672 Jun  5 15:21 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_831tkrd9
    -rw-r----- 1 oracle 54331  429924352 Jun  5 15:21 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_8a1tkrhr
    -rw-r----- 1 oracle 54331  707796992 Jun  5 15:21 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_851tkrgf
    -rw-r----- 1 oracle 54331  534781952 Jun  5 15:21 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_871tkrhr
    -rw-r----- 1 oracle 54331  534781952 Jun  5 15:21 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_881tkrhr
    -rw-r----- 1 oracle 54331  429924352 Jun  5 15:21 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_8b1tkril
    -rw-r----- 1 oracle 54331  429924352 Jun  5 15:21 data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_8c1tkril
    -rw-r----- 1 oracle 54331  246423552 Jun  5 15:21 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_8e1tkril
    -rw-r----- 1 oracle 54331  246423552 Jun  5 15:21 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_8f1tkrj4
    -rw-r----- 1 oracle 54331    5251072 Jun  5 15:21 data_D-DB1_I-1730530050_TS-USERS_FNO-7_8h1tkrj9
    -rw-r----- 1 oracle 54331    5251072 Jun  5 15:21 data_D-DB1_I-1730530050_TS-USERS_FNO-16_8j1tkrja
    -rw-r----- 1 oracle 54331    5251072 Jun  5 15:21 data_D-DB1_I-1730530050_TS-USERS_FNO-20_8k1tkrjb
    -rw-r----- 1 oracle 54331    5251072 Jun  5 15:21 data_D-DB1_I-1730530050_TS-USERS_FNO-12_8i1tkrj9
    -rw-r----- 1 oracle 54331  555753472 Jun  5 15:21 data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_861tkrgo
    -rw-r----- 1 oracle 54331  796925952 Jun  5 15:22 data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_841tkrf2
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-21_7j1tkqk6
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-34_801tkram
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-29_7r1tkr32
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-25_7n1tkqrh
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-31_7t1tkr3i
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-33_7v1tkra6
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-23_7l1tkqk6
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-27_7p1tkqrq
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-35_811tkrap
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-32_7u1tkr42
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-22_7k1tkqk6
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-24_7m1tkqk6
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-28_7q1tkqs1
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-30_7s1tkr3a
    -rw-r----- 1 oracle 54331 4294975488 Jun  5 15:22 data_D-DB1_I-1730530050_TS-SOE_FNO-26_7o1tkqrj
    -rw-r----- 1 oracle 54331 1241432064 Jun  5 15:30 9d1tv06n_301_1_1
    -rw-r----- 1 oracle 54331 1019805696 Jun  5 15:31 9a1tv06m_298_1_1
    -rw-r----- 1 oracle 54331    4612096 Jun  5 15:31 9e1tv0ld_302_1_1
    -rw-r----- 1 oracle 54331  967163904 Jun  5 15:31 9b1tv06n_299_1_1
    -rw-r----- 1 oracle 54331   31563776 Jun  5 15:31 9g1tv0lt_304_1_1
    -rw-r----- 1 oracle 54331     319488 Jun  5 15:31 9h1tv0lt_305_1_1
    -rw-r----- 1 oracle 54331     335872 Jun  5 15:31 9i1tv0m0_306_1_1
    -rw-r----- 1 oracle 54331     565248 Jun  5 15:31 9k1tv0m1_308_1_1
    -rw-r----- 1 oracle 54331     581632 Jun  5 15:31 9l1tv0m5_309_1_1
    -rw-r----- 1 oracle 54331   54345728 Jun  5 15:31 9f1tv0lt_303_1_1
    -rw-r----- 1 oracle 54331     368640 Jun  5 15:31 9n1tv0m5_311_1_1
    -rw-r----- 1 oracle 54331     385024 Jun  5 15:31 9o1tv0m6_312_1_1
    -rw-r----- 1 oracle 54331  985858048 Jun  5 15:31 9c1tv06n_300_1_1
    -rw-r----- 1 oracle 54331      57344 Jun  5 15:31 9q1tv0m7_314_1_1
    -rw-r----- 1 oracle 54331      57344 Jun  5 15:31 9r1tv0m8_315_1_1
    -rw-r----- 1 oracle 54331      57344 Jun  5 15:31 9s1tv0m9_316_1_1
    -rw-r--r-- 1 oracle 54331      12720 Jun  5 15:31 db1_ctl.sql
    -rw-r----- 1 oracle 54331   11600384 Jun  5 15:48 bct_db1.ctf
    [ec2-user@ip-172-30-15-124 ~]$
    
    [oracle@ip-172-30-15-124 ~]$ ls -l /nfsfsxn/archlog/DB1/archivelog/2023_06_05
    total 2008864
    -rw-r----- 1 oracle 54331    729088 Jun  5 14:38 o1_mf_1_190_l7vwvvt9_.arc
    -rw-r----- 1 oracle 54331 166651904 Jun  5 14:44 o1_mf_1_191_l7vx6vmg_.arc
    -rw-r----- 1 oracle 54331 167406080 Jun  5 14:47 o1_mf_1_192_l7vxctms_.arc
    -rw-r----- 1 oracle 54331 166868992 Jun  5 14:49 o1_mf_1_193_l7vxjjps_.arc
    -rw-r----- 1 oracle 54331 166087168 Jun  5 14:52 o1_mf_1_194_l7vxnxrh_.arc
    -rw-r----- 1 oracle 54331 175210496 Jun  5 14:54 o1_mf_1_195_l7vxswv5_.arc
    -rw-r----- 1 oracle 54331 167078400 Jun  5 14:57 o1_mf_1_196_l7vxylwp_.arc
    -rw-r----- 1 oracle 54331 169701888 Jun  5 14:59 o1_mf_1_197_l7vy3cyw_.arc
    -rw-r----- 1 oracle 54331 167845376 Jun  5 15:02 o1_mf_1_198_l7vy8245_.arc
    -rw-r----- 1 oracle 54331 170763776 Jun  5 15:05 o1_mf_1_199_l7vydv4c_.arc
    -rw-r----- 1 oracle 54331 193853440 Jun  5 15:07 o1_mf_1_200_l7vykf23_.arc
    -rw-r----- 1 oracle 54331 165523968 Jun  5 15:09 o1_mf_1_201_l7vyp1dh_.arc
    -rw-r----- 1 oracle 54331 161117184 Jun  5 15:12 o1_mf_1_202_l7vyvrm5_.arc
    -rw-r----- 1 oracle 54331  10098176 Jun  5 15:21 o1_mf_1_203_l7vzdfwm_.arc
  8. 이제 복구 프로세스는 기본 운영 인스턴스와 일치하도록 장애 설정 Oracle 환경(oratab, $oracle_home, $oracle_sid)이 설정된 후 새로운 EC2 DB 인스턴스에 대한 복구의 이전 사용 사례와 유사합니다. FSx NFS 마운트의 플래시 복구 디렉토리를 가리키는 db_recovery_file_dest_size 및 db_recovery_file_dest를 포함한 초기화 파일을 생성합니다. 그런 다음 복구를 실행하기 위해 RMAN을 사용합니다. 다음은 명령 단계와 출력입니다.

    [oracle@ip-172-30-15-124 dbs]$ rman target / nocatalog
    
    Recovery Manager: Release 19.0.0.0.0 - Production on Wed Jun 7 14:44:33 2023
    Version 19.18.0.0.0
    
    Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database (not started)
    
    RMAN> startup nomount;
    
    Oracle instance started
    
    Total System Global Area   10737418000 bytes
    
    Fixed Size                     9174800 bytes
    Variable Size               1577058304 bytes
    Database Buffers            9126805504 bytes
    Redo Buffers                  24379392 bytes
    
    RMAN> set dbid = 1730530050;
    
    executing command: SET DBID
    
    RMAN> restore controlfile from autobackup;
    
    Starting restore at 07-JUN-23
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=2 device type=DISK
    
    recovery area destination: /nfsfsxn/archlog/
    database name (or database unique name) used for search: DB1
    channel ORA_DISK_1: AUTOBACKUP /nfsfsxn/archlog/DB1/autobackup/2023_06_05/o1_mf_s_1138721482_l7vzybvq_.bkp found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20230607
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20230606
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20230605
    channel ORA_DISK_1: restoring control file from AUTOBACKUP /nfsfsxn/archlog/DB1/autobackup/2023_06_05/o1_mf_s_1138721482_l7vzybvq_.bkp
    channel ORA_DISK_1: control file restore from AUTOBACKUP complete
    output file name=/nfsfsxn/oracopy/db1.ctl
    Finished restore at 07-JUN-23
    
    RMAN> alter database mount;
    
    released channel: ORA_DISK_1
    Statement processed
    
    RMAN> list incarnation;
    
    
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    ------- ------- -------- ---------------- --- ---------- ----------
    1       1       DB1      1730530050       PARENT  1          17-APR-19
    2       2       DB1      1730530050       CURRENT 1920977    12-MAY-23
    
    RMAN> list copy of database tag 'OraCopyBKUPonFSxN_level_0';
    
    List of Datafile Copies
    =======================
    
    Key     File S Completion Time Ckp SCN    Ckp Time        Sparse
    ------- ---- - --------------- ---------- --------------- ------
    362     1    A 05-JUN-23       8319160    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_821tkrb8
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    363     3    A 05-JUN-23       8319165    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_831tkrd9
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    365     4    A 05-JUN-23       8319171    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_851tkrgf
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    355     5    A 01-JUN-23       2383520    12-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_8d1tkril
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    349     6    A 01-JUN-23       2383520    12-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_891tkrhr
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    372     7    A 05-JUN-23       8319201    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-7_8h1tkrj9
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
    
    361     8    A 01-JUN-23       2383520    12-MAY-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_8g1tkrj7
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    364     9    A 05-JUN-23       8318717    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_8a1tkrhr
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    376     10   A 05-JUN-23       8318714    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_861tkrgo
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    377     11   A 05-JUN-23       8318720    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_841tkrf2
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    375     12   A 05-JUN-23       8318719    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-12_8i1tkrj9
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    368     13   A 05-JUN-23       8319184    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_8b1tkril
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    366     14   A 05-JUN-23       8319175    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_871tkrhr
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    370     15   A 05-JUN-23       8319193    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_8e1tkril
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    373     16   A 05-JUN-23       8319206    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_8j1tkrja
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 4, PDB Name: DB1_PDB2
    
    369     17   A 05-JUN-23       8319188    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_8c1tkril
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    367     18   A 05-JUN-23       8319180    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_881tkrhr
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    371     19   A 05-JUN-23       8319197    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_8f1tkrj4
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    374     20   A 05-JUN-23       8319210    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_8k1tkrjb
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 5, PDB Name: DB1_PDB3
    
    378     21   A 05-JUN-23       8318720    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_7j1tkqk6
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    388     22   A 05-JUN-23       8318714    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-22_7k1tkqk6
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    384     23   A 05-JUN-23       8318717    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_7l1tkqk6
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    389     24   A 05-JUN-23       8318719    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-24_7m1tkqk6
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    381     25   A 05-JUN-23       8318720    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_7n1tkqrh
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    392     26   A 05-JUN-23       8318714    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-26_7o1tkqrj
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    385     27   A 05-JUN-23       8318717    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_7p1tkqrq
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    390     28   A 05-JUN-23       8318719    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-28_7q1tkqs1
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    380     29   A 05-JUN-23       8318720    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-29_7r1tkr32
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    391     30   A 05-JUN-23       8318714    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-30_7s1tkr3a
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    382     31   A 05-JUN-23       8318717    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_7t1tkr3i
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    387     32   A 05-JUN-23       8318719    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-32_7u1tkr42
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    383     33   A 05-JUN-23       8318719    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-33_7v1tkra6
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    379     34   A 05-JUN-23       8318717    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_801tkram
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    386     35   A 05-JUN-23       8318714    01-JUN-23       NO
            Name: /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-35_811tkrap
            Tag: ORACOPYBKUPONFSXN_LEVEL_0
            Container ID: 3, PDB Name: DB1_PDB1
    
    RMAN> switch database to copy;
    
    datafile 1 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_821tkrb8"
    datafile 3 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_831tkrd9"
    datafile 4 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_851tkrgf"
    datafile 5 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_8d1tkril"
    datafile 6 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_891tkrhr"
    datafile 7 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-7_8h1tkrj9"
    datafile 8 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_8g1tkrj7"
    datafile 9 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_8a1tkrhr"
    datafile 10 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_861tkrgo"
    datafile 11 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_841tkrf2"
    datafile 12 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-12_8i1tkrj9"
    datafile 13 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_8b1tkril"
    datafile 14 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_871tkrhr"
    datafile 15 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_8e1tkril"
    datafile 16 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_8j1tkrja"
    datafile 17 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_8c1tkril"
    datafile 18 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_881tkrhr"
    datafile 19 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_8f1tkrj4"
    datafile 20 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_8k1tkrjb"
    datafile 21 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_7j1tkqk6"
    datafile 22 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-22_7k1tkqk6"
    datafile 23 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_7l1tkqk6"
    datafile 24 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-24_7m1tkqk6"
    datafile 25 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_7n1tkqrh"
    datafile 26 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-26_7o1tkqrj"
    datafile 27 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_7p1tkqrq"
    datafile 28 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-28_7q1tkqs1"
    datafile 29 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-29_7r1tkr32"
    datafile 30 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-30_7s1tkr3a"
    datafile 31 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_7t1tkr3i"
    datafile 32 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-32_7u1tkr42"
    datafile 33 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-33_7v1tkra6"
    datafile 34 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_801tkram"
    datafile 35 switched to datafile copy "/nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-35_811tkrap"
    
    RMAN> run {
    2> set until sequence 204;
    3> recover database;
    4> }
    
    executing command: SET until clause
    
    Starting recover at 07-JUN-23
    using channel ORA_DISK_1
    
    starting media recovery
    
    archived log for thread 1 with sequence 190 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_190_l7vwvvt9_.arc
    archived log for thread 1 with sequence 191 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_191_l7vx6vmg_.arc
    archived log for thread 1 with sequence 192 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_192_l7vxctms_.arc
    archived log for thread 1 with sequence 193 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_193_l7vxjjps_.arc
    archived log for thread 1 with sequence 194 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_194_l7vxnxrh_.arc
    archived log for thread 1 with sequence 195 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_195_l7vxswv5_.arc
    archived log for thread 1 with sequence 196 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_196_l7vxylwp_.arc
    archived log for thread 1 with sequence 197 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_197_l7vy3cyw_.arc
    archived log for thread 1 with sequence 198 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_198_l7vy8245_.arc
    archived log for thread 1 with sequence 199 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_199_l7vydv4c_.arc
    archived log for thread 1 with sequence 200 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_200_l7vykf23_.arc
    archived log for thread 1 with sequence 201 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_201_l7vyp1dh_.arc
    archived log for thread 1 with sequence 202 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_202_l7vyvrm5_.arc
    archived log for thread 1 with sequence 203 is already on disk as file /nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_203_l7vzdfwm_.arc
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_190_l7vwvvt9_.arc thread=1 sequence=190
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_191_l7vx6vmg_.arc thread=1 sequence=191
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_192_l7vxctms_.arc thread=1 sequence=192
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_193_l7vxjjps_.arc thread=1 sequence=193
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_194_l7vxnxrh_.arc thread=1 sequence=194
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_195_l7vxswv5_.arc thread=1 sequence=195
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_196_l7vxylwp_.arc thread=1 sequence=196
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_197_l7vy3cyw_.arc thread=1 sequence=197
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_198_l7vy8245_.arc thread=1 sequence=198
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_199_l7vydv4c_.arc thread=1 sequence=199
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_200_l7vykf23_.arc thread=1 sequence=200
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_201_l7vyp1dh_.arc thread=1 sequence=201
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_202_l7vyvrm5_.arc thread=1 sequence=202
    archived log file name=/nfsfsxn/archlog/DB1/archivelog/2023_06_05/o1_mf_1_203_l7vzdfwm_.arc thread=1 sequence=203
    media recovery complete, elapsed time: 00:19:30
    Finished recover at 07-JUN-23
    
    RMAN> exit
    
    Recovery Manager complete.
    [oracle@ip-172-30-15-124 dbs]$ sqlplus / as sysdba
    
    SQL*Plus: Release 19.0.0.0.0 - Production on Wed Jun 7 15:58:12 2023
    Version 19.18.0.0.0
    
    Copyright (c) 1982, 2022, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
    Version 19.18.0.0.0
    
    SQL> select member from v$logfile;
    
    MEMBER
    --------------------------------------------------------------------------------
    +DATA/DB1/ONLINELOG/group_3.264.1136666437
    +DATA/DB1/ONLINELOG/group_2.263.1136666437
    +DATA/DB1/ONLINELOG/group_1.262.1136666437
    
    SQL> alter database rename file '+DATA/DB1/ONLINELOG/group_1.262.1136666437' to '/nfsfsxn/oracopy/redo01.log';
    
    Database altered.
    
    SQL> alter database rename file '+DATA/DB1/ONLINELOG/group_2.263.1136666437' to '/nfsfsxn/oracopy/redo02.log';
    
    Database altered.
    
    SQL> alter database rename file '+DATA/DB1/ONLINELOG/group_3.264.1136666437' to '/nfsfsxn/oracopy/redo03.log';
    
    Database altered.
    
    SQL> alter database noarchivelog;
    
    Database altered.
    
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL> set lin 200;
    SQL> select name from v$datafile
      2  union
      3  select name from v$controlfile
      4  union
      5  select name from v$tempfile
      6  union
      7  select member from v$logfile;
    
    NAME
    ----------------------------------------------------------------------------------------
    /nfsfsxn/oracopy/DB1/FB864A929AEB79B9E053630F1EAC7046/datafile/o1_mf_temp_l81bhz6g_.tmp
    /nfsfsxn/oracopy/DB1/FB867DA8C68C816EE053630F1EAC2BCF/datafile/o1_mf_temp_l81bj16t_.tmp
    /nfsfsxn/oracopy/DB1/FB867EA89ECF81C0E053630F1EACB901/datafile/o1_mf_temp_l81bj135_.tmp
    /nfsfsxn/oracopy/DB1/FB867F8A4D4F821CE053630F1EAC69CC/datafile/o1_mf_temp_l81bj13g_.tmp
    /nfsfsxn/oracopy/DB1/datafile/o1_mf_temp_l81bhwjg_.tmp
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_7j1tkqk6
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-22_7k1tkqk6
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_7l1tkqk6
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-24_7m1tkqk6
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_7n1tkqrh
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-26_7o1tkqrj
    
    NAME
    ----------------------------------------------------------------------------------------
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_7p1tkqrq
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-28_7q1tkqs1
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-29_7r1tkr32
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-30_7s1tkr3a
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_7t1tkr3i
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-32_7u1tkr42
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-33_7v1tkra6
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_801tkram
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-35_811tkrap
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_861tkrgo
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_871tkrhr
    
    NAME
    ----------------------------------------------------------------------------------------
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_881tkrhr
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_831tkrd9
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_891tkrhr
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_8b1tkril
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_8c1tkril
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_821tkrb8
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_8d1tkril
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_8a1tkrhr
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_841tkrf2
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_8e1tkril
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_8f1tkrj4
    
    NAME
    -----------------------------------------------------------------------------------------
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_851tkrgf
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_8g1tkrj7
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-12_8i1tkrj9
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_8j1tkrja
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_8k1tkrjb
    /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-7_8h1tkrj9
    /nfsfsxn/oracopy/db1.ctl
    /nfsfsxn/oracopy/redo01.log
    /nfsfsxn/oracopy/redo02.log
    /nfsfsxn/oracopy/redo03.log
    
    43 rows selected.
    
    SQL> show pdbs;
    
        CON_ID CON_NAME                       OPEN MODE  RESTRICTED
    ---------- ------------------------------ ---------- ----------
             2 PDB$SEED                       READ ONLY  NO
             3 DB1_PDB1                       READ WRITE NO
             4 DB1_PDB2                       READ WRITE NO
             5 DB1_PDB3                       READ WRITE NO
    SQL> alter session set container=db1_pdb1;
    
    Session altered.
    
    SQL> select * from test;
    
            ID DT                                                                          EVENT
    ---------- --------------------------------------------------------------------------- ----------------------------------------------------------------
             1 18-MAY-23 02.35.37.000000 PM                                                test oracle incremental merge switch to copy
             2 30-MAY-23 05.23.11.000000 PM                                                test recovery on a new EC2 instance host with image copy on FSx ONTAP
             3 05-JUN-23 03.19.46.000000 PM                                                test clone on a new EC2 instance host with image copy on FSx ONTAP
    
    SQL>
  9. 복제된 데이터베이스 인스턴스의 이름을 바꾸고 데이터베이스 ID를 Oracle nid 유틸리티로 변경합니다. 데이터베이스 인스턴스 상태가 인 상태여야 합니다 mount 명령을 실행합니다.

    SQL> select name, open_mode, log_mode from v$database;
    
    NAME      OPEN_MODE            LOG_MODE
    --------- -------------------- ------------
    DB1       READ WRITE           NOARCHIVELOG
    
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    
    SQL> startup mount;
    ORACLE instance started.
    
    Total System Global Area 1.0737E+10 bytes
    Fixed Size                  9174800 bytes
    Variable Size            1577058304 bytes
    Database Buffers         9126805504 bytes
    Redo Buffers               24379392 bytes
    Database mounted.
    SQL> exit
    Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
    Version 19.18.0.0.0
    [oracle@ip-172-30-15-124 dbs]$ nid target=/ dbname=db1tst
    
    DBNEWID: Release 19.0.0.0.0 - Production on Wed Jun 7 16:15:14 2023
    
    Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to database DB1 (DBID=1730530050)
    
    Connected to server version 19.18.0
    
    Control Files in database:
        /nfsfsxn/oracopy/db1.ctl
    
    Change database ID and database name DB1 to DB1TST? (Y/[N]) => Y
    
    Proceeding with operation
    Changing database ID from 1730530050 to 3054879890
    Changing database name from DB1 to DB1TST
        Control File /nfsfsxn/oracopy/db1.ctl - modified
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-1_821tkrb - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-3_831tkrd - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-4_851tkrg - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-5_8d1tkri - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-6_891tkrh - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-7_8h1tkrj - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-8_8g1tkrj - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-9_8a1tkrh - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-10_861tkrg - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-11_841tkrf - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-12_8i1tkrj - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-13_8b1tkri - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-14_871tkrh - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-15_8e1tkri - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-16_8j1tkrj - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSTEM_FNO-17_8c1tkri - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SYSAUX_FNO-18_881tkrh - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-UNDOTBS1_FNO-19_8f1tkrj - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-USERS_FNO-20_8k1tkrj - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-21_7j1tkqk - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-22_7k1tkqk - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-23_7l1tkqk - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-24_7m1tkqk - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-25_7n1tkqr - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-26_7o1tkqr - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-27_7p1tkqr - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-28_7q1tkqs - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-29_7r1tkr3 - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-30_7s1tkr3 - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-31_7t1tkr3 - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-32_7u1tkr4 - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-33_7v1tkra - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-34_801tkra - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/data_D-DB1_I-1730530050_TS-SOE_FNO-35_811tkra - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/DB1/datafile/o1_mf_temp_l81bhwjg_.tm - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/DB1/FB864A929AEB79B9E053630F1EAC7046/datafile/o1_mf_temp_l81bhz6g_.tm - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/DB1/FB867DA8C68C816EE053630F1EAC2BCF/datafile/o1_mf_temp_l81bj16t_.tm - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/DB1/FB867EA89ECF81C0E053630F1EACB901/datafile/o1_mf_temp_l81bj135_.tm - dbid changed, wrote new name
        Datafile /nfsfsxn/oracopy/DB1/FB867F8A4D4F821CE053630F1EAC69CC/datafile/o1_mf_temp_l81bj13g_.tm - dbid changed, wrote new name
        Control File /nfsfsxn/oracopy/db1.ctl - dbid changed, wrote new name
        Instance shut down
    
    Database name changed to DB1TST.
    Modify parameter file and generate a new password file before restarting.
    Database ID for database DB1TST changed to 3054879890.
    All previous backups and archived redo logs for this database are unusable.
    Database is not aware of previous backups and archived logs in Recovery Area.
    Database has been shutdown, open database with RESETLOGS option.
    Succesfully changed database name and ID.
    DBNEWID - Completed succesfully.
  10. oratab, init 파일에서 Oracle 데이터베이스 환경 구성을 새 데이터베이스 이름 또는 인스턴스 ID로 변경하고 새 인스턴스 ID와 일치하는 필요한 관리 디렉토리를 생성합니다. 그런 다음 resetlogs 옵션을 사용하여 인스턴스를 시작합니다.

    SQL> startup mount;
    ORACLE instance started.
    
    Total System Global Area 1.0737E+10 bytes
    Fixed Size                  9174800 bytes
    Variable Size            1577058304 bytes
    Database Buffers         9126805504 bytes
    Redo Buffers               24379392 bytes
    Database mounted.
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL> select name, open_mode, log_mode from v$database;
    
    NAME      OPEN_MODE            LOG_MODE
    --------- -------------------- ------------
    DB1TST    READ WRITE           NOARCHIVELOG
    
    SQL> show pdbs
    
        CON_ID CON_NAME                       OPEN MODE  RESTRICTED
    ---------- ------------------------------ ---------- ----------
             2 PDB$SEED                       READ ONLY  NO
             3 DB1_PDB1                       MOUNTED
             4 DB1_PDB2                       MOUNTED
             5 DB1_PDB3                       MOUNTED
    SQL> alter pluggable database all open;
    
    Pluggable database altered.
    
    SQL> show pdbs
    
        CON_ID CON_NAME                       OPEN MODE  RESTRICTED
    ---------- ------------------------------ ---------- ----------
             2 PDB$SEED                       READ ONLY  NO
             3 DB1_PDB1                       READ WRITE NO
             4 DB1_PDB2                       READ WRITE NO
             5 DB1_PDB3                       READ WRITE NO
    SQL>

그러면 개발, UAT 또는 기타 활용 사례에 대해 FSx NFS 마운트의 스테이징 데이터베이스 복제본에서 새 Oracle 인스턴스의 클론이 완료됩니다. 동일한 스테이징 이미지 복사본에서 여러 Oracle 인스턴스를 복제할 수 있습니다.

참고 오류가 발생한 경우 RMAN-06571: datafile 1 does not have recoverable copy 데이터베이스를 복제본으로 전환할 때 1차 운영 DB와 일치하는 데이터베이스 생성을 확인하십시오. 필요한 경우 RMAN 명령에 따라 감금치를 재설정합니다 reset database to incarnation n;.