如何在给定时间点使用 RMAN 进行恢复?

问题描述 投票:0回答:1

我使用 RMAN 在 Oracle 12c 数据库上执行备份。
我正在尝试恢复于 2023 年 11 月 17 日 09:44 删除的表,但当我应用

alter database open resetlogs;
命令

时收到错误消息 以下是我使用的程序:

$ rman target=/ 
RMAN> shutdown immediate;
RMAN> startup mount;
RMAN> run {
set until time "to_date('17/11/2023 09:40:00', 'DD/MM/YYYY HH24:MI:SS')";
restore database;
recover database;
}


打开数据库并重置日志

RMAN> alter database open resetlogs; 

Oracle错误信息如下:

RMAN> alter database open resetlogs;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of sql statement command at 11/17/2023 09:55:53
ORA-03113: end-of-file on communication channel
Process ID: 116719
Session ID: 1339 Serial number: 7632
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-03114: not connected to ORACLE
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of sql statement command at 11/17/2023 09:55:53
ORA-03113: end-of-file on communication channel
Process ID: 116719
Session ID: 1339 Serial number: 7632

有人有想法吗?

谢谢!

restore recover rman
1个回答
0
投票

假设在删除表操作之前存在备份(控制文件和数据文件)。然后:

  • 第一:恢复控制文件
  • 第二:使用时间点恢复来恢复数据库 然后打开数据库Resetlogs
© www.soinside.com 2019 - 2024. All rights reserved.