免费注册 查看新帖 |

Chinaunix

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

sybase增量备份和恢复的问题 [复制链接]

论坛徽章:
5
未羊
日期:2013-09-05 17:46:19狮子座
日期:2014-01-06 14:40:28子鼠
日期:2014-01-21 15:19:17寅虎
日期:2014-02-07 17:59:08巨蟹座
日期:2014-03-05 16:17:19
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-08 09:38 |只看该作者 |倒序浏览
sybase11.0.3   想用增量备份试一下,sybase增量备份要先做一下全备,备份过程没问题,但是恢复的时候有个问题:
load tran testdbs from '/day/test.bak'
go
提示错误信息:
Msg 4305, Level 16, State 1:
Line 1:
Specified file 'dump device' is out of sequence. Current time stamp is May  8
2013  9:11AM while dump was from May  8 2013  9:14AM.
我的全库备份是在9:11的时候做的,增量备份手动添加了几条记录,是在9:14做的备份,为什么恢复的时候提示我数据库的时间戳在9:11,是因为我恢复的时候时间戳也变成了9:11吗?可是增量恢复的时候貌似都是要先做一个全库恢复然后再使用增量备份恢复,求解,网上找不到解决办法,官方文档写的太无语,看了好几遍都没看到solution,有人做过sybase的增量备份吗?
Error 4305

Severity

16
Message text

Specified file '%.*s' is out of sequence. Current time stamp is %S_DATE while dump was from %S_DATE.
Explanation

During a load transaction, Adaptive Server checks the timestamp on the dumped database and each dumped transaction log to determine whether the sequence is correct. If the load sequence of the transaction logs is incorrect, error 4305 occurs and the load fails.

If you are missing a transaction log dump, you can only restore up to the transaction log dump before the missing dump.

In addition, you cannot load multiple transaction log dumps that have been created with the no_truncate option. The no_truncate option assumes that nothing further will be done with the transaction log after that point: it is only useful for up-to-the-minute recovery of a database after failure of the data device. If you have used the no_truncate option and your database is still okay, do a dump database as soon as possible.

This error is serious as the load processing stops and the load transaction fails.

Action

Load the log backups in the same sequence in which they were made. Check your transaction log dumps to determine whether one was loaded out of order. If you find the correct dump, load it and continue with the rest of the dumps, in order.

Additional information

For more information, refer to “load transaction” in the Reference Manual: Commands.

Versions in which this error is raised

All versions

论坛徽章:
5
未羊
日期:2013-09-05 17:46:19狮子座
日期:2014-01-06 14:40:28子鼠
日期:2014-01-21 15:19:17寅虎
日期:2014-02-07 17:59:08巨蟹座
日期:2014-03-05 16:17:19
2 [报告]
发表于 2013-05-08 10:15 |只看该作者
找到哪做错了,O__O"…  现在可以了。

论坛徽章:
4
2015年亚洲杯之巴勒斯坦
日期:2015-04-09 11:23:192015年亚洲杯之约旦
日期:2015-04-10 12:08:322015年亚洲杯之科威特
日期:2015-04-10 12:23:222015亚冠之首尔
日期:2015-07-07 16:11:03
3 [报告]
发表于 2013-05-08 16:38 |只看该作者
请把哪里出现的问题,怎么解决的。共享出来,谢谢

论坛徽章:
5
未羊
日期:2013-09-05 17:46:19狮子座
日期:2014-01-06 14:40:28子鼠
日期:2014-01-21 15:19:17寅虎
日期:2014-02-07 17:59:08巨蟹座
日期:2014-03-05 16:17:19
4 [报告]
发表于 2013-05-08 17:06 |只看该作者
本帖最后由 zy407321952 于 2013-05-08 17:06 编辑

回复 3# wang_xue_m


    是因为我执行备份的时候使用了dump transaction testdbs with truncate_only来清除日志,查资料发现sybase增量备份是用日志来做的,所以导致增量备份无法恢复。

论坛徽章:
4
2015年亚洲杯之巴勒斯坦
日期:2015-04-09 11:23:192015年亚洲杯之约旦
日期:2015-04-10 12:08:322015年亚洲杯之科威特
日期:2015-04-10 12:23:222015亚冠之首尔
日期:2015-07-07 16:11:03
5 [报告]
发表于 2013-05-08 17:11 |只看该作者
要是不截断日志的话,日志空间会满,看来你得经常做增量备份,备完,再截断

论坛徽章:
5
未羊
日期:2013-09-05 17:46:19狮子座
日期:2014-01-06 14:40:28子鼠
日期:2014-01-21 15:19:17寅虎
日期:2014-02-07 17:59:08巨蟹座
日期:2014-03-05 16:17:19
6 [报告]
发表于 2013-05-09 09:56 |只看该作者
回复 5# wang_xue_m


    我又试了下,貌似跟dump transaction with truncate_only没多大关系,我在执行备份前后都执行了该命令,没问题,那天确实很奇怪,我也就多执行了下这条命令就出现了时间戳不匹配的错误,我现在做增量备份只会在全备的时候使用这条命令来清除日志,现在应该就没问题了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP