注册
备份还原
专栏/培训园地/ 文章详情 /

备份还原

Template 2024/06/27 375 1 0
摘要

** 整库冷备份与还原**
(1)整库冷备
创建备份路径:
[dmdba@localhost ~]$ mkdir - p /dm8/backup
关闭数据库:
[dmdba@localhost ~]$ cd /dm8/bin
[dmdba@localhost bin]$ ./DmServiceDMSERVER stop
Stopping DmServiceDMSERVER: [ OK ]
换窗口 cd/dm8/tool
./console
image.png
命令行dmrman:
[dmdba@localhost tool]$ cd /dm8/bin
[dmdba@localhost bin]$ ./dmrman
dmrman V8
RMAN> backup database '/dm8/data/DAMENG/dm.ini' backupset '/dm8/backup';
(2)整库还原
[dmdba@localhost bin]$ ./DmServiceDMSERVER stop
image.png
Dmrman:
MAN> restore database '/dm8/data/DAMENG/dm.ini' from backupset
'/dm8/backup';
RMAN> recover database '/dm8/data/DAMENG/dm.ini' with archivedir '/dm8/arch';
RMAN> recover database '/dm8/data/DAMENG/dm.ini' update db_magic;

评论
后发表回复

作者

文章

阅读量

获赞

扫一扫
联系客服