免费注册 查看新帖 |

Chinaunix

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

db2备份疑问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-13 23:53 |只看该作者 |倒序浏览
db2 restore db safedb from /usr/db2inst1 TAKEN at 20060503202321 with 2 buffers  buffer 1024 parallelism 1


这句命令的红色部分是什么意思?

db2 rollforward db safedb to 2006-05-03-20.25.04

这句命令的时间是通过执行“list history backup all for safedb” 得来的,但是执行该命令后,有很多时间,我该如何判断选择?比如:

Comment: DB2 BACKUP SAFEDB OFFLINE
Start Time:20060503202321
End Time  :20060503202504
Status:  A

Comment:RESTORE SAFEDB WITH RF
Start Time:20060503220032
End Time:20060503220230
Status:A


谢谢

论坛徽章:
0
2 [报告]
发表于 2006-05-14 09:33 |只看该作者
原帖由 soccer 于 2006-5-13 23:53 发表
db2 restore db safedb from /usr/db2inst1 TAKEN at 20060503202321 with 2 buffers  buffer 1024 parallelism 1


[c ...




with 2 buffers 备份缓冲区的数目

buffer 1024 备份缓冲区的大小,若不指定 ,由BACKBUFSZ决定


db2 rollforward db safedb to 2006-05-03-20.25.04

这句命令的时间是通过执行“list history backup all for safedb” 得来的,但是执行该命令后,有很多时间,我该如何判断选择?


不明白什么意思,您想判断选择什么时间?

论坛徽章:
0
3 [报告]
发表于 2006-05-14 16:05 |只看该作者
Comment: DB2 BACKUP SAFEDB OFFLINE
Start Time:20060503202321
End Time  :20060503202504
Status:  A

Comment:RESTORE SAFEDB WITH RF
Start Time:20060503220032
End Time:20060503220230
Status:A

做db2 rollforward safedb to 时间(这个时间是用上面的BACKUP 还是RESTORE,然后是用start time还是end time ?)

我试过用DB2 BACKUP SAFEDB OFFLINE可以,RESTORE不行。这是为什么呢

谢谢

[ 本帖最后由 soccer 于 2006-5-14 16:08 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2006-05-16 01:24 |只看该作者
check your db cfg: LOGRETAIN and USEREXIT
--if LOGRETAIN sets to RECOVERY or USEREXIT to ON: you can do " RESTORE db with rolling forward"
           to the time sheet between the " end time of backup (when you backup OFFLINE) to the end of log".
                                   or between the "start time of backup (when you backup ONLINE) to the end of log.
--if both of them are OFF. you cannot do "restore db with rolling forward"

mymm, am I right? thanks

[ 本帖最后由 vanessaspring 于 2006-5-16 06:59 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2006-05-16 07:14 |只看该作者
you are right.

论坛徽章:
0
6 [报告]
发表于 2006-05-17 16:09 |只看该作者
原帖由 vanessaspring 于 2006-5-16 01:24 发表
check your db cfg: LOGRETAIN and USEREXIT
--if LOGRETAIN sets to RECOVERY or USEREXIT to ON: you can do " RESTORE db with rolling forward"
           to the time sheet between the &qu ...



LOGRETAIN  这个参数是什么意思?

谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP