• Products
    • View all products
    • Free trials
    • Buy online
    • Product lines
      • ApexSQL
      • Change Auditor
      • Enterprise Reporter
      • Foglight Database Monitoring
      • Foglight Evolve
      • KACE
      • Metalogix
      • Migration Manager
      • NetVault Backup
      • One Identity
      • QoreStor
      • Quest On Demand
      • Rapid Recovery
      • Recovery Manager
      • RemoteScan
      • SharePlex
      • Spotlight
      • Stat
      • Toad
    • Featured products
      • Cloud Management
        • Cloud Access Manager
        • Foglight for Virtualization, Enterprise Edition
        • Identity Manager
        • On Demand Migration for Email
        • Quest On Demand
        • Rapid Recovery
      • Data Protection
        • Foglight for Virtualization
        • NetVault
        • NetVault for Office 365
        • QorePortal
        • QoreStor
        • Rapid Recovery
        • vRanger
      • Database Management
        • Foglight for Databases
        • Litespeed for SQL Server
        • SharePlex
        • Spotlight SQL Server Enterprise
        • Toad Data Point
        • Toad DevOps Toolkit
        • Toad Edge
        • Toad for Oracle
        • Toad for SQL Server
      • Identity & Access Management
        • Active Roles
        • Defender
        • Identity Manager
        • Identity Manager Data Governance
        • One Identity Safeguard
        • Password Manager
        • Privileged Access Suite for Unix
        • Starling Connect
        • Starling Two-Factor Authentication
        • syslog-ng
      • Microsoft Platform Management
        • Active Administrator
        • Change Auditor
        • Enterprise Reporter
        • GPOADmin
        • InTrust
        • Metalogix
        • Migration Manager
        • On Demand Migration for Email
        • Quest On Demand
        • Recovery Manager
      • Performance Monitoring
        • Foglight Capacity Director
        • Foglight Hybrid Cloud Manager
        • Foglight for Databases
        • Foglight for Operating Systems
        • Foglight for Oracle
        • Foglight for PostgreSQL
        • Foglight for SQL Server
        • Foglight for Storage Management
        • Foglight for Virtualization
        • Spotlight on SQL Server
      • Unified Endpoint Management
        • Desktop Authority Management Suite
        • KACE Cloud Mobile Device Manager
        • KACE Desktop Authority
        • KACE Privilege Manager
        • KACE Systems Deployment Appliance
        • KACE Systems Management Appliance
        • RemoteScan
  • Solutions
    • View all Solutions
    • Industries
      • Education
      • Energy
      • Federal Government
      • Financial Services
      • Healthcare
      • State & Local Government
    • Platforms
      • Active Directory
      • Cisco
      • DB2
      • Exchange
      • Google
      • Hyper-v
      • Lotus Notes
      • OneDrive for Business
      • Office 365
      • Oracle
      • SAP/Sybase
      • SharePoint
      • SQL Server
      • Teams
      • Unix/Linux
      • VMware
      • Windows Server
    • Cloud Management
    • Data Protection
      • Overview
      • Backup & Recovery
      • Cloud Management
      • Deduplication & Compression
      • Disaster Recovery
      • Office 365 Data Protection
      • Virtualization Management
    • Database Management
      • Overview
      • Administration
      • Cloud Migration
      • Data Preparation and Provisioning
      • Development
      • DevOps
      • Performance Monitoring
      • Replication
      • Supported Platforms
        • IBM DB2
        • MySQL
        • Oracle
        • PostgreSQL
        • SAP Solutions
        • SQL Server
    • GDPR Compliance
    • Identity & Access Management
      • Overview
      • Identity Administration
      • Identity Governance
      • Privileged Access Management
      • AD Account Lifecycle Management
      • Access Control
      • Cloud
      • Log Management
    • Microsoft Platform Management
      • Overview
      • Mergers & Acquisitions
      • Migration & Consolidation
      • Office 365 Migration & Management
      • Security & Compliance
      • Windows Backup & Recovery
      • Supported Platforms
        • Active Directory
        • Cisco
        • Exchange
        • Google
        • Groupwise
        • Lotus Notes
        • Office 365
        • OneDrive for Business
        • SharePoint
        • SQL Server
        • Teams
        • Unix/Linux
        • Windows Server
    • Performance Monitoring
      • Overview
      • Database Performance Monitoring
      • Operating System Monitoring
      • Storage Performance & Utilization Management
      • Supported Platforms
        • Active Directory
        • DB2
        • Exchange
        • Java
        • Hyper-V
        • .NET
        • Oracle
        • SAP/Sybase
        • Storage
        • SQL Server
        • VMware
    • Unified Endpoint Management
      • Overview
      • Endpoint Compliance
      • Endpoint Security
      • Endpoint Visibility
      • Industries
        • Education
        • Healthcare
      • Supported Platforms
        • Internet of things
        • Microsoft® Windows
        • MAC
        • UNIX/LinuX
  • Resources
    • Blogs
      • Data Protection
      • Database Management
      • IT industry Insights
      • IT Ninja
      • Microsoft Platform Management
      • Performance Monitoring
      • Toad World Blog
      • Unified Endpoint Management
    • Customer Stories
    • Documents
    • Events
    • Webcasts
    • Technical Documentation
    • Videos
    • Whitepapers
  • Trials
  • Services
    • Consulting Services
      • Overview
      • Microsoft Platform Services
      • Data Protection Services
      • Unified Endpoint Management
      • Performance Monitoring Services
      • Database Management Services
    • Educational Services
    • Support Services
  • Support
    • Support Home
    • By Product
      • All Products
      • AppAssure
      • Archive Manager
      • Change Auditor
      • Desktop Authority
      • DR Series
      • Foglight
      • KACE
      • Migration Manager
      • NetVault
      • Rapid Recovery
      • SharePlex
      • Toad
      • vRanger
    • Contact Support
      • Overview
      • Customer Service
      • Licensing Assistance
      • Renewal Assistance
      • Technical Support
    • Download Software
    • Knowledge Base
    • My Account
      • My Products
      • My Service Requests
      • My Licenses
      • My Groups
      • My Profile
    • Policies & Procedures
    • Consulting Services
      • Microsoft Platform Management
      • Data Protection
      • Unified Endpoint Management
      • Performance Monitoring
      • Database Management
    • Technical Documentation
    • Educational Services
    • User Forums
    • Video Tutorials
  • Partners
    • Overview
    • Partner Circle Log In
    • Become a Partner
    • Find a Partner
    • Partner Community
  • Blogs
    • IT Industry Insights
    • Quest Solution Blogs
      • Data Protection
      • Database Management
      • ITNinja
      • Microsoft Platform Management
      • Performance Monitoring
      • Toad World Blog
      • Unified Endpoint Management
  • Forums
  • 製品情報
    • すべての製品情報を見る
    • Change Auditor
    • Foglight
    • KACE
    • Metalogix
    • Migration Manager
    • Migrator for Notes to SharePoint
    • NetVault Backup
    • On Demand Migration for Email
    • QoreStor
    • Rapid Recovery
    • Recovery Manager
    • SharePlex
    • Spotlight
    • Toad
  • ソリューション
    • すべてのプラットフォームを見る
    • クラウド管理
    • GDPRコンプライアンス
    • データ保護
      • 概要
      • クラウド管理
      • ディザスタリカバリ
      • バックアップとリカバリ
      • Office 365 データ保護
      • 仮想化管理
      • 重複除外と複製
    • データベース管理
      • 概要
      • DevOps
      • データの準備と分析
      • データベースのクラウド移行
      • データベースパフォーマンス監視
      • データベース管理
      • データベース複製ソフトウェアツール
    • 統合エンドポイント管理
      • 概要
      • エンドポイントコンプライアンス
      • エンドポイントセキュリティ
      • エンドポイントの可視化
    • Microsoftプラットフォーム管理
      • 概要
      • ハイブリッドActive Directoryのセキュリティとガバナンス
      • Microsoftプラットフォームの移行計画と統合
      • セキュリティとコンプライアンス
      • 情報アーカイブおよびストレージ管理ソリューション
      • Windowsのバックアップとリカバリ
      • Microsoft Serverのパフォーマンスと可用性
      • レポート作成機能
      • グループポリシーと権限
    • パフォーマンス監視
  • サービス
    • コンサルティングサービス
      • 概要
      • Microsoftプラットフォーム管理
      • データ保護
      • 統合エンドポイント管理
      • パフォーマンス監視
      • データベース管理
    • トレーニングと認定資格
    • サポートサービス
  • サポート
    • サポートホーム
    • 製品で検索
      • All Products
      • AppAssure
      • Archive Manager
      • Change Auditor
      • Desktop Authority
      • DR Series
      • Foglight
      • KACE
      • Migration Manager
      • NetVault
      • Rapid Recovery
      • SharePlex
      • Toad
      • vRanger
    • お問い合わせ
      • すべて
      • カスタマサービス
      • ライセンス アシスタンス
      • 更新のアシスタンス
      • 技術サポート
    • コミュニティフォーラム
    • ソフトウェアのダウンロード
    • ナレッジベ%E3%83%BCス
    • マイアカウント
      • マイ プロダクト
      • Myサービスリクエスト
      • マイ ライセンス
      • マイ グループ
      • マイ プロファイル
    • ポリシーおよび手順
    • コンサルティングサービス
      • Microsoftプラットフォーム管理
      • データ保護
      • 統合エンドポイント管理
      • パフォーマンス監視
      • データベース管理
    • リリースノートおよびガイド
    • 教育サービス
    • ビデオチュートリアル
  • トライアル
  • パートナー
    • 概要
    • Partner Circleへのログイン
    • パートナーになる
    • Find a Partner
    • パートナーコミュニティ
  • コミュニティ
Quest Community
Quest Community
  • Site
  • User
  • Site
  • Search
  • User
Quest Software | One Identity Japan ホーム
Quest Software | One Identity Japan ホーム
Data Protection - Wiki 第7回 Oracle RMAN APMでバックアップおよび、特定表領域のリカバリ
    • New
    • -データ保護 - Wiki
      • +NetVault 13
      • -NetVault Backup
        • NetVault 販売代理店/パートナー
        • -NetVault 講座
          • +一からはじめるNetVault (Linux編)
          • -Oracleバックアップ虎の巻 (Linux編)
            • 第1回 まずは、演習環境の準備をしよう!
            • 第2回 アーカイブログモードの設定をしよう!
            • 第3回 Oracle Online APMによるバックアップと、特定表領域のリカバリ
            • 第4回 SYSTEM表領域と制御ファイルのリカバリ
            • 第5回 Oracle RMAN APMのインストールと設定
            • 第6回 Oracle RMAN APMのオプションとライセンスの関係
            • 第7回 Oracle RMAN APMでバックアップおよび、特定表領域のリカバリ
            • 第8回 Oracle RMAN APMによるSYSTEM表領域および制御ファイルのリカバリ
            • 第9回 Oracle RMAN APM使用時の複数チャネルとリカバリカタログの活用
            • 第10回 Oracleに対応した様々なソリューション
          • +今すぐできるSQL Serverバックアップ
          • +オープンソースLAMPとLAPPのためのバックアップ構築塾
          • +Oracleバックアップ虎の巻 (Windows編)
          • +Oracleバックアップ虎の巻 (RAC編)
          • +一からはじめるNetVault Backup (Windows編)
          • +NetVault BMR (VaultDR) 講座
        • NetVault製品ライフサイクルについて
        • +NetVault Tips!
        • +NetVault Backup 簡単設定・操作ガイド
        • +NetVault product information FAQ
        • NetVaultBackupコンパチビリティガイド(日本サイト)
        • +Plugin概要
        • 【ブログ Back number】一からはじめるNetVault Backup
      • +Rapid Recovery
      • DL series(販売終了)
      • +DR series(販売終了)
      • +vRanger
      • Backup Disaster Recovery Suite
      • +【メルマガ back number】
      • +QoreStor

    第7回 Oracle RMAN APMでバックアップおよび、特定表領域のリカバリ

    >> はじめに
     

    前回は、Oracle RMAN APMの詳細なオプションについてご紹介しました。今回は実際にバックアップ、リストア、リカバリまでの一通りの流れを見ていきます。以前Oracle Online APMをご紹介した際に、基本的な確認等について触れていますので、今回詳細は一部割愛させて頂きます。

    >> 実際にバックアップしてみる
     

    まずは、一切のオプションを変更しないでテストしてみます。また、テストではリカバリカタログは使用せずに制御ファイルを使用しています。データベース以下に表示されるすべての項目にチェックを入れて、バックアップジョブを作成します。

    ジョブを実行後、ジョブ管理のジョブ名をダブルクリックすると、詳細な進行状況が表示されるのは、Oracle Online APMの場合と同じです。

    しかしながら、ジョブはRMAN内部で管理されるバックアップピースという単位で管理され、表領域、アーカイブログファイルなど、種別にその進行状況が表示されます。

    Oracle RMAN APMの内部では、対象やオプションの指定により内部的にRMANのコマンドが実行されていますが、もしそれらの詳細を見たい場合は、ジョブの右リックメニューからログ詳細を選択し、ログの中身を確認すると良いでしょう。

    ログ画面だけで見るのではなく、テキスト出力したい場合には、ログを表示させた状態で、ファイルへのログダンプアイコンを選択すると、テキストファイルへの出力も可能です。例えば、形式をテキストにし、ファイル名を"ora_backup.txt"とすると"/usr/netvault/logs/dumps/text/ora_backup.txt"としてログがダンプされます。


    バックアップ・データは、すべてバックアップピースによって管理され、NetVault上からはリストア画面を開くと、詳細な確認ができるようになっています。

    バックアップピースはRMANによって管理されているので、もちろんRMANの"list backup"コマンドを使用しても詳細な確認ができます。NetVault側では、データとメディアの対応がよくわかりますが、Oracle的な状況の確認には、RMANからコマンドを使用すると良いでしょう。

    [oracle@ora10g oracle]$ rman nocatalog target /
    
    Recovery Manager: Release 10.1.0.2.0 - Production
    
    Copyright (c) 1995, 2004, Oracle.  All rights reserved.
    
    ターゲット・データベース: O10G (データベースID=4238232585)に接続されました
    リカバリ・カタログのかわりにターゲット・データベース制御ファイルを使用しています
    RMAN> list backup;
    
    
    バックアップ・セットのリスト
    ===================
    
    BS Key  Type LV Size       Device Type Elapsed Time 終了時刻
    ------- ---- -- ---------- ----------- ------------ --------
    7       Full    531M       SBT_TAPE    00:01:24     05-04-04
            BPキー: 7   ステータス: AVAILABLE  圧縮: NO  タグ: TAG20050404T010014
            ハンドル: ora10g:#240:ora10g:7_554691615:O10G_1112544012   メディア:
      バックアップ・セット7のデータ・ファイルのリスト
      File LV Type Ckp SCN    Ckp時刻  Name
      ---- -- ---- ---------- -------- ----
      1       Full 400910     05-04-04 /opt/oracle/oradata/o10g/system01.dbf
      2       Full 400910     05-04-04 /opt/oracle/oradata/o10g/undotbs01.dbf
      3       Full 400910     05-04-04 /opt/oracle/oradata/o10g/sysaux01.dbf
      4       Full 400910     05-04-04 /opt/oracle/oradata/o10g/users01.dbf
      5       Full 400910     05-04-04 /opt/oracle/oradata/o10g/example01.dbf
    
    BS Key  Type LV Size       Device Type Elapsed Time 終了時刻
    ------- ---- -- ---------- ----------- ------------ --------
    8       Full    2M         SBT_TAPE    00:00:03     05-04-04
            BPキー: 8   ステータス: AVAILABLE  圧縮: NO  タグ: TAG20050404T010014
            ハンドル: ora10g:#240:ora10g:8_554691700:O10G_1112544012   メディア:
      含まれている制御ファイル: Ckp SCN: 401556       Ckp時間: 05-04-04
      SPFILEも含まれます: 修正時間: 05-03-06
    
    BSキー  サイズ       デバイス・タイプ経過時間終了時刻
    ------- ---------- ----------- ------------ --------
    9       22M        SBT_TAPE    00:00:05     05-04-04
            BPキー: 9   ステータス: AVAILABLE  圧縮: NO  タグ: TAG20050404T010144
            ハンドル: ora10g:#240:ora10g:9_554691704:O10G_1112544012   メディア:
    
      バックアップ・セット9のアーカイブ・ログのリスト
      Thrd Seq     Low SCN    Low時刻  Next SCN   Next Time
      ---- ------- ---------- -------- ---------- ---------
      1    10      394577     05-03-06 396316     05-03-06
      1    11      396316     05-03-06 397686     05-03-06
      1    12      397686     05-03-06 397691     05-03-06
      1    13      397691     05-03-06 400607     05-04-04
      1    14      400607     05-04-04 401572     05-04-04
      1    15      401572     05-04-04 401577     05-04-04
    
    BS Key  Type LV Size       Device Type Elapsed Time 終了時刻
    ------- ---- -- ---------- ----------- ------------ --------
    10      Full    2M         SBT_TAPE    00:00:02     05-04-04
            BPキー: 10   ステータス: AVAILABLE  圧縮: NO  タグ: TAG20050404T010153
            ハンドル: ora10g:#240:ora10g:10_554691713:O10G_1112544012   メディア:
      含まれている制御ファイル: Ckp SCN: 401593       Ckp時間: 05-04-04

     

    >> EXAMPLE表領域の障害
     

    では、単にバックアップしただけでは、テストの意味がありませんので、実際に障害を発生させて見ます。一番簡単な障害による確認には、Oracle Online APMの時と同様にEXAMPLE表領域を想定してみます。最初に、一応各表領域の状態を確認しておきます。

    SQL> COL NAME FORMAT A20
    SQL> select FILE#,DF.NAME,TS.NAME,STATUS from v$datafile DF,v$tablespace TS 
    where DF.TS#=TS.TS#; FILE# NAME NAME STATUS ---------- -------------------- -------------------- ------- 1 /opt/oracle/oradata/ SYSTEM SYSTEM o10g/system01.dbf 2 /opt/oracle/oradata/ UNDOTBS1 ONLINE o10g/undotbs01.dbf 3 /opt/oracle/oradata/ SYSAUX ONLINE o10g/sysaux01.dbf 4 /opt/oracle/oradata/ USERS ONLINE o10g/users01.dbf FILE# NAME NAME STATUS ---------- -------------------- -------------------- ------- 5 /opt/oracle/oradata/ EXAMPLE ONLINE o10g/example01.dbf SQL> select * from v$backup; FILE# STATUS CHANGE# TIME ---------- ------------------ ---------- -------- 1 NOT ACTIVE 0 2 NOT ACTIVE 0 3 NOT ACTIVE 0 4 NOT ACTIVE 0 5 NOT ACTIVE 0

    次に、mvコマンドによりEXAMPLE表領域のデータファイルをリネームし、障害を発生させます。

    [oracle@ora10g oracle]$ cd $ORACLE_BASE/oradata/o10g/
    [oracle@ora10g o10g]$ mv ./example01.dbf ./example01.dbf.backup

    そして、v$backupビューを確認すると、Oracle Onlineの時と同様に障害が確認できました。

    SQL> select * from v$backup;
    
         FILE# STATUS                CHANGE# TIME
    ---------- ------------------ ---------- --------
             1 NOT ACTIVE                  0
             2 NOT ACTIVE                  0
             3 NOT ACTIVE                  0
             4 NOT ACTIVE                  0
             5 CANNOT OPEN FILE            0

    Oracle Online APMの場合には、すべてコマンドによりリカバリ処理を行いましたが、Oracle RMAN APMでは、すべてGUIからリストア、リカバリ処理が行えます。

    まず、リストアしたい表領域を指定します。

    次に、リストア・オプションですが、各表領域に対してリストアする前と後に、希望の処理を行えるようになっています。

    • Alter tablespaces offline,before restore
      リストアを行う前に、リストア対象の表領域をオフラインにします。内部的には以下のコマンドがRMANより実行されます。
      sql "alter tablespace 表領域名 offline immediate";
    • Recover datafiles after restore
      リストア完了後に、リストア対象の表領域をリカバリします。内部的には以下のコマンドがRMANより実行されます。
      recover tablespace '表領域名';
    • After tablespaces online, after restore
      リカバリ後に、リストア対象の表領域をオンラインにします。内部的には以下のコマンドがRMANより実行されます。
      sql "alter tablespace 表領域名 online";

    これらのオプションを使用することにより、通常SQLコマンドによる、表領域の強制オフラインや、リストア後のリカバリ処理、オンライン化をシーケンシャルに実行可能になっています。

    次は、リストア時に使用するアカウントやパスワードですが、バックアップ時と異なる場合はもちろんのこと、同じ場合でも入力が必須となっていますので、うっかり忘れてリストアできない!なんてことがないように注意が必要です。リカバリカタログは使用していないため、空欄にしています。

    リストア時には、最初にメインのジョブが実行され、表領域の強制オフラインが実行された後に、子プロセスのように子ジョブが起動します。データのリストアが行われ、終了すると子ジョブは完了し、今度はメインでリカバリ処理、オンライン化が実行されます。

    一連の流れはシーケンシャルに実行され表面上わからないようになっていますが、バックアップの時と同様にログを見ることで、内部的に実行されている内容を確認することができます。

    すべてのリストアジョブが正常に完了したら、Oracleからのコマンド実行を一切必要とせずに、NetVaultのGUIからだけでリカバリが完了したということが確認できました。

    SQL> select * from v$backup;
    
         FILE# STATUS                CHANGE# TIME
    ---------- ------------------ ---------- --------
             1 NOT ACTIVE                  0
             2 NOT ACTIVE                  0
             3 NOT ACTIVE                  0
             4 NOT ACTIVE                  0
             5 NOT ACTIVE                  0

     

    >> 次回は・・・
     

    バックアップ/リカバリの上級編として、SYSTEM表領域や制御ファイルのリカバリと、リカバリカタログの使用や複数チャネルの利用について見ていきます。

    • Share
    • History
    • More
    • Cancel
    Related
    Recommended
    • Company
      • About Us
      • Buy
      • Contact Us
      • Careers
      • News
    • Resources
      • Industry Insights Blog
      • Communities
      • Customer Stories
      • Documents
      • Events
    • Support
      • Professional Services
      • Renew Support
      • Technical Support
      • Training & Certification
      • Support Services
    • Social Networks
      • Facebook
      • LinkedIn
      • Twitter
      • YouTube
    • © 2021 Quest Software Inc. ALL RIGHTS RESERVED.
    • Legal
    • Terms of Use
    • Privacy
    • Community Feedback & Support
    • 会社名
      • 会社情報
      • 購入
      • お問い合わせ
      • 採用情報
      • ニュース
    • リソース
      • ブログ
      • お客様の事例
      • ドキュメント
      • イベント
      • ビデオ
    • サポート
      • プロフェッショナルサービス
      • サポートの更新
      • テクニカルサポート
      • トレーニングと認定資格
      • サポートサービス
    • ソーシャルネットワーク
      • Facebook
      • Instagram
      • LinkedIn
      • Twitter
      • YouTube
    • © 2021 Quest Software Inc. ALL RIGHTS RESERVED.
    • 「法務」
    • ご利用規約
    • 個人情報保護方針
    • コミュニティのフィードバックとサポート