格式:db2 restore db <database name> [ from <dir name> ]
database name:表示恢复的数据库名
from <dir name>:表示为从哪个目录路径下恢复,为可选项,默认在当前目录下
注:如果想把恢复的数据库更改为新的数据库名,则格式如下
db2 restore db <database name> [ from <dir name> into <new database name> ]
例:db2 restore db test from /home/db2inst1/Sunrier into testdb
或者db2 restore db test from "/home/db2inst1/Sunrier" into testdb
详见: http://blog.csdn.net/fuwencaho/article/details/20629567
二
原文链接:https://blog.csdn.net/fuwencaho/article/details/245hu
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69949806/viewspace-2790011/ ,如需转载,请注明出处,否则将追究法律责任。