** 整库冷备份与还原**
(1)整库冷备
创建备份路径:
[dmdba@localhost ~]$ mkdir - p /dm8/backup
关闭数据库:
[dmdba@localhost ~]$ cd /dm8/bin
[dmdba@localhost bin]$ ./DmServiceDMSERVER stop
Stopping DmServiceDMSERVER: [ OK ]
换窗口 cd/dm8/tool
./console
命令行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
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;
文章
阅读量
获赞