informix数据库onbar命令的具体用法

1174阅读 0评论2008-03-19 sdccf
分类:DB2/Informix

 

  onbar就是备份,在onconfig文件里面把tapedev 设成你的磁带设备。还有ltapedev也设成你的磁带设备。然后把onconfig中的onbar相关项目配置好。重起Informix Server,你的逻辑日志就会自动备份到你的磁带设备上了。然后, 你需要备份onbar -b -w, 需要恢复obar -r -p 或者 -l,还有一个很好的功能,onbar -t 时间,可以恢复到任意时间点。 
  如果要使用onbar,必须要有存储管理器,这一般是其它厂商的产品,informix和这些厂商都遵守XBSA协议,也就是相应的API接口.否则,只能使用ontape备份了.
另外,informix自己也带了一个简单的存储管理器,你可以参考
Informix Backup and Restore Guide, December 1999这本手册.  

/usr/informix/bin/onbar 

BACKUP:
=======
-b [-L ] [-f ] []
-b -w [-L ]
-b -F
-l [-c] [-s]
   -b backup
   -c backup current logical log
   -f pathname of file containing list of dbspaces, blobspaces
   -F fake backup
   -l backup full logical logs
   -L backup level: 0, 1, or 2
   -w whole system backup
   -s salvage logs
    list of dbspaces, blobspaces to backup 

RESTORE
========
-r [-e] [-t | -n ] [-f ] []
-r [-e] -p [-t ] [-f ] []
-r -l  [-t | -n ] [-f ] []
-r [-e] -w [-p] [-t | -n ]
-RESTART
   -e external restore
   -f pathname of file containing list of dbspaces, blobspaces
   -l logical restore
   -n last logical log to restore
   -p physical restore
   -r restore
   -t point in time to stop restore.
    list of dbspaces, blobspaces to restore
   -w whole system to restore
   -RESTART restart an interrupted restore
上一篇:安装Informix Dynamic Server For unixware 7
下一篇: Informix IDS2000 for linux安装及应用