db2 backup export

本文介绍了使用DB2进行数据库备份及恢复的操作方法,包括备份命令、监控备份进度、检查备份有效性、执行恢复操作及其监控等关键步骤。

备份命令:

db2 backup db test to /db2data/

监控备份进度:

db2 list utilities show detail

Estimated Percentage Complete = 51 <-进度

检测备份文件的有效性:

db2ckbkp /db2data/TEST.0.db2inst1.NODE0000.CATN0000.20171017225437.001 

执行恢复操作

db2 restore db TEST from /home taken at 20171017225437 into test

SQL2523W  Warning!  Restoring to an existing database that is different from 
the database on the backup image, but have matching names. The target database 
will be overwritten by the backup version.  The Roll-forward recovery logs 
associated with the target database will be deleted.
Do you want to continue ? (y/n) y

监控恢复进度:

db2 list utilities show detail

此外可用db2pd命令:

 db2pd -utilities

 

转载于:https://www.cnblogs.com/dahaoran/p/9262247.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值