免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2551 | 回复: 4
打印 上一主题 下一主题

各位老大,问一个informix备份的问题.急!!!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-22 11:19 |只看该作者 |倒序浏览
在用onbar -b -l备份逻辑日志的时候,发生报错,错误信息如下:

2008-09-22 10:17:07 278548  229552 Begin backup logical log 25274.
2008-09-22 10:17:11 278548  229552 Completed backup logical log 25274 (Storage
Manager copy ID: 1222049827 1222049843).
2008-09-22 10:17:11 278548  229552 Begin backup logical log 25275.
2008-09-22 10:17:15 278548  229552 Completed backup logical log 25275 (Storage
Manager copy ID: 1222049831 122204984.
2008-09-22 10:17:15 278548  229552 Begin backup logical log 25276.
2008-09-22 10:17:16 278548  229552 Unable to get logical log backup data from t
he database server: buc_fe.c : Archive API processing failed at line 541 for msg
type.
2008-09-22 10:17:16 278548  229552 (-43080) Process 278548 received signal 13.
Process will exit after cleanup.
2008-09-22 10:18:36 278548  229552 SQL -349    Database not selected yet.
2008-09-22 10:18:37 278548  229552 /informix/bin/onbar_d complete, returning 13
0 (0x82)


我是做备份的,对数据库不太熟,请问这个报错是什么原因引起的?数据库肯定是开着的.

论坛徽章:
0
2 [报告]
发表于 2008-09-22 22:39 |只看该作者
楼主能教教我ONbar怎么用不。。想学习这个备份

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-09-02 06:20:00数据库技术版块每日发帖之星
日期:2016-02-07 06:20:00
3 [报告]
发表于 2008-09-23 09:06 |只看该作者

关注中....

关注中.... 请有经验的高手支持啦

论坛徽章:
0
4 [报告]
发表于 2008-09-24 12:51 |只看该作者
数据库重启之后就可正常备份,没有任何问题了,真事匪夷所思,到现在还不知道报错的真正原因....继续等高手指点.谢谢!

论坛徽章:
0
5 [报告]
发表于 2008-09-24 12:54 |只看该作者

回复 #2 hakajawa 的帖子

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


转自:http://blog.chinaunix.net/u/31/showart.php?id=500158
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP