initdb V8
db version: 0x7000c
file dm.key not found, use default license!
License will expire on 2025-12-25
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL
log file path: c:\dmdbms\data\DAMENG\DAMENG01.log
log file path: c:\dmdbms\data\DAMENG\DAMENG02.log
write to dir [c:\dmdbms\data\DAMENG].
create dm database success. 2025-03-09 15:22:41
c:\dmdbms\bin>
4.使用归档日志和全备进行还原
使用dmrman 完成
c:\dmdbms\bin>dmrman
dmrman V8
#还原归档日志
RMAN> restore archivelog from backupset 'D:\backup\arch_bak\arch_20250309' to archivedir 'd:\arch_log\' ;
restore archivelog from backupset 'D:\backup\arch_bak\arch_20250309' to archivedir 'd:\arch_log\';
[Percent:100.00%][Speed:0.00M/s][Cost:00:00:00][Remaining:00:00:00]
restore successfully.
time used: 275.587(ms)
#还原备份集
RMAN> restore database 'C:\dmdbms\data\DAMENG\dm.ini' from backupset 'D:\backup\dameng_full\fullbak_20250309'
restore database 'C:\dmdbms\data\DAMENG\dm.ini' from backupset 'D:\backup\dameng_full\fullbak_20250309'
file dm.key not found, use default license!
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL
[Percent:100.00%][Speed:0.00M/s][Cost:00:00:02][Remaining:00:00:00]
restore successfully.
time used: 00:00:03.201
#通过归档日志进行不完全恢复
RMAN> recover database 'C:\dmdbms\data\DAMENG\dm.ini' with archivedir 'd:\arch_log' until time '2025-03-09 14:52:55.455000';
recover database 'C:\dmdbms\data\DAMENG\dm.ini' with archivedir 'd:\arch_log' until time '2025-03-09 14:52:55.455000';
Database mode = 2, oguid = 0
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL
EP[0]'s cur_lsn[59163], file_lsn[59163]
[Percent:79.31%][Speed:0.00PKG/s][Cost:00:00:00][Remaining:00:00:00]
recover successfully!
time used: 796.950(ms)
说明:
1.若不带until time 就是完全恢复.
2.不完全恢复包括until time和until lsn,使用 SELECT FILE_LSN FROM V$RLOG查LSN
recover database 'C:\dmdbms\data\DAMENG\dm.ini' update db_magic;
Database mode = 2, oguid = 0
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL
EP[0]'s cur_lsn[59350], file_lsn[59350]
recover successfully!
time used: 00:00:01.342
RMAN>