> 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