Skip to main content
NetApp Solutions
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

TR-4990 :快速恢復 Oracle VLDB 並在無

貢獻者

NetApp公司的Alleno Cao、Niyazz Mohamed

此解決方案提供概觀與詳細資料、可快速恢復部署至 Azure VM 運算執行個體的 Oracle VLDB 、並在 Azure NetApp Files 容量集區上安裝 NFS 、以暫存透過 RMAN 不斷遞增合併的備用資料庫複本。

目的

使用 Oracle Recovery Manager ( RMAN )備份工具在 Oracle 中恢復一個非常大的資料庫( VLDB )可能是一項非常艱鉅的工作。如果發生故障、備份媒體的資料庫還原程序可能會耗費時間、延遲資料庫恢復、並可能嚴重影響您的服務層級協議( SLA )。不過、從第 10g 版開始、 Oracle 推出 RMAN 功能、可讓使用者在 DB 伺服器主機上的其他磁碟儲存設備上、建立 Oracle 資料庫資料檔案的分段映像複本。這些映像複本可以每天使用 RMAN 遞增更新。發生故障時、資料庫管理員( DBA )可以迅速將 Oracle 資料庫從故障媒體切換至映像複本、不再需要完整的資料庫媒體還原。結果是 SLA 大幅改善、但成本卻是所需的資料庫儲存設備加倍。

如果您熱衷於 VLDB 的 SLA 、並考慮將 Oracle 資料庫移轉至公有雲(例如 Azure )、您可以使用 Microsoft Azure NetApp Files ( anf )等資源來設定類似的資料庫保護結構、以進行備用資料庫映像複本的暫存。在本文件中、我們將示範如何從儲存容量集區中佈建及匯出 NFS 檔案系統、以安裝在 Oracle 資料庫伺服器上、以便在發生主要儲存設備故障時、執行備用資料庫複本以快速恢復。

本解決方案可解決下列使用案例:

  • Oracle VLDB 映像複本透過 RMAN 遞增合併、位於 Microsoft anf 容量集區儲存設備的 NFS 裝載點上。

  • 在同一 Azure 資料庫伺服器 VM 發生故障時、快速恢復 Oracle VLDB 。

  • 在備用 Azure 資料庫伺服器 VM 發生故障時、快速恢復 Oracle VLDB 。

目標對象

本解決方案適用於下列人員:

  • 在 Azure 中透過 RMAN 設定 Oracle VLDB 映像複本遞增合併的 DBA 、可加快資料庫恢復速度。

  • 在 Azure 公有雲中測試 Oracle 工作負載的資料庫解決方案架構設計師。

  • 管理部署至容量集區儲存設備的 Oracle 資料庫的儲存管理員。

  • 想要在 Azure 雲端環境中備份 Oracle 資料庫的應用程式擁有者。

解決方案測試與驗證環境

此解決方案的測試與驗證是在 Microsoft anf 容量集區儲存設備和 Azure VM 運算環境中執行、可能與最終部署環境不符。如需詳細資訊、請參閱一節 部署考量的關鍵因素

架構

此映像提供在 Azure 公有雲與 anf 中執行 Oracle VLDB 遞增合併實作的詳細圖片。

硬體與軟體元件

硬體

ANF 儲存設備

Microsoft 目前提供的版本

2 TiB anf 容量集區儲存設備、提供優質服務層級

Azure VM for DB 伺服器

Standard_B4ms - 4 個 vCPU 、 16GiB

2 個 VM 、一個做為主要 DB 伺服器、另一個做為待命

軟體

RedHat Linux

RHEL Linux 8.6 ( LVM ) - x64 Gen2

已部署RedHat訂閱以進行測試

Oracle資料庫

版本 19.18

已套用 RU 修補程式 p34765931_190000_Linux-x86-64.zip

Oracle OPatch

12.2.0.1.36 版

最新修補程式 p6880880_190000_Linux-x86-64.zip

NFS

3.0版

Oracle DNFS 已啟用

部署考量的關鍵因素

  • * 用於 RMAN 遞增合併的 Oracle VLDB 儲存配置。 * 在我們的測試與驗證中、用於 Oracle 遞增備份與合併的 NFS 磁碟區是從單一 anf 容量集區分配、每個磁碟區有 100 TiB 、總容量上限為 1000 TiB 。針對超過臨界值的部署、可將多個磁碟區和 anf 容量集區與多個 NFS 裝載點平行串聯、以提供更高的容量。

  • * 使用 RMAN 遞增合併的 Oracle 可恢復性。 * RMAN 遞增備份與合併通常會根據您的 RTO 和 RPO 目標、以使用者定義的頻率執行。如果主要資料儲存和 / 或歸檔記錄檔全部遺失、資料可能會遺失。Oracle 資料庫可從 ANF 資料庫備份映像複本還原至最後一次可用的遞增備份。為了將資料遺失降至最低、可在無 NFS 裝載點上設定 Oracle Flash 恢復區域、並將歸檔記錄備份至無 NFS 裝載、以及資料庫映像複本。

  • * 在無 NFS 檔案系統上執行 Oracle VLDB 。 * 與其他用於資料庫備份的大量儲存設備不同、 Microsoft anf 是一種雲端型正式作業級儲存設備、可提供高層級的效能與儲存效率。一旦 Oracle VLDB 在 ANF NFS 檔案系統上從主要儲存設備切換至映像複本、資料庫效能就能維持在高層級、同時解決主要儲存設備故障。您可以安心地瞭解使用者應用程式體驗不會因為主要儲存設備故障而受到影響。

  • * Azure 運算執行個體。 * 在這些測試與驗證中、我們使用 Standard_B4ms Azure VM 做為 Oracle 資料庫伺服器。還有其他 Azure VM 可能經過最佳化、更適合資料庫工作負載。您也需要根據實際工作負載需求、適當調整 Azure VM 的大小、以符合 vCPU 數量和 RAM 數量。

  • * 無容量池服務層級。 * 無容量池提供三種服務層級: Standard 、 Premium 、 Ultra 。依預設、自動 QoS 會套用至容量集區內建立的磁碟區、以限制磁碟區的處理量。磁碟區的處理量可根據容量集區和服務層級的大小來手動調整。

  • * DNFS 組態。 * DNFS 內建於 Oracle 核心、已知在 Oracle 部署至 NFS 儲存設備時、可大幅提升 Oracle 資料庫效能。DNFS 封裝為 Oracle 二進位檔案、但預設不會開啟。在 NFS 上進行任何 Oracle 資料庫部署時、都應開啟此功能。對於 VLDB 的多個 ANF 容量集區部署、應正確設定通往不同 ANF 容量集區儲存設備的 DNFS 多重路徑。

解決方案部署

假設您已在 Vnet 內的 Azure 雲端環境中部署 Oracle VLDB 。如果您需要 Azure 中 Oracle 部署的協助、請參閱下列技術報告以取得協助。

您的 Oracle VLDB 可以在 ANF 儲存設備上執行、或在 Azure 雲端生態系統中選擇任何其他儲存設備。下節提供逐步部署程序、可將 RMAN 遞增合併設定為 Oracle VLDB 的映像複本、該複本會暫存於 NFS 掛載中的 ANF 儲存設備。

部署的先決條件

Details

部署需要下列先決條件。

  1. Azure 帳戶已設定完成、您的 Azure 帳戶已建立必要的 Azure vnet 和網路區段。

  2. 從 Azure 入口網站主控台、您必須部署兩個 Azure VM 執行個體、分別做為主要 Oracle DB 伺服器和選用的備用 DB 伺服器。如需環境設定的詳細資訊、請參閱上一節的架構圖表。另請檢閱 "Azure Virtual Machine 系列" 以取得更多資訊。

  3. 從 Azure 入口網站主控台部署 anf 儲存設備、以裝載儲存 Oracle 資料庫待命映像複本的 NFS 磁碟區。如果您不熟悉 anf 的部署、請參閱文件 "快速入門:設定Azure NetApp Files 功能以建立NFS磁碟區" 以取得逐步指示。

註 請確定您已在 Azure VM 根 Volume 中至少分配 128G 、以便有足夠的空間來存放 Oracle 安裝檔案。

配置及匯出要掛載於主 Oracle VLDB 伺服器上的 NFS 磁碟區

Details

在本節中、我們將透過 Azure 入口網站主控台、從 ANF 容量集區配置 NFS Volume 。如果設定了多個 ANF 容量集區以容納資料庫的大小、請在其他 ANF 容量集區上重複這些程序。

  1. 首先、從 Azure 入口網站主控台、瀏覽至用於暫存 Oracle VLDB 映像複本的 anf 容量集區。

    此映像使用 Azure 入口網站主控台提供無磁碟區資源配置畫面

  2. 從所選容量集區 - database、按一下 Volumes 然後、 Add volume 啟動附加 Volume 工作流程。

    此映像使用 Azure 入口網站主控台提供無磁碟區資源配置畫面

  3. 填寫 Volume nameQuotaVirtual network`和 `Delegated subnet 以移至 Protocol 頁面。

    此映像使用 Azure 入口網站主控台提供無磁碟區資源配置畫面

  4. 記下檔案路徑、輸入允許的用戶端 CIDR 範圍、然後啟用 Root Access 適用於 Volume 。

    此映像使用 Azure 入口網站主控台提供無磁碟區資源配置畫面

  5. 視需要新增Volume標記。

    此映像使用 Azure 入口網站主控台提供無磁碟區資源配置畫面

  6. 檢閱並建立磁碟區。

    此映像使用 Azure 入口網站主控台提供無磁碟區資源配置畫面

  7. 以具有 Sudo 權限的使用者身分登入主要 Oracle VLDB 伺服器、並掛載從 anf 儲存設備匯出的 NFS 磁碟區。視需要變更為您的 ANF NFS 伺服器 IP 位址和檔案路徑。您可以從 anf Volume 主控台頁面擷取 anf NFS 伺服器 IP 位址。

    sudo mkdir /nfsanf
    sudo mount 172.30.136.68:/ora-01-u02-copy /nfsanf -o rw,bg,hard,vers=3,proto=tcp,timeo=600,rsize=262144,wsize=262144,nointr
  8. 將掛載點所有權變更為 Oracle:oisnhall 、視需要變更為您的 Oracle 使用者名稱和主要群組。

    sudo chown oracle:oinstall /nfsanf

在 anf 上設定 Oracle RMAN 遞增合併至影像複本

Details

RMAN 遞增合併會在每個遞增備份 / 合併間隔持續更新整備資料庫資料檔案映像複本。資料庫備份的映像複本將與您執行遞增備份 / 合併的頻率一樣、是最新的。因此、在決定 RMAN 遞增備份與合併的頻率時、請考量資料庫效能、 RTO 和 RPO 目標。

  1. 以 Oracle 使用者身分登入主要 Oracle VLDB 伺服器。

  2. 在掛載點 /nfsanf 下建立 oracopy 目錄、以儲存 Oracle 資料檔案映像複本和 Oracle Flash 恢復區域的 archlog 目錄。

    mkdir /nfsanf/oracopy
    mkdir /nfsanf/archlog
  3. 透過 sqlplus 登入 Oracle 資料庫、啟用區塊變更追蹤功能、以加快遞增備份速度、並將 Oracle Flash 恢復區域變更為目前位於主要儲存設備上的 anf NFS 裝載。這可讓 RMAN 預設控制檔 / spfile 自動備份和歸檔記錄備份到 ANF NFS 掛載進行還原。

    sqlplus / as sysdba

    在 sqlplus 提示字元中、執行下列命令。

    alter database enable block change tracking using file '/nfsanf/oracopy/bct_ntap1.ctf'
    alter system set db_recovery_file_dest='/nfsanf/archlog/' scope=both;

    預期輸出:

    [oracle@ora-01 ~]$ sqlplus / as sysdba
    
    SQL*Plus: Release 19.0.0.0.0 - Production on Wed Mar 20 16:44:21 2024
    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> alter database enable block change tracking using file '/nfsanf/oracopy/bct_ntap1.ctf';
    
    Database altered.
    
    SQL> alter system set db_recovery_file_dest='/nfsanf/archlog/' scope=both;
    
    System altered.
    
    SQL>
  4. 建立 RMAN 備份和遞增合併指令碼。指令碼會分配多個通道以進行平行 RMAN 備份與合併。第一次執行會產生初始完整的基礎映像複本。在完整的執行中、它會先清除保留時間以外的過時備份、以保持整備區域的乾淨。然後在合併和備份之前切換目前的記錄檔。在合併之後進行遞增備份、讓資料庫映像複本以一個備份 / 合併週期追蹤目前的資料庫狀態。合併與備份順序可以反轉、以便根據使用者的偏好、更快恢復。RMAN 指令碼可整合至簡單的 Shell 指令碼中、以便從主要 DB 伺服器上的 crontab 執行。請確定已在 RMAN 設定中開啟控制檔自動備份。

    vi /home/oracle/rman_bkup_merge.cmd
    
    Add following lines:
    
    RUN
    {
      allocate channel c1 device type disk format '/nfsanf/oracopy/%U';
      allocate channel c2 device type disk format '/nfsanf/oracopy/%U';
      allocate channel c3 device type disk format '/nfsanf/oracopy/%U';
      allocate channel c4 device type disk format '/nfsanf/oracopy/%U';
      delete obsolete;
      sql 'alter system archive log current';
      recover copy of database with tag 'OraCopyBKUPonANF_level_0';
      backup incremental level 1 copies=1 for recover of copy with tag 'OraCopyBKUPonANF_level_0' database;
    }
  5. 在主 Oracle VLDB 伺服器上、以具有或不含 RMAN 目錄的 Oracle 使用者身分、在本機登入 RMAN 。在本示範中、我們並未連線至 RMAN 目錄。

    rman target / nocatalog;
    
    output:
    
    [oracle@ora-01 ~]$ rman target / nocatalog
    
    Recovery Manager: Release 19.0.0.0.0 - Production on Wed Mar 20 16:54:24 2024
    Version 19.18.0.0.0
    
    Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: NTAP1 (DBID=2441823937)
    using target database control file instead of recovery catalog
  6. 從 RMAN 提示字元執行指令碼。第一次執行會建立基準資料庫映像複本、然後再合併並逐步更新基準映像複本。以下是執行指令碼和一般輸出的方法。設定通道數、以符合主機上的 CPU 核心。

    RMAN> @/home/oracle/rman_bkup_merge.cmd
    
    RMAN> RUN
    2> {
    3>   allocate channel c1 device type disk format '/nfsanf/oracopy/%U';
    4>   allocate channel c2 device type disk format '/nfsanf/oracopy/%U';
    5>   allocate channel c3 device type disk format '/nfsanf/oracopy/%U';
    6>   allocate channel c4 device type disk format '/nfsanf/oracopy/%U';
    7>   delete obsolete;
    8>   sql 'alter system archive log current';
    9>   recover copy of database with tag 'OraCopyBKUPonANF_level_0';
    10>   backup incremental level 1 copies=1 for recover of copy with tag 'OraCopyBKUPonANF_level_0' database;
    11> }
    allocated channel: c1
    channel c1: SID=142 device type=DISK
    
    allocated channel: c2
    channel c2: SID=277 device type=DISK
    
    allocated channel: c3
    channel c3: SID=414 device type=DISK
    
    allocated channel: c4
    channel c4: SID=28 device type=DISK
    
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 1
    Deleting the following obsolete backups and copies:
    Type                 Key    Completion Time    Filename/Handle
    -------------------- ------ ------------------ --------------------
    Backup Set           1      18-MAR-24
      Backup Piece       1      18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163958359__04h19dgr_.bkp
    Backup Set           2      18-MAR-24
      Backup Piece       2      18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163961675__07l1m2lg_.bkp
    Backup Set           3      18-MAR-24
      Backup Piece       3      18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163962888__08p6y7lx_.bkp
    Backup Set           4      18-MAR-24
      Backup Piece       4      18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163963796__09k8g1m4_.bkp
    Backup Set           5      18-MAR-24
      Backup Piece       5      18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163964697__0bd3tqg3_.bkp
    Backup Set           6      18-MAR-24
      Backup Piece       6      18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163965895__0chx6mzt_.bkp
    Backup Set           7      18-MAR-24
      Backup Piece       7      18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163966806__0dbyx344_.bkp
    Backup Set           8      18-MAR-24
      Backup Piece       8      18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163968012__0fgvg805_.bkp
    Backup Set           9      18-MAR-24
      Backup Piece       9      18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163968919__0g9x5t1v_.bkp
    Backup Set           10     18-MAR-24
      Backup Piece       10     18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163969821__0h4rfdzj_.bkp
    Backup Set           11     18-MAR-24
      Backup Piece       11     18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163971026__0j8o4wk8_.bkp
    Backup Set           12     18-MAR-24
      Backup Piece       12     18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163971931__0k3pnn2o_.bkp
    Backup Set           13     18-MAR-24
      Backup Piece       13     18-MAR-24          /u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163972835__0kyg92t1_.bkp
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163963796__09k8g1m4_.bkp RECID=4 STAMP=1163963804
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163962888__08p6y7lx_.bkp RECID=3 STAMP=1163962897
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163961675__07l1m2lg_.bkp RECID=2 STAMP=1163961683
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163958359__04h19dgr_.bkp RECID=1 STAMP=1163958361
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163964697__0bd3tqg3_.bkp RECID=5 STAMP=1163964705
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163965895__0chx6mzt_.bkp RECID=6 STAMP=1163965906
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163966806__0dbyx344_.bkp RECID=7 STAMP=1163966814
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163968012__0fgvg805_.bkp RECID=8 STAMP=1163968018
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163968919__0g9x5t1v_.bkp RECID=9 STAMP=1163968926
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163969821__0h4rfdzj_.bkp RECID=10 STAMP=1163969827
    Deleted 3 objects
    
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163971026__0j8o4wk8_.bkp RECID=11 STAMP=1163971032
    Deleted 3 objects
    
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163971931__0k3pnn2o_.bkp RECID=12 STAMP=1163971938
    Deleted 3 objects
    
    deleted backup piece
    backup piece handle=/u03/orareco/NTAP1/autobackup/2024_03_18/o1_mf_s_1163972835__0kyg92t1_.bkp RECID=13 STAMP=1163972837
    Deleted 4 objects
    
    
    sql statement: alter system archive log current
    
    Starting recover at 20-MAR-24
    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 31 found to recover
    no copy of datafile 32 found to recover
    Finished recover at 20-MAR-24
    
    Starting backup at 20-MAR-24
    no parent backup or copy of datafile 1 found
    no parent backup or copy of datafile 3 found
    no parent backup or copy of datafile 4 found
    .
    .
    no parent backup or copy of datafile 19 found
    no parent backup or copy of datafile 20 found
    channel c1: starting datafile copy
    input datafile file number=00021 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_01.dbf
    channel c2: starting datafile copy
    input datafile file number=00022 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_02.dbf
    channel c3: starting datafile copy
    input datafile file number=00023 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_03.dbf
    channel c4: starting datafile copy
    input datafile file number=00024 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_04.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-22_0g2m6brl tag=ORACOPYBKUPONANF_LEVEL_0 RECID=4 STAMP=1164132108
    channel c2: datafile copy complete, elapsed time: 01:06:39
    channel c2: starting datafile copy
    input datafile file number=00025 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_05.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-24_0i2m6brl tag=ORACOPYBKUPONANF_LEVEL_0 RECID=5 STAMP=1164132121
    channel c4: datafile copy complete, elapsed time: 01:06:45
    channel c4: starting datafile copy
    input datafile file number=00026 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_06.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_0h2m6brl tag=ORACOPYBKUPONANF_LEVEL_0 RECID=6 STAMP=1164132198
    channel c3: datafile copy complete, elapsed time: 01:08:05
    channel c3: starting datafile copy
    input datafile file number=00027 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_07.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_0f2m6brl tag=ORACOPYBKUPONANF_LEVEL_0 RECID=7 STAMP=1164132248
    channel c1: datafile copy complete, elapsed time: 01:08:57
    channel c1: starting datafile copy
    input datafile file number=00028 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_08.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-25_0j2m6fol tag=ORACOPYBKUPONANF_LEVEL_0 RECID=9 STAMP=1164136123
    channel c2: datafile copy complete, elapsed time: 01:06:46
    channel c2: starting datafile copy
    input datafile file number=00029 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_09.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-26_0k2m6fot tag=ORACOPYBKUPONANF_LEVEL_0 RECID=8 STAMP=1164136113
    channel c4: datafile copy complete, elapsed time: 01:06:36
    channel c4: starting datafile copy
    input datafile file number=00030 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_10.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_0l2m6frc tag=ORACOPYBKUPONANF_LEVEL_0 RECID=10 STAMP=1164136293
    channel c3: datafile copy complete, elapsed time: 01:08:10
    channel c3: starting datafile copy
    input datafile file number=00031 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_11.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-28_0m2m6fsu tag=ORACOPYBKUPONANF_LEVEL_0 RECID=11 STAMP=1164136333
    channel c1: datafile copy complete, elapsed time: 01:07:52
    channel c1: starting datafile copy
    input datafile file number=00032 name=/u02/oradata/NTAP1/NTAP1_pdb1/soe_12.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-29_0n2m6jlr tag=ORACOPYBKUPONANF_LEVEL_0 RECID=12 STAMP=1164140082
    channel c2: datafile copy complete, elapsed time: 01:06:01
    channel c2: starting datafile copy
    input datafile file number=00001 name=/u02/oradata/NTAP1/system01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-30_0o2m6jlr tag=ORACOPYBKUPONANF_LEVEL_0 RECID=13 STAMP=1164140190
    channel c4: datafile copy complete, elapsed time: 01:07:49
    channel c4: starting datafile copy
    input datafile file number=00003 name=/u02/oradata/NTAP1/sysaux01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-1_0r2m6nhk tag=ORACOPYBKUPONANF_LEVEL_0 RECID=14 STAMP=1164140240
    channel c2: datafile copy complete, elapsed time: 00:02:38
    channel c2: starting datafile copy
    input datafile file number=00004 name=/u02/oradata/NTAP1/undotbs01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-4_0t2m6nml tag=ORACOPYBKUPONANF_LEVEL_0 RECID=15 STAMP=1164140372
    channel c2: datafile copy complete, elapsed time: 00:02:15
    channel c2: starting datafile copy
    input datafile file number=00011 name=/u02/oradata/NTAP1/NTAP1_pdb1/undotbs01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-3_0s2m6nl1 tag=ORACOPYBKUPONANF_LEVEL_0 RECID=16 STAMP=1164140377
    channel c4: datafile copy complete, elapsed time: 00:03:01
    channel c4: starting datafile copy
    input datafile file number=00010 name=/u02/oradata/NTAP1/NTAP1_pdb1/sysaux01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-32_0q2m6jsi tag=ORACOPYBKUPONANF_LEVEL_0 RECID=17 STAMP=1164140385
    channel c1: datafile copy complete, elapsed time: 01:07:29
    channel c1: starting datafile copy
    input datafile file number=00014 name=/u02/oradata/NTAP1/NTAP1_pdb2/sysaux01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_0p2m6jrb tag=ORACOPYBKUPONANF_LEVEL_0 RECID=18 STAMP=1164140406
    channel c3: datafile copy complete, elapsed time: 01:08:31
    channel c3: starting datafile copy
    input datafile file number=00018 name=/u02/oradata/NTAP1/NTAP1_pdb3/sysaux01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_0v2m6nqs tag=ORACOPYBKUPONANF_LEVEL_0 RECID=19 STAMP=1164140459
    channel c4: datafile copy complete, elapsed time: 00:01:26
    channel c4: starting datafile copy
    input datafile file number=00006 name=/u02/oradata/NTAP1/pdbseed/sysaux01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-14_102m6nr3 tag=ORACOPYBKUPONANF_LEVEL_0 RECID=20 STAMP=1164140468
    channel c1: datafile copy complete, elapsed time: 00:01:22
    channel c1: starting datafile copy
    input datafile file number=00009 name=/u02/oradata/NTAP1/NTAP1_pdb1/system01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-11_0u2m6nqs tag=ORACOPYBKUPONANF_LEVEL_0 RECID=21 STAMP=1164140471
    channel c2: datafile copy complete, elapsed time: 00:01:33
    channel c2: starting datafile copy
    input datafile file number=00013 name=/u02/oradata/NTAP1/NTAP1_pdb2/system01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-18_112m6nrt tag=ORACOPYBKUPONANF_LEVEL_0 RECID=22 STAMP=1164140476
    channel c3: datafile copy complete, elapsed time: 00:00:57
    channel c3: starting datafile copy
    input datafile file number=00017 name=/u02/oradata/NTAP1/NTAP1_pdb3/system01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-6_122m6nti tag=ORACOPYBKUPONANF_LEVEL_0 RECID=23 STAMP=1164140488
    channel c4: datafile copy complete, elapsed time: 00:00:25
    channel c4: starting datafile copy
    input datafile file number=00005 name=/u02/oradata/NTAP1/pdbseed/system01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-13_142m6ntp tag=ORACOPYBKUPONANF_LEVEL_0 RECID=24 STAMP=1164140532
    channel c2: datafile copy complete, elapsed time: 00:01:06
    channel c2: starting datafile copy
    input datafile file number=00008 name=/u02/oradata/NTAP1/pdbseed/undotbs01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-17_152m6nts tag=ORACOPYBKUPONANF_LEVEL_0 RECID=25 STAMP=1164140539
    channel c3: datafile copy complete, elapsed time: 00:01:03
    channel c3: starting datafile copy
    input datafile file number=00015 name=/u02/oradata/NTAP1/NTAP1_pdb2/undotbs01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_132m6ntm tag=ORACOPYBKUPONANF_LEVEL_0 RECID=26 STAMP=1164140541
    channel c1: datafile copy complete, elapsed time: 00:01:13
    channel c1: starting datafile copy
    input datafile file number=00019 name=/u02/oradata/NTAP1/NTAP1_pdb3/undotbs01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-5_162m6nuc tag=ORACOPYBKUPONANF_LEVEL_0 RECID=27 STAMP=1164140541
    channel c4: datafile copy complete, elapsed time: 00:00:41
    channel c4: starting datafile copy
    input datafile file number=00007 name=/u02/oradata/NTAP1/users01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-8_172m6nvr tag=ORACOPYBKUPONANF_LEVEL_0 RECID=28 STAMP=1164140552
    channel c2: datafile copy complete, elapsed time: 00:00:16
    channel c2: starting datafile copy
    input datafile file number=00012 name=/u02/oradata/NTAP1/NTAP1_pdb1/users01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-15_182m6nvs tag=ORACOPYBKUPONANF_LEVEL_0 RECID=30 STAMP=1164140561
    channel c3: datafile copy complete, elapsed time: 00:00:24
    channel c3: starting datafile copy
    input datafile file number=00016 name=/u02/oradata/NTAP1/NTAP1_pdb2/users01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-7_1a2m6o01 tag=ORACOPYBKUPONANF_LEVEL_0 RECID=29 STAMP=1164140560
    channel c4: datafile copy complete, elapsed time: 00:00:16
    channel c4: starting datafile copy
    input datafile file number=00020 name=/u02/oradata/NTAP1/NTAP1_pdb3/users01.dbf
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-19_192m6nvv tag=ORACOPYBKUPONANF_LEVEL_0 RECID=31 STAMP=1164140564
    channel c1: datafile copy complete, elapsed time: 00:00:21
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-12_1b2m6o0e tag=ORACOPYBKUPONANF_LEVEL_0 RECID=32 STAMP=1164140564
    channel c2: datafile copy complete, elapsed time: 00:00:02
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_1c2m6o0k tag=ORACOPYBKUPONANF_LEVEL_0 RECID=34 STAMP=1164140565
    channel c3: datafile copy complete, elapsed time: 00:00:01
    output file name=/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_1d2m6o0k tag=ORACOPYBKUPONANF_LEVEL_0 RECID=33 STAMP=1164140565
    channel c4: datafile copy complete, elapsed time: 00:00:01
    Finished backup at 20-MAR-24
    
    Starting Control File and SPFILE Autobackup at 20-MAR-24
    piece handle=/nfsanf/archlog/NTAP1/autobackup/2024_03_20/o1_mf_s_1164140565__5g56ypks_.bkp comment=NONE
    Finished Control File and SPFILE Autobackup at 20-MAR-24
    released channel: c1
    released channel: c2
    released channel: c3
    released channel: c4
    
    RMAN> **end-of-file**
    
    RMAN>
  7. 備份後列出資料庫映像複本、觀察是否已在 anf NFS 掛載點中建立資料庫映像複本。

    RMAN> list copy of database tag 'OraCopyBKUPonANF_level_0';
    
    List of Datafile Copies
    =======================
    
    Key     File S Completion Time Ckp SCN    Ckp Time        Sparse
    ------- ---- - --------------- ---------- --------------- ------
    14      1    A 20-MAR-24       4161498    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-1_0r2m6nhk
            Tag: ORACOPYBKUPONANF_LEVEL_0
    
    16      3    A 20-MAR-24       4161568    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-3_0s2m6nl1
            Tag: ORACOPYBKUPONANF_LEVEL_0
    
    15      4    A 20-MAR-24       4161589    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-4_0t2m6nml
            Tag: ORACOPYBKUPONANF_LEVEL_0
    
    27      5    A 20-MAR-24       2379694    18-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-5_162m6nuc
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    23      6    A 20-MAR-24       2379694    18-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-6_122m6nti
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    29      7    A 20-MAR-24       4161872    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-7_1a2m6o01
            Tag: ORACOPYBKUPONANF_LEVEL_0
    
    28      8    A 20-MAR-24       2379694    18-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-8_172m6nvr
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    26      9    A 20-MAR-24       4161835    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_132m6ntm
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    19      10   A 20-MAR-24       4161784    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_0v2m6nqs
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    21      11   A 20-MAR-24       4161780    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-11_0u2m6nqs
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    32      12   A 20-MAR-24       4161880    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-12_1b2m6o0e
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    24      13   A 20-MAR-24       4161838    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-13_142m6ntp
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 4, PDB Name: NTAP1_PDB2
    
    20      14   A 20-MAR-24       4161785    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-14_102m6nr3
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 4, PDB Name: NTAP1_PDB2
    
    30      15   A 20-MAR-24       4161863    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-15_182m6nvs
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 4, PDB Name: NTAP1_PDB2
    
    34      16   A 20-MAR-24       4161884    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_1c2m6o0k
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 4, PDB Name: NTAP1_PDB2
    
    25      17   A 20-MAR-24       4161841    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-17_152m6nts
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 5, PDB Name: NTAP1_PDB3
    
    22      18   A 20-MAR-24       4161810    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-18_112m6nrt
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 5, PDB Name: NTAP1_PDB3
    
    31      19   A 20-MAR-24       4161869    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-19_192m6nvv
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 5, PDB Name: NTAP1_PDB3
    
    33      20   A 20-MAR-24       4161887    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_1d2m6o0k
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 5, PDB Name: NTAP1_PDB3
    
    7       21   A 20-MAR-24       4152514    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_0f2m6brl
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    4       22   A 20-MAR-24       4152518    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-22_0g2m6brl
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    6       23   A 20-MAR-24       4152522    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_0h2m6brl
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    5       24   A 20-MAR-24       4152529    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-24_0i2m6brl
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    9       25   A 20-MAR-24       4156120    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-25_0j2m6fol
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    8       26   A 20-MAR-24       4156130    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-26_0k2m6fot
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    10      27   A 20-MAR-24       4156159    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_0l2m6frc
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    11      28   A 20-MAR-24       4156183    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-28_0m2m6fsu
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    12      29   A 20-MAR-24       4158795    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-29_0n2m6jlr
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    13      30   A 20-MAR-24       4158803    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-30_0o2m6jlr
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    18      31   A 20-MAR-24       4158871    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_0p2m6jrb
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    17      32   A 20-MAR-24       4158886    20-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-32_0q2m6jsi
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
  8. 從 Oracle RMAN 命令提示字元報告架構、觀察目前的 VLDB 資料檔案位於主要儲存設備上。

    RMAN> report schema;
    
    Report of database schema for database with db_unique_name NTAP1
    
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    ---- -------- -------------------- ------- ------------------------
    1    1060     SYSTEM               YES     /u02/oradata/NTAP1/system01.dbf
    3    1000     SYSAUX               NO      /u02/oradata/NTAP1/sysaux01.dbf
    4    695      UNDOTBS1             YES     /u02/oradata/NTAP1/undotbs01.dbf
    5    400      PDB$SEED:SYSTEM      NO      /u02/oradata/NTAP1/pdbseed/system01.dbf
    6    440      PDB$SEED:SYSAUX      NO      /u02/oradata/NTAP1/pdbseed/sysaux01.dbf
    7    5        USERS                NO      /u02/oradata/NTAP1/users01.dbf
    8    235      PDB$SEED:UNDOTBS1    NO      /u02/oradata/NTAP1/pdbseed/undotbs01.dbf
    9    410      NTAP1_PDB1:SYSTEM    YES     /u02/oradata/NTAP1/NTAP1_pdb1/system01.dbf
    10   520      NTAP1_PDB1:SYSAUX    NO      /u02/oradata/NTAP1/NTAP1_pdb1/sysaux01.dbf
    11   580      NTAP1_PDB1:UNDOTBS1  YES     /u02/oradata/NTAP1/NTAP1_pdb1/undotbs01.dbf
    12   5        NTAP1_PDB1:USERS     NO      /u02/oradata/NTAP1/NTAP1_pdb1/users01.dbf
    13   410      NTAP1_PDB2:SYSTEM    YES     /u02/oradata/NTAP1/NTAP1_pdb2/system01.dbf
    14   500      NTAP1_PDB2:SYSAUX    NO      /u02/oradata/NTAP1/NTAP1_pdb2/sysaux01.dbf
    15   235      NTAP1_PDB2:UNDOTBS1  YES     /u02/oradata/NTAP1/NTAP1_pdb2/undotbs01.dbf
    16   5        NTAP1_PDB2:USERS     NO      /u02/oradata/NTAP1/NTAP1_pdb2/users01.dbf
    17   410      NTAP1_PDB3:SYSTEM    YES     /u02/oradata/NTAP1/NTAP1_pdb3/system01.dbf
    18   500      NTAP1_PDB3:SYSAUX    NO      /u02/oradata/NTAP1/NTAP1_pdb3/sysaux01.dbf
    19   235      NTAP1_PDB3:UNDOTBS1  YES     /u02/oradata/NTAP1/NTAP1_pdb3/undotbs01.dbf
    20   5        NTAP1_PDB3:USERS     NO      /u02/oradata/NTAP1/NTAP1_pdb3/users01.dbf
    21   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_01.dbf
    22   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_02.dbf
    23   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_03.dbf
    24   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_04.dbf
    25   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_05.dbf
    26   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_06.dbf
    27   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_07.dbf
    28   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_08.dbf
    29   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_09.dbf
    30   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_10.dbf
    31   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_11.dbf
    32   31744    NTAP1_PDB1:SOE       NO      /u02/oradata/NTAP1/NTAP1_pdb1/soe_12.dbf
    
    List of Temporary Files
    =======================
    File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
    ---- -------- -------------------- ----------- --------------------
    1    123      TEMP                 32767       /u02/oradata/NTAP1/temp01.dbf
    2    123      PDB$SEED:TEMP        32767       /u02/oradata/NTAP1/pdbseed/temp012024-03-18_16-07-32-463-PM.dbf
    3    31744    NTAP1_PDB1:TEMP      32767       /u02/oradata/NTAP1/NTAP1_pdb1/temp01.dbf
    4    123      NTAP1_PDB2:TEMP      32767       /u02/oradata/NTAP1/NTAP1_pdb2/temp01.dbf
    5    123      NTAP1_PDB3:TEMP      32767       /u02/oradata/NTAP1/NTAP1_pdb3/temp01.dbf
    6    31744    NTAP1_PDB1:TEMP      31744       /u02/oradata/NTAP1/NTAP1_pdb1/temp02.dbf
    
    RMAN>
  9. 從 OS NFS 裝載點驗證資料庫映像複本。

    [oracle@ora-01 ~]$ ls -l /nfsanf/oracopy
    total 399482176
    -rw-r----- 1 oracle oinstall    11600384 Mar 20 21:44 bct_ntap1.ctf
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 18:03 data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_0f2m6brl
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 18:01 data_D-NTAP1_I-2441823937_TS-SOE_FNO-22_0g2m6brl
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 18:03 data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_0h2m6brl
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 18:02 data_D-NTAP1_I-2441823937_TS-SOE_FNO-24_0i2m6brl
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 19:08 data_D-NTAP1_I-2441823937_TS-SOE_FNO-25_0j2m6fol
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 19:08 data_D-NTAP1_I-2441823937_TS-SOE_FNO-26_0k2m6fot
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 19:11 data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_0l2m6frc
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 19:12 data_D-NTAP1_I-2441823937_TS-SOE_FNO-28_0m2m6fsu
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 20:14 data_D-NTAP1_I-2441823937_TS-SOE_FNO-29_0n2m6jlr
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 20:16 data_D-NTAP1_I-2441823937_TS-SOE_FNO-30_0o2m6jlr
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 20:20 data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_0p2m6jrb
    -rw-r----- 1 oracle oinstall 33286004736 Mar 20 20:19 data_D-NTAP1_I-2441823937_TS-SOE_FNO-32_0q2m6jsi
    -rw-r----- 1 oracle oinstall   545267712 Mar 20 20:20 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_0v2m6nqs
    -rw-r----- 1 oracle oinstall   524296192 Mar 20 20:21 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-14_102m6nr3
    -rw-r----- 1 oracle oinstall   524296192 Mar 20 20:21 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-18_112m6nrt
    -rw-r----- 1 oracle oinstall  1048584192 Mar 20 20:19 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-3_0s2m6nl1
    -rw-r----- 1 oracle oinstall   461381632 Mar 20 20:21 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-6_122m6nti
    -rw-r----- 1 oracle oinstall  1111498752 Mar 20 20:17 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-1_0r2m6nhk
    -rw-r----- 1 oracle oinstall   429924352 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-13_142m6ntp
    -rw-r----- 1 oracle oinstall   429924352 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-17_152m6nts
    -rw-r----- 1 oracle oinstall   419438592 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-5_162m6nuc
    -rw-r----- 1 oracle oinstall   429924352 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_132m6ntm
    -rw-r----- 1 oracle oinstall   608182272 Mar 20 20:21 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-11_0u2m6nqs
    -rw-r----- 1 oracle oinstall   246423552 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-15_182m6nvs
    -rw-r----- 1 oracle oinstall   246423552 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-19_192m6nvv
    -rw-r----- 1 oracle oinstall   728768512 Mar 20 20:19 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-4_0t2m6nml
    -rw-r----- 1 oracle oinstall   246423552 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-8_172m6nvr
    -rw-r----- 1 oracle oinstall     5251072 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-USERS_FNO-12_1b2m6o0e
    -rw-r----- 1 oracle oinstall     5251072 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_1c2m6o0k
    -rw-r----- 1 oracle oinstall     5251072 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_1d2m6o0k
    -rw-r----- 1 oracle oinstall     5251072 Mar 20 20:22 data_D-NTAP1_I-2441823937_TS-USERS_FNO-7_1a2m6o01
    [oracle@ora-01 ~]$

這將完成 Oracle VLDB 待機映像複本備份與合併的設定。

將 Oracle VLDB 切換至映像複本、以快速恢復

Details

如果由於主要儲存問題(例如資料遺失或毀損)而發生故障、資料庫可以快速切換至 anf NFS 掛載上的映像複本、並在不進行資料庫還原的情況下恢復至目前狀態。消除媒體還原可大幅加速 VLDB 的資料庫還原。此使用案例假設 Oracle VLDB DB 伺服器完整無缺、而且資料庫控制檔、歸檔和目前的記錄都可供還原。

  1. 以 Oracle 使用者身分登入 Azure 主要 VLDB 伺服器主機、並在切換之前建立測試表。

    [oracle@ora-01 ~]$ sqlplus / as sysdba
    
    SQL*Plus: Release 19.0.0.0.0 - Production on Thu Mar 21 15:13:52 2024
    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 NTAP1_PDB1                     READ WRITE NO
             4 NTAP1_PDB2                     READ WRITE NO
             5 NTAP1_PDB3                     READ WRITE NO
    SQL> alter session set container=ntap1_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
    21-MAR-24 03.15.03.000000 PM
    test oracle incremental merge switch to copy
  2. 關閉中止資料庫以模擬故障、然後在掛載階段啟動 Oracle 。

    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    
    Total System Global Area 6442449688 bytes
    Fixed Size                  9177880 bytes
    Variable Size            1325400064 bytes
    Database Buffers         5100273664 bytes
    Redo Buffers                7598080 bytes
    Database mounted.
    SQL> exit
  3. 身為 Oracle 使用者、請透過 RMAN 連線至 Oracle 資料庫、以切換要複製的資料庫。

    [oracle@ora-01 ~]$ rman target / nocatalog
    
    Recovery Manager: Release 19.0.0.0.0 - Production on Thu Mar 21 15:20:58 2024
    Version 19.18.0.0.0
    
    Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: NTAP1 (DBID=2441823937, not open)
    using target database control file instead of recovery catalog
    
    RMAN> switch database to copy;
    
    datafile 1 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-1_0r2m6nhk"
    datafile 3 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-3_0s2m6nl1"
    datafile 4 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-4_0t2m6nml"
    datafile 5 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-5_162m6nuc"
    datafile 6 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-6_122m6nti"
    datafile 7 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-7_1a2m6o01"
    datafile 8 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-8_172m6nvr"
    datafile 9 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_132m6ntm"
    datafile 10 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_0v2m6nqs"
    datafile 11 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-11_0u2m6nqs"
    datafile 12 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-12_1b2m6o0e"
    datafile 13 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-13_142m6ntp"
    datafile 14 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-14_102m6nr3"
    datafile 15 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-15_182m6nvs"
    datafile 16 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_1c2m6o0k"
    datafile 17 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-17_152m6nts"
    datafile 18 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-18_112m6nrt"
    datafile 19 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-19_192m6nvv"
    datafile 20 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_1d2m6o0k"
    datafile 21 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_0f2m6brl"
    datafile 22 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-22_0g2m6brl"
    datafile 23 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_0h2m6brl"
    datafile 24 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-24_0i2m6brl"
    datafile 25 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-25_0j2m6fol"
    datafile 26 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-26_0k2m6fot"
    datafile 27 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_0l2m6frc"
    datafile 28 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-28_0m2m6fsu"
    datafile 29 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-29_0n2m6jlr"
    datafile 30 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-30_0o2m6jlr"
    datafile 31 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_0p2m6jrb"
    datafile 32 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-32_0q2m6jsi"
  4. 恢復並開啟資料庫、使其從上次遞增備份升級至最新版本。

    RMAN> recover database;
    
    Starting recover at 21-MAR-24
    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: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_0q1sd7cm
    destination for restore of datafile 00023: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_041sd6s5
    destination for restore of datafile 00027: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_081sd70i
    destination for restore of datafile 00031: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_0c1sd74u
    destination for restore of datafile 00034: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-34_0f1sd788
    channel ORA_DISK_1: reading from backup piece /nfsanf/oracopy/321sfous_98_1_1
    channel ORA_DISK_1: piece handle=/nfsanf/oracopy/321sfous_98_1_1 tag=ORACOPYBKUPONANF_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: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_0k1sd7bb
    destination for restore of datafile 00021: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_021sd6pv
    destination for restore of datafile 00025: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_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: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_121sd7dn
    channel ORA_DISK_1: reading from backup piece /nfsanf/oracopy/3i1sfov0_114_1_1
    channel ORA_DISK_1: piece handle=/nfsanf/oracopy/3i1sfov0_114_1_1 tag=ORACOPYBKUPONANF_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: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_131sd7do
    channel ORA_DISK_1: reading from backup piece /nfsanf/oracopy/3j1sfov0_115_1_1
    channel ORA_DISK_1: piece handle=/nfsanf/oracopy/3j1sfov0_115_1_1 tag=ORACOPYBKUPONANF_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 21-MAR-24
    
    RMAN> alter database open;
    
    Statement processed
    
    RMAN>
  5. 恢復後從 sqlplus 檢查資料庫結構、觀察除控制、暫存和目前記錄檔以外的所有 VLDB 資料檔案現在都已切換到 anf 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
    SQL> /
    
    NAME
    --------------------------------------------------------------------------------
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_0f2m6brl
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-22_0g2m6brl
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_0h2m6brl
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-24_0i2m6brl
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-25_0j2m6fol
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-26_0k2m6fot
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_0l2m6frc
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-28_0m2m6fsu
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-29_0n2m6jlr
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-30_0o2m6jlr
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_0p2m6jrb
    
    NAME
    --------------------------------------------------------------------------------
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-32_0q2m6jsi
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_0v2m6nqs
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-14_102m6nr3
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-18_112m6nrt
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-3_0s2m6nl1
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-6_122m6nti
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-13_142m6ntp
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-17_152m6nts
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-1_0r2m6nhk
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-5_162m6nuc
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_132m6ntm
    
    NAME
    --------------------------------------------------------------------------------
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-11_0u2m6nqs
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-15_182m6nvs
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-19_192m6nvv
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-4_0t2m6nml
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-8_172m6nvr
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-12_1b2m6o0e
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_1c2m6o0k
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_1d2m6o0k
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-7_1a2m6o01
    /u02/oradata/NTAP1/NTAP1_pdb1/temp01.dbf
    /u02/oradata/NTAP1/NTAP1_pdb1/temp02.dbf
    
    NAME
    --------------------------------------------------------------------------------
    /u02/oradata/NTAP1/NTAP1_pdb2/temp01.dbf
    /u02/oradata/NTAP1/NTAP1_pdb3/temp01.dbf
    /u02/oradata/NTAP1/control01.ctl
    /u02/oradata/NTAP1/pdbseed/temp012024-03-18_16-07-32-463-PM.dbf
    /u02/oradata/NTAP1/temp01.dbf
    /u03/orareco/NTAP1/control02.ctl
    /u03/orareco/NTAP1/onlinelog/redo01.log
    /u03/orareco/NTAP1/onlinelog/redo02.log
    /u03/orareco/NTAP1/onlinelog/redo03.log
    
    42 rows selected.
  6. 從 SQL Plus 、檢查我們在切換至複本之前插入的測試表格內容。

    SQL> alter session set container=ntap1_pdb1;
    
    Session altered.
    
    SQL> select * from test;
    
            ID
    ----------
    DT
    ---------------------------------------------------------------------------
    EVENT
    --------------------------------------------------------------------------------
             1
    21-MAR-24 03.15.03.000000 PM
    test oracle incremental merge switch to copy
    
    
    SQL>
  7. 您可以在 ANF NFS 掛載中長時間執行 Oracle VLDB 、同時維持預期的效能等級。當主要儲存問題解決時、您可以將遞增備份合併程序還原、並將停機時間降到最低、藉此回復到 IT 。

Oracle VLDB 可從映像複本恢復到備用 DB 伺服器

Details

如果主儲存設備和主要 DB 伺服器主機都遺失、則無法從原始伺服器執行還原。不過、在 ANF NFS 檔案系統上提供的 Oracle 資料庫備份映像複本非常實用。您可以使用備份映像複本、將主要資料庫快速恢復至備用 DB 伺服器(如果有)。在本節中、我們將示範此類恢復的逐步程序。

  1. 插入一列以測試先前為 Oracle VLDB 所建立的表格、以還原至替代主機驗證。

    SQL> insert into test values(2, sysdate, 'test recovery on a new Azure VM host with image copy on ANF');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from test;
    
            ID
    ----------
    DT
    ---------------------------------------------------------------------------
    EVENT
    --------------------------------------------------------------------------------
             1
    21-MAR-24 03.15.03.000000 PM
    test oracle incremental merge switch to copy
    
             2
    22-MAR-24 02.22.06.000000 PM
    test recovery on a new Azure VM host with image copy on ANF
    
            ID
    ----------
    DT
    ---------------------------------------------------------------------------
    EVENT
    --------------------------------------------------------------------------------
    
    
    SQL>
  2. 身為 Oracle 使用者、請執行 RMAN 遞增備份並合併、將交易排清為在 anf 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: NTAP1 (DBID=2441823937)
    using target database control file instead of recovery catalog
    
    RMAN> @rman_bkup_merge.cmd
  3. 關閉主要 VLDB 伺服器主機、以模擬儲存設備和 DB 伺服器主機的整體故障。

  4. 在具有相同作業系統和版本的備用 DB 伺服器 ora-02 上、作業系統核心應該修補為主要 VLDB 伺服器主機。此外、在備份 DB 伺服器上安裝和設定的 Oracle 版本和修補程式、只有軟體選項。

  5. 類似於主 VLDB 伺服器 ora_01 (例如 oratab )和 Oracle 使用者 .bash_profile 等)來設定 Oracle 環境 將這些檔案備份到 anf NFS 掛載點是很好的做法。

  6. 然後、在 ANF NFS 檔案系統上的 Oracle 資料庫備份映像複本會掛載到備用 DB 伺服器上進行還原。下列程序將示範程序的詳細資料。

    身為 azueruser 、請建立掛載點。

    sudo mkdir /nfsanf

    身為 azureuser 、裝載儲存 Oracle VLDB 備份映像複本的 NFS 磁碟區。

    sudo mount 172.30.136.68:/ora-01-u02-copy /nfsanf -o rw,bg,hard,vers=3,proto=tcp,timeo=600,rsize=262144,wsize=262144,nointr
  7. 在 anf NFS 掛載點上驗證 Oracle 資料庫備份映像複本。

    [oracle@ora-02 ~]$ ls -ltr /nfsanf/oracopy/
    total 400452728
    -rw-r-----. 1 oracle oinstall   461381632 Mar 21 23:47 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-6_242m9oan
    -rw-r-----. 1 oracle oinstall   419438592 Mar 21 23:49 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-5_282m9oem
    -rw-r-----. 1 oracle oinstall   246423552 Mar 21 23:49 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-8_292m9oem
    -rw-r-----. 1 oracle oinstall    21438464 Mar 22 14:35 2h2mbccv_81_1_1
    -rw-r-----. 1 oracle oinstall    17956864 Mar 22 14:35 2i2mbcd0_82_1_1
    -rw-r-----. 1 oracle oinstall    17956864 Mar 22 14:35 2j2mbcd1_83_1_1
    -rw-r-----. 1 oracle oinstall    15245312 Mar 22 14:35 2k2mbcd3_84_1_1
    -rw-r-----. 1 oracle oinstall     1638400 Mar 22 14:35 2m2mbcdn_86_1_1
    -rw-r-----. 1 oracle oinstall    40042496 Mar 22 14:35 2l2mbcdn_85_1_1
    -rw-r-----. 1 oracle oinstall    21856256 Mar 22 14:35 2n2mbcdo_87_1_1
    -rw-r-----. 1 oracle oinstall     3710976 Mar 22 14:35 2o2mbcdv_88_1_1
    -rw-r-----. 1 oracle oinstall     3416064 Mar 22 14:35 2p2mbcdv_89_1_1
    -rw-r-----. 1 oracle oinstall     2596864 Mar 22 14:35 2r2mbce0_91_1_1
    -rw-r-----. 1 oracle oinstall     2531328 Mar 22 14:35 2s2mbce1_92_1_1
    -rw-r-----. 1 oracle oinstall     4718592 Mar 22 14:35 2v2mbce2_95_1_1
    -rw-r-----. 1 oracle oinstall     4243456 Mar 22 14:35 302mbce2_96_1_1
    -rw-r-----. 1 oracle oinstall       57344 Mar 22 14:35 312mbce3_97_1_1
    -rw-r-----. 1 oracle oinstall       57344 Mar 22 14:35 322mbce3_98_1_1
    -rw-r-----. 1 oracle oinstall       57344 Mar 22 14:35 332mbce3_99_1_1
    -rw-r-----. 1 oracle oinstall   608182272 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-11_202m9o22
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-30_1q2m9k7a
    -rw-r-----. 1 oracle oinstall   555753472 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_212m9o52
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-26_1m2m9g9j
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_1n2m9gcg
    -rw-r-----. 1 oracle oinstall   429924352 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_252m9oc5
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-22_1i2m9cap
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_1j2m9cap
    -rw-r-----. 1 oracle oinstall     5251072 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-USERS_FNO-12_2d2m9ofs
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-28_1o2m9gd4
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_1r2m9kfk
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-29_1p2m9ju6
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-32_1s2m9kgg
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-25_1l2m9g3u
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-24_1k2m9cap
    -rw-r-----. 1 oracle oinstall 33286004736 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_1h2m9cap
    -rw-r-----. 1 oracle oinstall  1121984512 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-1_1t2m9nij
    -rw-r-----. 1 oracle oinstall  1142956032 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-3_1u2m9nog
    -rw-r-----. 1 oracle oinstall   728768512 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-4_1v2m9nu6
    -rw-r-----. 1 oracle oinstall   534781952 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-14_222m9o53
    -rw-r-----. 1 oracle oinstall   534781952 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-18_232m9oa8
    -rw-r-----. 1 oracle oinstall   429924352 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-13_262m9oca
    -rw-r-----. 1 oracle oinstall   246423552 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-15_2a2m9of6
    -rw-r-----. 1 oracle oinstall   429924352 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-17_272m9oel
    -rw-r-----. 1 oracle oinstall     5251072 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-USERS_FNO-7_2c2m9ofn
    -rw-r-----. 1 oracle oinstall     5251072 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_2e2m9og8
    -rw-r-----. 1 oracle oinstall   246423552 Mar 22 15:31 data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-19_2b2m9ofn
    -rw-r-----. 1 oracle oinstall     5251072 Mar 22 15:32 data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_2f2m9og8
    -rw-r-----. 1 oracle oinstall    76546048 Mar 22 15:37 362mbft5_102_1_1
    -rw-r-----. 1 oracle oinstall    14671872 Mar 22 15:37 392mbg1i_105_1_1
    -rw-r-----. 1 oracle oinstall    79462400 Mar 22 15:37 372mbftb_103_1_1
    -rw-r-----. 1 oracle oinstall      917504 Mar 22 15:37 3a2mbg23_106_1_1
    -rw-r-----. 1 oracle oinstall   428498944 Mar 22 15:37 352mbfst_101_1_1
    -rw-r-----. 1 oracle oinstall    88702976 Mar 22 15:37 382mbftm_104_1_1
    -rw-r-----. 1 oracle oinstall     5021696 Mar 22 15:37 3b2mbg2b_107_1_1
    -rw-r-----. 1 oracle oinstall      278528 Mar 22 15:38 3c2mbg2f_108_1_1
    -rw-r-----. 1 oracle oinstall      278528 Mar 22 15:38 3d2mbg2i_109_1_1
    -rw-r-----. 1 oracle oinstall      425984 Mar 22 15:38 3f2mbg2m_111_1_1
    -rw-r-----. 1 oracle oinstall      442368 Mar 22 15:38 3g2mbg2q_112_1_1
    -rw-r-----. 1 oracle oinstall      278528 Mar 22 15:38 3j2mbg37_115_1_1
    -rw-r-----. 1 oracle oinstall      270336 Mar 22 15:38 3k2mbg3a_116_1_1
    -rw-r-----. 1 oracle oinstall       57344 Mar 22 15:38 3l2mbg3f_117_1_1
    -rw-r-----. 1 oracle oinstall       57344 Mar 22 15:38 3n2mbg3k_119_1_1
    -rw-r-----. 1 oracle oinstall       57344 Mar 22 15:38 3m2mbg3g_118_1_1
    -rw-r-----. 1 oracle oinstall    11600384 Mar 22 15:52 bct_ntap1.ctf
    [oracle@ora-02 ~]$
  8. 驗證 anf NFS 掛載上的可用 Oracle 歸檔記錄以進行恢復、並記下最後一個記錄檔日誌續期編號。在這種情況下、是 10 。我們的恢復點是記錄續期數字 11 。

    [oracle@ora-02 ~]$ ls -ltr /nfsanf/archlog/NTAP1/archivelog/2024_03_22
    total 1429548
    -r--r-----. 1 oracle oinstall 176650752 Mar 22 12:00 o1_mf_1_2__9m198x6t_.arc
    -r--r-----. 1 oracle oinstall  17674752 Mar 22 14:34 o1_mf_1_3__9vn701r5_.arc
    -r--r-----. 1 oracle oinstall 188782080 Mar 22 15:20 o1_mf_1_4__9y6gn5co_.arc
    -r--r-----. 1 oracle oinstall 183638016 Mar 22 15:21 o1_mf_1_5__9y7p68s6_.arc
    -r--r-----. 1 oracle oinstall 193106944 Mar 22 15:21 o1_mf_1_6__9y8ygtss_.arc
    -r--r-----. 1 oracle oinstall 179439104 Mar 22 15:22 o1_mf_1_7__9ybjdp55_.arc
    -r--r-----. 1 oracle oinstall 198815232 Mar 22 15:23 o1_mf_1_8__9yctxjgy_.arc
    -r--r-----. 1 oracle oinstall 185494528 Mar 22 15:24 o1_mf_1_9__9yfrj0b1_.arc
    -r--r-----. 1 oracle oinstall 134470144 Mar 22 15:29 o1_mf_1_10__9yomybbc_.arc
    [oracle@ora-02 ~]$
  9. 以 Oracle 使用者身分、將 Oracle_home 變數設為待機 DB 伺服器 ora-02 上目前的 Oracle 安裝、將 oracle_sID 設為主要 Oracle 執行個體 SID 。在這種情況下、它是 NTAP1 。

    [oracle@ora-02 ~]$ export ORACLE_HOME=/u01/app/oracle/product/19.0.0/NTAP2
    [oracle@ora-02 ~]$ export ORACLE_SID=NTAP1
    [oracle@ora-02 ~]$ export PATH=$PATH:$ORACLE_HOME/bin
  10. 身為 Oracle 使用者、請在 $Oracle_home/DBS 目錄中建立通用的 Oracle 初始化檔案、並設定適當的管理目錄。最重要的是、擁有 Oracle flash recovery area 指向主要 Oracle VLDB 伺服器中定義的 anf NFS 裝載路徑。 flash recovery area 組態將在章節中示範 Setup Oracle RMAN incremental merge to image copy on ANF。將 Oracle 控制檔設定為 anf NFS 檔案系統。

    vi $ORACLE_HOME/dbs/initNTAP1.ora

    使用下列範例項目:

    *.audit_file_dest='/u01/app/oracle/admin/NTAP1/adump'
    *.audit_trail='db'
    *.compatible='19.0.0'
    *.control_files=('/nfsanf/oracopy/NTAP1.ctl')
    *.db_block_size=8192
    *.db_create_file_dest='/nfsanf/oracopy/'
    *.db_domain='solutions.netapp.com'
    *.db_name='NTAP1'
    *.db_recovery_file_dest_size=85899345920
    *.db_recovery_file_dest='/nfsanf/archlog/'
    *.diagnostic_dest='/u01/app/oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=NTAP1XDB)'
    *.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'

    如果存在差異、應將上述初始化檔案替換為從主要 Oracle VLDB 伺服器還原的備份初始化檔案。

  11. 身為 Oracle 使用者、請啟動 RMAN 、以便在備用 DB 伺服器主機上執行 Oracle 恢復。首先、在中啟動 Oracle 執行個體 nomount 州/省。

    [oracle@ora-02 ~]$ rman target / nocatalog
    
    Recovery Manager: Release 19.0.0.0.0 - Production on Fri Mar 22 16:02:55 2024
    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
  12. 設定資料庫 ID 。資料庫 ID 可從 ANF NFS 掛載點上的影像複本 Oracle 檔案名稱擷取。

    RMAN> set dbid = 2441823937;
    
    executing command: SET DBID
  13. 從自動備份還原控制檔。如果啟用 Oracle controlfile 和 spfile 自動備份、則會在每個增量備份和合併週期中備份。如果有多個複本可用、則會還原最新的備份。

    RMAN> restore controlfile from autobackup;
    
    Starting restore at 22-MAR-24
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=2 device type=DISK
    
    recovery area destination: /nfsanf/archlog/
    database name (or database unique name) used for search: NTAP1
    channel ORA_DISK_1: AUTOBACKUP /nfsanf/archlog/NTAP1/autobackup/2024_03_22/o1_mf_s_1164296325__9z77zyxb_.bkp found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20240322
    channel ORA_DISK_1: restoring control file from AUTOBACKUP /nfsanf/archlog/NTAP1/autobackup/2024_03_22/o1_mf_s_1164296325__9z77zyxb_.bkp
    channel ORA_DISK_1: control file restore from AUTOBACKUP complete
    output file name=/nfsanf/oracopy/NTAP1.ctl
    Finished restore at 22-MAR-24
  14. 將初始化檔案從 spfile 還原至 /tmp 資料夾、以便稍後更新參數檔案、以符合主要 VLDB 。

    RMAN> restore spfile to pfile '/tmp/archive/initNTAP1.ora' from autobackup;
    
    Starting restore at 22-MAR-24
    using channel ORA_DISK_1
    
    recovery area destination: /nfsanf/archlog/
    database name (or database unique name) used for search: NTAP1
    channel ORA_DISK_1: AUTOBACKUP /nfsanf/archlog/NTAP1/autobackup/2024_03_22/o1_mf_s_1164296325__9z77zyxb_.bkp found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20240322
    channel ORA_DISK_1: restoring spfile from AUTOBACKUP /nfsanf/archlog/NTAP1/autobackup/2024_03_22/o1_mf_s_1164296325__9z77zyxb_.bkp
    channel ORA_DISK_1: SPFILE restore from AUTOBACKUP complete
    Finished restore at 22-MAR-24
  15. 掛載控制檔並驗證資料庫備份映像複本。

    RMAN> alter database mount;
    
    released channel: ORA_DISK_1
    Statement processed
    
    RMAN> list copy of database tag 'ORACOPYBKUPONANF_LEVEL_0';
    
    List of Datafile Copies
    =======================
    
    Key     File S Completion Time Ckp SCN    Ckp Time        Sparse
    ------- ---- - --------------- ---------- --------------- ------
    82      1    A 22-MAR-24       4598427    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-1_1t2m9nij
            Tag: ORACOPYBKUPONANF_LEVEL_0
    
    83      3    A 22-MAR-24       4598423    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-3_1u2m9nog
            Tag: ORACOPYBKUPONANF_LEVEL_0
    
    84      4    A 22-MAR-24       4598431    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-4_1v2m9nu6
            Tag: ORACOPYBKUPONANF_LEVEL_0
    
    58      5    A 21-MAR-24       2379694    18-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-5_282m9oem
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    52      6    A 21-MAR-24       2379694    18-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-6_242m9oan
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    90      7    A 22-MAR-24       4598462    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-7_2c2m9ofn
            Tag: ORACOPYBKUPONANF_LEVEL_0
    
    59      8    A 21-MAR-24       2379694    18-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-8_292m9oem
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 2, PDB Name: PDB$SEED
    
    71      9    A 22-MAR-24       4598313    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_252m9oc5
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    68      10   A 22-MAR-24       4598308    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_212m9o52
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    66      11   A 22-MAR-24       4598304    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-11_202m9o22
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    74      12   A 22-MAR-24       4598318    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-12_2d2m9ofs
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    86      13   A 22-MAR-24       4598445    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-13_262m9oca
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 4, PDB Name: NTAP1_PDB2
    
    85      14   A 22-MAR-24       4598437    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-14_222m9o53
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 4, PDB Name: NTAP1_PDB2
    
    87      15   A 22-MAR-24       4598454    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-15_2a2m9of6
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 4, PDB Name: NTAP1_PDB2
    
    89      16   A 22-MAR-24       4598466    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_2e2m9og8
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 4, PDB Name: NTAP1_PDB2
    
    91      17   A 22-MAR-24       4598450    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-17_272m9oel
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 5, PDB Name: NTAP1_PDB3
    
    88      18   A 22-MAR-24       4598441    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-18_232m9oa8
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 5, PDB Name: NTAP1_PDB3
    
    92      19   A 22-MAR-24       4598458    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-19_2b2m9ofn
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 5, PDB Name: NTAP1_PDB3
    
    93      20   A 22-MAR-24       4598470    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_2f2m9og8
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 5, PDB Name: NTAP1_PDB3
    
    81      21   A 22-MAR-24       4598318    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_1h2m9cap
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    72      22   A 22-MAR-24       4598304    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-22_1i2m9cap
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    73      23   A 22-MAR-24       4598308    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_1j2m9cap
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    80      24   A 22-MAR-24       4598313    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-24_1k2m9cap
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    79      25   A 22-MAR-24       4598318    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-25_1l2m9g3u
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    69      26   A 22-MAR-24       4598304    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-26_1m2m9g9j
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    70      27   A 22-MAR-24       4598308    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_1n2m9gcg
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    75      28   A 22-MAR-24       4598313    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-28_1o2m9gd4
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    77      29   A 22-MAR-24       4598318    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-29_1p2m9ju6
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    67      30   A 22-MAR-24       4598304    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-30_1q2m9k7a
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    76      31   A 22-MAR-24       4598308    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_1r2m9kfk
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
    
    78      32   A 22-MAR-24       4598313    22-MAR-24       NO
            Name: /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-32_1s2m9kgg
            Tag: ORACOPYBKUPONANF_LEVEL_0
            Container ID: 3, PDB Name: NTAP1_PDB1
  16. 將資料庫切換成複本、即可在不進行資料庫還原的情況下執行還原。

    RMAN> switch database to copy;
    
    Starting implicit crosscheck backup at 22-MAR-24
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=12 device type=DISK
    Crosschecked 33 objects
    Finished implicit crosscheck backup at 22-MAR-24
    
    Starting implicit crosscheck copy at 22-MAR-24
    using channel ORA_DISK_1
    Crosschecked 31 objects
    Finished implicit crosscheck copy at 22-MAR-24
    
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    
    List of Cataloged Files
    =======================
    File Name: /nfsanf/archlog/NTAP1/autobackup/2024_03_20/o1_mf_s_1164140565__5g56ypks_.bkp
    File Name: /nfsanf/archlog/NTAP1/autobackup/2024_03_22/o1_mf_s_1164296325__9z77zyxb_.bkp
    
    datafile 1 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-1_1t2m9nij"
    datafile 3 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-3_1u2m9nog"
    datafile 4 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-4_1v2m9nu6"
    datafile 5 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-5_282m9oem"
    datafile 6 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-6_242m9oan"
    datafile 7 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-7_2c2m9ofn"
    datafile 8 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-8_292m9oem"
    datafile 9 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_252m9oc5"
    datafile 10 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_212m9o52"
    datafile 11 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-11_202m9o22"
    datafile 12 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-12_2d2m9ofs"
    datafile 13 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-13_262m9oca"
    datafile 14 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-14_222m9o53"
    datafile 15 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-15_2a2m9of6"
    datafile 16 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_2e2m9og8"
    datafile 17 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-17_272m9oel"
    datafile 18 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-18_232m9oa8"
    datafile 19 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-19_2b2m9ofn"
    datafile 20 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_2f2m9og8"
    datafile 21 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_1h2m9cap"
    datafile 22 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-22_1i2m9cap"
    datafile 23 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_1j2m9cap"
    datafile 24 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-24_1k2m9cap"
    datafile 25 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-25_1l2m9g3u"
    datafile 26 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-26_1m2m9g9j"
    datafile 27 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_1n2m9gcg"
    datafile 28 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-28_1o2m9gd4"
    datafile 29 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-29_1p2m9ju6"
    datafile 30 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-30_1q2m9k7a"
    datafile 31 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_1r2m9kfk"
    datafile 32 switched to datafile copy "/nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-32_1s2m9kgg"
  17. 在 Flash 恢復區域中執行 Oracle 恢復、直到最後一個可用的歸檔日誌為止。

    RMAN> run {
    2> set until sequence=11;
    3> recover database;
    4> }
    
    executing command: SET until clause
    
    Starting recover at 22-MAR-24
    using channel ORA_DISK_1
    
    starting media recovery
    
    archived log for thread 1 with sequence 4 is already on disk as file /nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_4__9y6gn5co_.arc
    archived log for thread 1 with sequence 5 is already on disk as file /nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_5__9y7p68s6_.arc
    archived log for thread 1 with sequence 6 is already on disk as file /nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_6__9y8ygtss_.arc
    archived log for thread 1 with sequence 7 is already on disk as file /nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_7__9ybjdp55_.arc
    archived log for thread 1 with sequence 8 is already on disk as file /nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_8__9yctxjgy_.arc
    archived log for thread 1 with sequence 9 is already on disk as file /nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_9__9yfrj0b1_.arc
    archived log for thread 1 with sequence 10 is already on disk as file /nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_10__9yomybbc_.arc
    archived log file name=/nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_4__9y6gn5co_.arc thread=1 sequence=4
    archived log file name=/nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_5__9y7p68s6_.arc thread=1 sequence=5
    archived log file name=/nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_6__9y8ygtss_.arc thread=1 sequence=6
    archived log file name=/nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_7__9ybjdp55_.arc thread=1 sequence=7
    archived log file name=/nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_8__9yctxjgy_.arc thread=1 sequence=8
    archived log file name=/nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_9__9yfrj0b1_.arc thread=1 sequence=9
    archived log file name=/nfsanf/archlog/NTAP1/archivelog/2024_03_22/o1_mf_1_10__9yomybbc_.arc thread=1 sequence=10
    media recovery complete, elapsed time: 00:01:17
    Finished recover at 22-MAR-24
    
    RMAN> exit
    
    
    Recovery Manager complete.
    註 若要加快還原速度、請啟用具有 recovery _parallity 參數的平行階段作業、或在資料庫還原的恢復命令中指定平行度: RECOVER DATABASE PARALLEL (DEGREE d INSTANCES DEFAULT);。一般而言、平行度應等於主機上的 CPU 核心數。
  18. 結束 RMAN 、以 Oracle 使用者身分透過 sqlplus 登入 Oracle 、以開啟資料庫、並在未完成還原後重設記錄。

    SQL> select name, open_mode from v$database;
    
    NAME      OPEN_MODE
    --------- --------------------
    NTAP1     MOUNTED
    
    SQL> select instance_name, host_name from v$instance;
    
    INSTANCE_NAME
    ----------------
    HOST_NAME
    ----------------------------------------------------------------
    NTAP1
    ora-02
    
    
    SQL>
    
    
    SQL> select member from v$logfile;
    
    MEMBER
    --------------------------------------------------------------------------------
    /u03/orareco/NTAP1/onlinelog/redo03.log
    /u03/orareco/NTAP1/onlinelog/redo02.log
    /u03/orareco/NTAP1/onlinelog/redo01.log
    
    SQL> alter database rename file '/u03/orareco/NTAP1/onlinelog/redo01.log' to '/nfsanf/oracopy/redo01.log';
    
    Database altered.
    
    SQL> alter database rename file '/u03/orareco/NTAP1/onlinelog/redo02.log' to '/nfsanf/oracopy/redo02.log';
    
    Database altered.
    
    SQL> alter database rename file '/u03/orareco/NTAP1/onlinelog/redo03.log' to '/nfsanf/oracopy/redo03.log';
    
    Database altered.
    
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL> show pdbs
    
        CON_ID CON_NAME                       OPEN MODE  RESTRICTED
    ---------- ------------------------------ ---------- ----------
             2 PDB$SEED                       READ ONLY  NO
             3 NTAP1_PDB1                     READ WRITE NO
             4 NTAP1_PDB2                     READ WRITE NO
             5 NTAP1_PDB3                     READ WRITE NO
  19. 驗證還原至新主機的資料庫結構、以及我們在主要 VLDB 故障之前插入的測試列。

    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-1_1t2m9nij
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-3_1u2m9nog
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-4_1v2m9nu6
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-5_282m9oem
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-6_242m9oan
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-7_2c2m9ofn
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-8_292m9oem
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-9_252m9oc5
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-10_212m9o52
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-11_202m9o22
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-12_2d2m9ofs
    
    NAME
    --------------------------------------------------------------------------------
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-13_262m9oca
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-14_222m9o53
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-15_2a2m9of6
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-16_2e2m9og8
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSTEM_FNO-17_272m9oel
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SYSAUX_FNO-18_232m9oa8
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-UNDOTBS1_FNO-19_2b2m9ofn
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-USERS_FNO-20_2f2m9og8
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-21_1h2m9cap
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-22_1i2m9cap
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-23_1j2m9cap
    
    NAME
    --------------------------------------------------------------------------------
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-24_1k2m9cap
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-25_1l2m9g3u
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-26_1m2m9g9j
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-27_1n2m9gcg
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-28_1o2m9gd4
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-29_1p2m9ju6
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-30_1q2m9k7a
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-31_1r2m9kfk
    /nfsanf/oracopy/data_D-NTAP1_I-2441823937_TS-SOE_FNO-32_1s2m9kgg
    
    31 rows selected.
    
    SQL> select member from v$logfile;
    
    MEMBER
    --------------------------------------------------------------------------------
    /nfsanf/oracopy/redo03.log
    /nfsanf/oracopy/redo02.log
    /nfsanf/oracopy/redo01.log
    
    SQL> select name from v$controlfile;
    
    NAME
    --------------------------------------------------------------------------------
    /nfsanf/oracopy/NTAP1.ctl
    
    SQL> alter session set container=ntap1_pdb1;
    
    Session altered.
    
    SQL> select * from test;
    
            ID
    ----------
    DT
    ---------------------------------------------------------------------------
    EVENT
    --------------------------------------------------------------------------------
             1
    21-MAR-24 03.15.03.000000 PM
    test oracle incremental merge switch to copy
    
             2
    22-MAR-24 02.22.06.000000 PM
    test recovery on a new Azure VM host with image copy on ANF
  20. 丟棄無效的 tempfiles 並將新的 tempfiles 新增至暫存資料表空間。

    SQL> select name from v$tempfile;
    
    NAME
    --------------------------------------------------------------------------------
    /u02/oradata/NTAP1/NTAP1_pdb1/temp01.dbf
    /u02/oradata/NTAP1/NTAP1_pdb1/temp02.dbf
    
    SQL> alter tablespace temp add tempfile '/nfsanf/oracopy/ntap1_pdb1_temp01.dbf' size 100M;
    
    Tablespace altered.
    
    SQL> select name from v$tempfile;
    
    NAME
    --------------------------------------------------------------------------------
    /u02/oradata/NTAP1/NTAP1_pdb1/temp01.dbf
    /u02/oradata/NTAP1/NTAP1_pdb1/temp02.dbf
    /nfsanf/oracopy/ntap1_pdb1_temp01.dbf
    
    SQL> alter database tempfile '/u02/oradata/NTAP1/NTAP1_pdb1/temp01.dbf' offline;
    
    Database altered.
    
    SQL> alter database tempfile '/u02/oradata/NTAP1/NTAP1_pdb1/temp01.dbf' drop;
    
    Database altered.
    
    SQL> alter database tempfile '/u02/oradata/NTAP1/NTAP1_pdb1/temp02.dbf' offline;
    
    Database altered.
    
    SQL> alter database tempfile '/u02/oradata/NTAP1/NTAP1_pdb1/temp02.dbf' drop;
    
    Database altered.
    
    SQL> select name from v$tempfile;
    
    NAME
    --------------------------------------------------------------------------------
    /nfsanf/oracopy/ntap1_pdb1_temp01.dbf
    
    SQL>
  21. 其他恢復後工作

    - Add ANF NFS mount to fstab so that the NFS file system will be mounted when DB server host rebooted.
    
            As azureuser, sudo vi /etc/fstab and add following entry:
    
            172.30.136.68:/ora-01-u02-copy       /nfsanf        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.

如此即可完成 Oracle VLDB 資料庫從 ANF NFS 檔案系統上的備份映像複本還原至備用 DB 伺服器主機。

何處可找到其他資訊

若要深入瞭解本文件所述資訊、請參閱下列文件及 / 或網站: