用途
rpyjob
コマンドは、入力または支援をリクエストするジョブに応答する場合に使用します。このタイプのジョブを表示するには、lsjobコマンドで--inputrequest
を指定します。ジョブからのリクエスト内容を確認するには、catxcrコマンドを実行します。
前提条件
別のOracle Secure Backupユーザーのジョブのプロンプトに応答するには、所有者を問わないジョブの変更(modify any job, regardless of its owner)権を備えている必要があります。自身のジョブのプロンプトに応答するには、ユーザーが所有するジョブの変更(modify any jobs owned by user)権を備えている必要があります。
構文
rpyjob::=
rpyjob --reply/-r text job-id...
意味
プロンプトに対する応答テキストを指定します。値に空白を含める場合は、テキストを引用符で囲みます。
応答を送信するジョブのIDを指定します。
例
例2-143 支援をリクエストしているジョブに関する情報の表示
この例では、lsjobを使用して支援をリクエストしているジョブを表示し、その後で、catxcrを実行してジョブadmin/7.1
の記録を表示しています。
記録では、バックアップ・ジョブに使用可能なテープがテープ・ライブラリに存在しないことを示しています。catxcr
の実行後に[Enter]キーを押すと、obtoolプロンプトに戻ります。
ob> lsjob --inputrequest --long admin/7.1: Type: backup brhost2 Level: full Family: (null) Scheduled time: none State: running since 2008/05/09.12:38 Priority: 100 Privileged op: no Run on host: brhost2 Attempts: 1 ob> catxcr --tail 12 admin/7.1 End of tape has been reached. Please wait while I rewind and unload the tape. The Volume ID of the next tape to be written is VOL000005. The tape has been unloaded. obtar: couldn't perform auto-swap - can't find usable volume in library (OB device mgr) Enter a command from the following list: load <n> .. load the tape from element <n> into the drive unload <n> .. unload the tape from the drive into element <n> help .. display other commands to modify drive's database go .. to use the tape you selected quit .. to give up and abort this backup or restore :
例2-144 支援をリクエストしているジョブに関する情報の表示
この例では、ボリュームをテープ・ライブラリに挿入し、その後で、rpyjob
を2つのオプションload 3
およびgo
とともに使用して応答しています。lsjob
に対する--inputrequest
の指定では、NULL応答が生成されています。これは、入力をリクエストするジョブが存在しないことを意味しています。
ob> insertvol --library lib2 unlabeled 3 ob> rpyjob --reply "load 3" admin/7.1 ob> rpyjob --reply "go" admin/7.1 ob> lsjob --inputrequest ob>