「Avamar:Oracle Archivelogシーケンスをリストアする方法
Summary: Avamarを使用してOracleアーカイブログ シーケンスをリストアするには、次の手順を実行します。RMANコマンド「list backup」を使用して、アーカイブログ バックアップ ピース名とシーケンス番号を見つけます。Avtarフラグ ファイルまたはsendステートメントをバックアップ番号で更新して保存します。フラグ ファイルが正常に機能していることを確認します。RMANスクリプトを使用して、1つまたは複数のアーカイブログ シーケンスをリストアします。 ...
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
Avamarを使用してOracleアーカイブログ シーケンスをリストアするには、次の手順を実行します。
-
RMANコマンドを使用して、アーカイブログ バックアップ ピース名とこのバックアップ ピースのシーケンス番号を見つけます。
RMAN> list backup; -
リストアする必要がある一致するアーカイブログ バックアップ ピースのバックアップ番号をAvamar GUIで見つけます。Avamarのバックアップ日付とRMANリストのバックアップ出力を一致させてください。
-
次のパラメーターを追加して、Avtar フラグ ファイル (オプション 1 と 2) または send ステートメント (オプション 3) を更新します。そのパラメーターにバックアップ番号の値を入力し、フラグ ファイルを保存します。この例では、バックアップ番号 25 を使用します。
--incpartials
--labelnum=25 -
次のコマンドを使用して、Avtarフラグ ファイルが正常に動作することを確認します。
/usr/local/avamar/bin/avtar --backups --flagfile=/usr/local/avamar/var/avtar-flags.txt -
リストアで使用する前に、問題を修正します。
-
次に、2 つのスクリプトの例を示します。
-
両方のスクリプトごとに、環境ごとにこれら2つのパラメーターの値を設定します。「--prefix=oraver/sid/」つまり、12c = 12、11g = 11gです。次に、--flagfile=パラメーターは有効なavtarフラグ ファイルを指す必要があります。次のパスと名前は単なる例です。
--prefix=12/orcl/ -
1つのシーケンス番号をリストアします。
run { allocate channel c1 type sbt PARMS="SBT_LIBRARY=/usr/local/avamar/lib/libobk_avamar64.so"; send '"--prefix=12/orcl/" "--flagfile=/usr/local/avamar/var/avtar-flags.txt" "--bindir=/usr/local/avamar/bin" "--logfile=/tmp/archivelog_restore.log"'; set archivelog destination to '/tmp/'; # <-- set this path to whatever you wish. This is the target path where RMAN will restore the files too. restore archivelog sequence 10; release channel c1; } -
アーカイブログのシーケンスをリストアします。
run { allocate channel c1 type sbt PARMS="SBT_LIBRARY=/usr/local/avamar/lib/libobk_avamar64.so"; send '"--prefix=12/orcl/" "--flagfile=/usr/local/avamar/var/avtar-flags.txt" "--bindir=/usr/local/avamar/bin" "--logfile=/tmp/archivelog_restore.log"'; set archivelog destination to '/tmp/'; # <-- set this path to whatever you wish. This is the target path where RMAN will restore the files too. restore archivelog from sequence 10 until sequence 20; release channel c1; } -
avtarフラグ ファイルの代わりに、sendステートメントで--labelnumberを使用して1つのシーケンス番号をリストアします。
run { allocate channel c1 type sbt PARMS="SBT_LIBRARY=/usr/local/avamar/lib/libobk_avamar64.so"; send '"--prefix=12/orcl/" "--flagfile=/usr/local/avamar/var/avtar-flags.txt" "--bindir=/usr/local/avamar/bin" "--logfile=/tmp/archivelog_restore.log" "--labelnumber=25"'; set archivelog destination to '/tmp/'; # <-- set this path to whatever you wish. This is the target path where RMAN will restore the files too. restore archivelog sequence 10; release channel c1; } -
何らかの理由で問題が発生した場合は、次の情報を収集します。
- フラグ ファイルの内容
- リストアからのRMAN出力
- send ステートメントで --logfile= で構成されたログ
- RMAN「list backup archive all」から実行したコマンドの出力は、リストアに必要なシーケンスを示しています
Affected Products
Avamar, Avamar Client, Avamar Plug-in for OracleArticle Properties
Article Number: 000240231
Article Type: How To
Last Modified: 28 Oct 2024
Version: 1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.