> ccmsrv restore /device ¥¥.¥TAPE0
¥¥.¥TAPE0 は磁気テープ・デバイスです。
以下の警告が表示されます。
WARNING: this program will restore database server from an archive. All existing data will be destroyed.
続行を要求する場合は y と入力します。
以下のようなメッセージが 画面に表示されます。
Please mount tape 1 on ¥¥.¥TAPE0 and press Return to continue...
Archive Tape Information
Tape type: Archive Backup Tape
Online version: Informix Version 7.20.TC2
Archive date: Mon Dec 02 08:51:17 2006
User id: cougie
Terminal id: ASAL
Archive level: 0
Tape device: ¥¥.¥TAPE0
Tape blocksize (in k): 16
Tape size (in k): 10240
Tape number in series: 1
Space to restore:1 [rootdbs]
2 [log]
3 [ccm]
Archive Information
Informix-OnLine Copyright (C)1999-2006 Informix Software, Inc.
Initialization Time 11/26/06 10:53:31
System Page Size 4096
Version 4
Archive CheckPoint Time 12/02/06 08:51:19
Dbspaces
number flags fchunk nchunks flags owner name
1 1 1 1 N informix rootdbs
2 1 2 1 N informix log
3 1 3 1 N informix ccm
Chunks
chk/dbs offset size free bpages flags pathname
1 1 0 2560 1246 PO- D:¥ifmxdata¥rootdbs.000
2 2 0 2048 459 PO- D:¥ifmxdata¥log.000
3 3 0 2560 1111 PO- D:¥ifmxdata¥ccm.000
修復を続行するかどうかを尋ねられます。
Continue restore? (y/n)続行するには、y と入力します。
Do you want to back up the logs? (y/n)
n と入力します。
Restore a level 1 archive? (y/n)
この例では増分アーカイブを復元しているため、y と入力します。
Ready for level 1 tape
Please mount tape 1 on ¥¥.¥TAPE0 and press Return to continue
...
画面に以下のページの情報が表示されます。
Archive Tape Information
Tape type: Archive Backup Tape
Online version: Informix-OnLine Version 7.20.TC2
Archive date: Mon Dec 02 08:54:52 2006
User id: cougie
Terminal id: ASAL
Archive level: 1
Tape device: ¥¥.¥TAPE0
Tape blocksize (in k): 16
Tape size (in k): 10240
Tape number in series: 1
Restore a level 2 archive? (y/n)
この例では増分アーカイブを復元しているため、y と入力します。
Ready for level 2 tape
Please mount tape 2 on ¥¥.¥TAPE0 and press Return to continue ...
画面に以下の情報が表示されます。
Archive Tape Information
Tape type: Archive Backup Tape
Online version: Informix-OnLine Version 7.20.TC2
Archive date: Mon Dec 02 08:57:50 2006
User id: sue
Terminal id: ASAL
Archive level: 2
Tape device: ¥¥.¥TAPE0
Tape blocksize (in k): 16
Tape size (in k): 10240
Tape number in series: 2
Do you want to restore log tapes? (y/n)
n と入力します。
Program over.
Database server restored successfully.
> ccmsrv online