このチュートリアルでは、テストおよびトレーニングを目的として、Oracle Secure Backup(OSB)10.2のインストールおよび構成をおこなう方法について説明します(本番環境での使用を目的としたものではありません)。 このチュートリアルの完了は、Oracle Secure Backup 10.2に関するほかのチュートリアルすべての前提条件となります。
約1時間
このチュートリアルでは、以下のトピックについて説明します。
| 概要 | ||
| 前提条件 | ||
| Oracle Secure Backupソフトウェアのインストール | ||
| Oracle Enterprise Managerでの管理サーバーの登録 | ||
| Enterprise Managerにおける接続性のテスト | ||
| 新規OSBユーザーの定義と事前認可 | ||
| バックアップのためのデータベースの準備 | ||
| メディア・ファミリーの新規作成 | ||
| データベース・ストレージ・セレクタの作成 | ||
| まとめ | ||
| 関連情報 | ||
このアイコンの上にカーソルを置くと、すべてのスクリーンショットがロードし、表示されます。 (警告:この操作によって、同時にすべてのスクリーンショットがロードされるため、ご使用のインターネット接続によってはレスポンス時間が遅くなる場合があります)。
注:各手順に関連したスクリーンショットのみを表示する場合は、それぞれの手順にある各アイコンの上にカーソルを置いてください。
このチュートリアルでは、Oracle Secure Backup(OSB)のインストール方法と、Oracle Recovery Manager(Oracle RMAN)とのシームレスな統合を実現するためのOSBの構成方法について説明します。 ここでは、さまざまなインタフェースを使用し、そのすべてについて理解を深めることができるようにします。
Oracle Secure Backup 10.2に関するほかのすべてのチュートリアルでは、このチュートリアルの完了が前提条件となっています。
このチュートリアルを始める前に次のことを確認してください。
| 1. | Linux 32上のOracle Database 11gとOracle Enterprise Manager Database Consoleにアクセスできるか、またはインストール済みであること。 また、データベースをインストールしたときのSYS Oracleユーザーのパスワード(SYS_password)と、oracle OSユーザー・アカウント(host_password)を確認しておく必要があります。
|
| 2. | このデータベースのlistener.oraファイルに、静的なエントリがあること(これは、netmgrユーティリティを使用して確認できます)。 |
| 3. | サンプル・スキーマにアクセスできるか、またはインストール済みであること。 |
| 4. | Oracle Secure Backup 10.2ソフトウェアにアクセスできること。 このソフトウェアは、次のリンクからダウンロードできます。http://www.oracle.com/technology/software/products/database/oracle10g/index.html このチュートリアルでは、ダウンロードしたソフトウェアが/stageディレクトリでアクセス可能であり、このディレクトリ内で解凍されていることを前提としています。 また、rootユーザーの/u01ディレクトリに、このチュートリアルの実行時に作成するすべてのバックアップを保存できるだけの十分な容量が確保されているものとします。 このソフトウェアをインストールするには、rootユーザーのパスワードを確認しておく必要があります。 このチュートリアルのテストには、Oracle Secure Backup v10.2.0.2 for Linux x86(32-bitバージョン)を使用しています。
|
| 5. | osb10_2install.zipファイルを、作業ディレクトリ(\home\oracle)にダウンロードし、ファイルを解凍しておくこと。 |
このトピックでは、解凍およびステージングが完了したOracle Secure Backupソフトウェアのインストールをおこないます。
| 1. | rootユーザーとして以下のコマンドを実行し、OSBのホーム・ディレクトリを直接作成します。 # mkdir -p /usr/local/oracle/backup
|
| 2. | 以下のコマンドにより、作成したOSBホーム・ディレクトリに移動します。 # cd /usr/local/oracle/backup 注:適切な設定をおこなうには、以下に記載されているすべてのステップをこのディレクトリ内で実行することが重要です。
|
| 3. | 解凍ユーティリティが使用可能であることを確認します。 # ln -s /bin/gunzip /bin/uncompress
|
| 4. | OSBホーム・ディレクトリで、rootユーザーとしてOracle Secure Backupのインストールを開始します。 # /stage/setup Welcome to Oracle's setup program for Oracle Secure Backup. This
program loads Oracle Secure Backup software from the CD-ROM to a
filesystem directory of your choosing.
This CD-ROM contains Oracle Secure Backup version 10.2.0.2.0_linux32. Please wait a moment while I learn about this host... done. - - - - - - - - - - - - - - - - - - - - - - - - - - - 1. linux32 administrative server, media server, client - - - - - - - - - - - - - - - - - - - - - - - - - - -
Loading Oracle Secure Backup installation tools... done.
Using your previous obparameters file. The new file shipped with this
distribution of Oracle Secure Backup is called install/obparameters.new.
Loading linux32 administrative server, media server, client... done.
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Loading of Oracle Secure Backup software from CD-ROM is complete.
You may unmount and remove the CD-ROM.
Would you like to continue Oracle Secure Backup installation with
'installob' now? (The Oracle Secure Backup Installation Guide
contains complete information about installob.)
Please answer 'yes' or 'no' [yes]:
|
| 5. | yesと入力し、インストールを続行します。 Please answer 'yes' or 'no' [yes]: yes - - - - - - - - - - - - - - - - - - - - - - - - - - - Welcome to installob, Oracle Secure Backup's UNIX installation program. It installs Oracle Secure Backup onto one or more UNIX or Linux systems
on your network. (Install Oracle Secure Backup for Windows using the
CD-ROM from which you loaded this software.)
For most questions, a default answer appears enclosed in square brackets.
Press Enter to select this answer.
Please wait a few seconds while I learn about this machine... done. Have you already reviewed and customized install/obparameters for your
Oracle Secure Backup installation [yes]?
|
| 6. | パラメータのカスタマイズが完了していないため、noと入力します。 Have you already reviewed and customized install/obparameters for your
Oracle Secure Backup installation [yes]? no
Would you like to do this now [yes]?
|
| 7. | ここではデフォルトのインストールを実行しているので、再度noと入力します。 Would you like to do this now [yes]? no - - - - - - - - - - - - - - - - - - - - - - - - - - - Oracle Secure Backup is not yet installed on this machine. Oracle Secure Backup's Web server has been loaded, but is not yet configured. You can install this host one of three ways: (a) administrative server (the host will also be able to act as a media server or client) (b) media server (the host will also be able to act as a client) (c) client If you are not sure which way to install, please refer to the Oracle
Secure Backup Installation Guide. (a,b or c) [a]?
|
| 8. | まず、管理サーバーをインストールします。 インストールを実行するには、aと入力します。 If you are not sure which way to install, please refer to the Oracle
Secure Backup Installation Guide. (a,b or c) [a]? a
Beginning the installation. This will take just a minute and will produce
several lines of informational output.
Installing Oracle Secure Backup on edrsr4p1 (Linux version 2.6.9-55.0.0.0.2.ELsmp) You must now enter a password for the Oracle Secure Backup encryption
key store. Oracle suggests you choose a password of at least 8
characters in length, containing a mixture of alphabetic and numeric
characters.
Please enter the key store password: |
| 9. | 使用している環境に適したパスワードを選択します。パスワードは忘れないようにしてください。 キーストア・パスワードを決め、入力確認と合わせて2回入力します。 Please enter the key store password: keystore_password Re-type password for verification: keystore_password You must now enter a password for the Oracle Secure Backup 'admin' user. Please enter the admin password: |
| 10. | adminパスワードを決め、入力確認と合わせて2回入力します。 Please enter the admin password: admin_password Re-type password for verification: admin_password You should now enter an email address for the Oracle Secure Backup 'admin' Please enter the admin email address: |
| 11. | このチュートリアルでは電子メール通知を使用しないため、何も入力せずに[Enter]キーをクリックします。 インストールが続行されます。 generating links for admin installation with Web server updating /etc/ld.so.conf checking Oracle Secure Backup's configuration file (/etc/obconfig) setting Oracle Secure Backup directory to /usr/local/oracle/backup in /etc/obconfig setting local database directory to /usr/etc/ob in /etc/obconfig setting temp directory to /usr/tmp in /etc/obconfig setting administrative directory to /usr/local/oracle/backup/admin in /etc/obconfig protecting the Oracle Secure Backup directory creating /etc/rc.d/init.d/observiced activating observiced via chkconfig initializing the administrative domain ****************************** N O T E ******************************
On Linux systems Oracle recommends that you answer no to the next two
questions. The preferred mode of operation on Linux systems is to use
the /dev/sg devices for attach points as described in the 'ReadMe'
and in the 'Installation and Configuration Guide'.
Is host01 connected to any tape libraries that you'd like to use with
Oracle Secure Backup [no]?
|
| 12. | テープ・ライブラリとテープ・ドライブの接続については後述のステップで実行するため、ここではnoと2回入力します。 Is host01 connected to any tape libraries that you'd like to use with
Oracle Secure Backup [no]? no
Is host01 connected to any tape drives that you'd like to use with
Oracle Secure Backup [no]? no
Installation summary: Installation Host OS Driver OS Move Reboot Mode Name Name Installed? Required? Required? admin host01 Linux no no no Oracle Secure Backup is now ready for your use. # |
| 13. | rootユーザーとしてログオフします。 # exit $ |
このトピックでは、ワンタイム構成タスクを実行し、テープ・ライブラリやテープ・ドライブなどの基本要素が使用可能な状態にあることを確認する方法について説明していきます。
| 1. | oracle OSユーザーとして以下のコマンドを実行し、作業ディレクトリ(/home/oracle)に移動します。 $ cd /home/oracle |
| 2. | 必要なOracle by Example(OBE)構成ファイルがあることを確認するには、以下のコマンドを入力します。 $ ls c* config1_in.sh config1_out.sh config1.sh config2.txt |
| 3. | config1_out.shファイルのホスト名を置き換えるには、以下のように入力します。 $ ./config1.sh 指定したホスト名が表示されます。 この例では、"host01.example.com"を使用しています。 host01.example.com |
| 4. | メディア・サーバーのロールをホストに割り当て、OBEトレーニング環境用のデバイスを設定するには、config1_out.shファイルを実行し、各デバイスのパスワードを入力します。 $ ./config1_out.sh Password: admin_password Password: admin_password Password: admin_password Password: admin_password Password: admin_password Password: admin_password Password: admin_password Password: admin_password Password: admin_password 注:このチュートリアルでは、テスト用の仮想デバイスを(u01ディレクトリ内に)生成しますが、テープ・デバイスについてはエミュレートします。 Oracle Secure Backupでは、Oracle以外の仮想テープ・ドライブが多数サポートされていますが、OSBテストデバイスは本番環境には対応していません。
|
| 5. | obtoolにログインするには、以下のコマンドを入力します。 $ obtool Oracle Secure Backup 10.2.0.2.0 login: admin Password: admin_password ob> 注:ログインとパスワード入力のプロンプトが表示されない場合は、資格証明がまだ有効な状態にあります。 詳細については、このタスクの最後に記載されている注記を参照してください。
|
| 6. | ホストのロールすべてを表示するには、以下のように入力します。 ob> lshost
host01.example.com admin,mediaserver,client (via OB) in service
ob>
|
| 7. | 作成したデバイスを表示するには、以下のコマンドを入力します。 ob> lsdev
library vlib in service
drive 1 vdte1 in service
drive 2 vdte2 in service
drive 3 vdte3 in service
drive 4 vdte4 in service
library vlib2 in service
drive 1 vdrive1 in service
drive 2 vdrive2 in service
ob>
|
| 8. | テープ・ライブラリにボリュームを挿入するには、以下のコマンドを実行します(入力を避けたい場合は、 < /<your working directory>/config2.txtスクリプトを実行することもできます)。 ob> insertvol -L vlib -c 250 unlabeled 1-32 ob> insertvol -L vlib2 -c 250 unlabeled 1-14 または、以下を実行します。 ob> < /home/oracle/config2.txt
ob> # Only for test and training, not for production
ob> # OSB script, run as admin user
ob>
ob> insertvol -L vlib -c 250 unlabeled 1-32
ob> insertvol -L vlib2 -c 250 unlabeled 1-14ob>
ob>
|
| 9. | デフォルトのメディア・ファミリーの一覧を表示するには、以下を入力します。 ob> lsmf --long OSB-CATALOG-MF:
Write window: 7 days
Keep volume set: 14 days
Appendable: yes
Volume ID used: unique to this media family
Comment: OSB catalog backup media family
RMAN-DEFAULT:
Keep volume set: content manages reuse
Appendable: yes
Volume ID used: unique to this media family
Comment: Default RMAN backup media family
ob>
|
| 10. | ホスト名を変更し、新しいIPアドレスを追加するには、以下のように入力します。 renhost --nq host01.example.com host01
|
| 11. | 以下のコマンドを入力すると、obtoolセッションが終了します。 logout 注:logoutコマンドを使用すると、obtoolセッションが終了し、ログイン・トークンが破棄されるため、次にobtoolセッションを開始する際に、資格証明を入力するプロンプトが表示されます。プロンプトには、場合によって"Warning:auto-login failed - login token has expired"というメッセージが表示されます。 exitコマンドまたはquitコマンドを使用してobtoolセッションを終了した場合、ログイン・トークンは、Webtool→Configure→Defaults and Policies→Security→Login token duration:15 minutes(default)の指定に基づいて保存されます。 |
| 1. | Oracle Enterprise Manager Database Consoleにアクセスするには、適切なURLが必要となります。また、このツールが実行されていることを確認する必要もあります。 この確認をおこなうには、oracle OSユーザーとして、端末ウィンドウで以下を入力します。 $ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://host01.example.com:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.1.0/db_1/host01.example.com_orcl/sysman/log
|
| 2. | Webブラウザを開き、以下の形式でURLを入力します。 https://<host machine>:<port>/em
|
| 3. | Enterprise ManagerのLoginページで、ユーザー名としてSYSを入力し、自分のSYS_passwordを入力してから、Connect Asで「SYSDBA」を選択します。 「Login」をクリックします。
|
| 4. | Oracle Databaseのホームページで、「Availability」タブをクリックします。
|
| 5. | Availabilityページで、「Oracle Secure Backup Device and Media」をクリックします。
|
| 6. | このタスクを初めて実行すると、管理サーバーの"Add Administrative Server"ページが開きます。 ここで次の値を入力し、「OK」をクリックします。 Oracle Secure Backup Home: /usr/local/oracle/backupUsername: admin Password: admin_password
|
| 7. | ユーザー名としてoracleを入力し、自分のhost_passwordを入力してから、「Save as Preferred Credential」を選択して「OK」ボタンをクリックします。
|
| 8. | 登録した管理サーバーについて、Oracle Secure Backup Device and Media:Administrative Serverページが表示されます。
|
| 1. | Oracle Secure Backup Device and Media:Administrative Serverページで、DevicesセクションのViewドロップダウン・リストから「All Devices」を選択します。
|
| 2. | Devicesセクションに、ライブラリ・デバイスが表示されます。
|
| 3. | 「Name」列に表示されているプラス記号のアイコンをそれぞれクリックし、ライブラリを展開します。 すべてのデバイスが表示されます。
|
| 4. | デバイスのテストをおこなうには、Oracle Secure Backup Device and Media:Administrative Serverページで、ResourcesセクションのDevicesに対する「Manage」リンクをクリックします。
|
| 5. | Devicesページで、Actionsドロップダウン・リストから「Verify Connectivity」を選択します。
|
| 6. | Devicesページで「vlib」ライブラリを選択し、Actionsドロップダウン・リストの横にある「Go」ボタンをクリックします。
|
| 7. | 以下のような成功メッセージが表示されます。
|
| 8. | vlib2ライブラリの接続性を確認するには、このライブラリを選択し、「Verify Connectivity」アクションが選択された状態で、その横にある「Go」ボタンをクリックします。
|
| 9. | 以下のような成功メッセージが表示されます。
|
| 10. | 次のタスクに進むために「Database」タブをクリックします。
|
| 1. | Enterprise ManagerのAvailabilityページで、Oracle Secure Backupセクションの「File System Backup and Restore」を右クリックし、「Open Link in a New Tab」を選択します(ブラウザで使用可能となっている場合)。
|
| 2. | Oracle Secure Backup Loginページで、ユーザー名としてadminと入力し、自分のadmin_passwordを入力してから、「Login」をクリックします。
|
| 3. | OSBのホームページで、「Configure」タブをクリックします。
|
| 4. | Configureページで、Basicセクションの「Users」をクリックします。
|
| 5. | Configure:Usersページで、「Add」ボタンをクリックします。
|
| 6. | Configure:UsersページからNew Usersページを開き、以下の値の入力または選択をおこなってから、「Apply」をクリックします。 User: oraclePassword: host_password User class: oracle UNIX name: oracle UNIX group: dba NDMP server user: no 成功メッセージが表示されます。
|
| 7. | Configure:Usersページからoracleページを開き、「Preauthorized Access」をクリックします。
|
| 8. | Configure:Users→oracle→Preauthorized Accessの順にページを開き、以下の値の入力または選択をおこなってから、「Add」をクリックします。 Hosts: all hostsOS username:* Windows domain name: * Attributes: rman
|
| 9. | 成功メッセージが以下のような形式で表示されます。
|
| 10. | 「Logout」をクリックします。
|
次の2つのトピックは、密接に関連しています。 どちらについても、データベース準備の一部として必要となります。 このOBEでは、Enterprise Managerインタフェースでのタスクについて説明します(SQL*Plusなどのほかのインタフェースを選択することもできます)。
| データベース・バックアップのARCHIVELOGモードの有効化 | ||
| データベースの再起動 | ||
| 1. | Webブラウザで、Enterprise ManagerのLoginページを開き、ユーザー名としてSYSを入力し、自分のSYS_passwordを入力してから、Connect Asで「SYSDBA」を選択します。 「Login」をクリックします(詳細な手順は、Oracle Enterprise Managerでの管理サーバーの登録のステップ1、2、3を確認してください)。 |
| 2. | Oracle EMのホームページで、「Availability」タブをクリックします。
|
| 3. | Availabilityページで、Backup/Recoveryセクションの「Recovery Settings」をクリックします。
|
| 4. | Recovery Settingsページで、Media Recoveryセクションの「ARCHIVELOG Mode」を選択し、「Apply」をクリックします。
|
| 5. | Confirmationページで、「Yes」をクリックしてデータベースを再起動します。
|
| 1. | Restart Database:Specify Host and Target Database Credentialsページで、以下の値を入力および確認してから、「OK」をクリックします。 ホスト資格証明: データベース資格証明:
|
| 2. | Restart Database:Confirmationページで、「Yes」をクリックします。
|
| 3. | リフレッシュまたは問合せの再実行をおこなった場合に、エージェントへの接続が切断されると、以下のようなエラーが表示されることがあります。 このエラーは自動的に解決されます。 「OK」をクリックします。 そのあと、Restart Database:Activity Informationページが表示されます。
Oracle EMのホームページが表示されるまで「Refresh」をクリックします。 注:Enterprise ManagerのLoginページが表示された場合は、ユーザー名としてSYSを入力し、自分のSYS_passwordを入力してから、Connect Asで「SYSDBA」を選択します。 「Login」をクリックします。
|
| 4. | データベースのステータスがUp(稼動中)であることを確認します。
|
| 1. | OSB Webツールを(Oracle EMからではなく)直接開始する場合は、Webブラウザを開いて以下の形式でURLを入力します。 https://<host machine>/index.php Oracle Secure BackupのWebインタフェースにより、Oracle Secure Backup Loginページが表示され、URLが以下のように変更されます。 |
| 2. | Oracle Secure Backup Loginページで、ユーザー名としてadminと入力し、自分のadmin_passwordを入力してから、「Login」をクリックします。
|
| 3. | OSBのホームページで、右上隅の「Preferences」をクリックします。
|
| 4. | Extended command outputの設定で「On」を選択してから、「Apply」をクリックします。
「Apply」をクリックしても、ページは変更されません。 ここでの変更の結果は、後述のステップ7で確認できます。
|
| 5. | 既存のメディア・ファミリーの表示と編集、および新規メディア・ファミリーの作成をおこなうには、「Configure」タブをクリックします。
|
| 6. | 「Media Families」をクリックします。
|
| 7. | Configure:Media Familiesページで、まず既存のデフォルト・メディア・ファミリーを確認してから、「Add」ボタンをクリックして新規メディア・ファミリーを作成します。
|
| 8. | Configure:Media FamiliesページからNew Media Familiesページを開き、以下の値の入力および確認をおこなってから、「Apply」をクリックします。 Media Family: OFFSITE_7YVolume ID used: Unique to this media family Volume expiration: Time Managed Keep volume set: 7 years Appendable: yes Comment: Store for 7 years offsite - for compliance with XYZ law.
成功メッセージが表示されます。
|
| 9. | Configure:Media FamiliesからOFFSITE_7Yページを開き、ページ最下部までスクロールして拡張コマンド出力を確認します。
「OK」ボタンをクリックします。
|
| 10. | Configure:Media Familiesページに、新規に作成したOFFSITE_7Yメディア・ファミリーが表示されます。
|
| 11. | Configure:Media Familiesページで、「Add」ボタンをクリックして追加のメディア・ファミリーを作成します。
|
| 12. | Configure:Media FamiliesページからNew Media Familiesページを開き、以下の値の入力および確認をおこなってから、「Apply」をクリックします。 Media Family: offsite_testVolume ID used: Unique to this media family Volume expiration: Time Managed Keep volume set: 10 minutes Appendable: yes Comment: Edit test values later.
|
| 13. | 成功メッセージが表示されます。 「OK」をクリックします。
|
| 14. | Configure:Media Familiesページで、使用可能なメディア・ファミリーすべて(デフォルトおよび新規作成したメディア・ファミリー)を確認します。
|
最後の構成タスクとして、Enterprise Managerでのテープ・バックアップのテストとデータベース・ストレージ・セレクタの作成をおこないます。
ストレージ・セレクタの作成とテープ・バックアップのテストを実行するには、次の手順に従います。
| 1. | Webブラウザで、Enterprise ManagerのLoginページを開き、ユーザー名としてSYSと入力し、自分のSYS_passwordを入力してから、Connect Asで「SYSDBA」を選択します。 「Login」をクリックします(詳細な手順は、Oracle Enterprise Managerでの管理サーバーの登録のステップ1、2、3を確認してください)。 |
| 2. | Enterprise Mangerで、「Availabity」→「Backup Settings」(Backup/Recovery Setupセクション内)に移動します。
|
| 3. | テープの設定を入力して保存するには、以下の値を入力して「OK」をクリックします。 Tape Drives: 1
|
| 4. | データベース・ストレージ・セレクタを作成するには、Backup Settingsページで再入力をおこない、Backup Settings DeviceページのOracle Secure Backupセクションで「Configure」をクリックします。
|
| 5. | Administrative Server Loginページで以下の値の入力または確認をおこない、「OK」をクリックします。 Administrative Server: Your_host |
| 6. | Backup Storage Selectorsページで、「Add」をクリックします。
|
| 7. | Add Backup Storage Selectorページで以下の値を選択し、「OK」をクリックします。 Database Backup Types:Archive Logs、Auto Backup、Full、Incremental
|
| 8. | Backup Storage Selectorsページに成功メッセージが表示されます。 「Return」をクリックします。
|
| 9. | Backup Settings Deviceページで以下の値を入力または確認し、「Test Tape Backup」をクリックします。 Tape Drives: 1 使用しているシステム・リソースによっては、Processing:Test Tape Backupページが一時的に表示される場合があります。 |
| 10. | Backup Settings Deviceページで成功メッセージを確認し、「Logout」をクリックします。
|
このレッスンで学習した内容は次のとおりです。
| Oracle Secure Backupソフトウェアのインストール | ||
| Oracle Secure Backupの構成 | ||
| Oracle Enterprise Managerでの管理サーバーの登録 | ||
| Oracle Enterprise Managerにおける接続性のテスト | ||
| 新規OSBユーザーの定義と事前認可 | ||
| バックアップのためのデータベースの準備 | ||
| メディア・ファミリーの新規作成 | ||
| データベース・ストレージ・セレクタの作成 | ||
Oracle Secure Backupの詳細については、下記を参照してください。
| Oracle Technology Network(OTN)WebサイトのOracle Secure Backup 10.2 | ||
| OTN WebサイトのそのほかのOBE | ||
| デモンストレーション資料(viewlets) | ||
このアイコンの上にカーソルを置くと、すべてのスクリーンショットが非表示になります。