设为首页 加入收藏

TOP

RMAN备份与恢复之基于时间点的不完全恢复(三)
2014-11-24 03:23:43 来源: 作者: 【 】 浏览:10
Tags:RMAN 备份 恢复 基于 时间 完全
1_17/o1_mf_nnndf_TAG20140117T094447_9fk2rhv7_.bkp tag=TAG20140117T094447 channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:04:16 Finished restore at 17-JAN-14 Starting recover at 17-JAN-14 using channel ORA_DISK_1 starting media recovery media recovery complete, elapsed time: 00:00:01 Finished recover at 17-JAN-14 RMAN> **end-of-file**

Step 11,RMAN中使用RESETLOGS打开数据库

RMAN> ALTER DATABASE OPEN RESETLOGS;

database opened

Step 12,SQL Plus中查看数据,如果能够正确地查看到,证明恢复成功

[oracle@orcl ~]$ sqlplus 
[uniread] Loaded history (66 lines)

SQL*Plus: Release 11.2.0.3.0 Production on Fri Jan 17 10:10:53 2014

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

SQL> SELECT open_mode FROM v$database;

OPEN_MODE
--------------------
READ WRITE

#这正是被删除掉的表中的数据
SQL> SELECT * FROM scott.test;

  ID NAME
---------- --------------------
   1 justdb

Step 13,因为重置了日志,我们需要重新在RMAN中备份

[oracle@orcl ~]$ uniread rman target /
[uniread] Loaded history (2 lines)

Recovery Manager: Release 11.2.0.3.0 - Production on Fri Jan 17 09:44:40 2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: LARRRDB (DBID=3428598070)

RMAN> BACKUP DATABASE;

四 相关文章

RMAN备份与恢复之控制文件丢失RMAN备份与恢复之可脱机数据文件丢失RMAN备份与恢复之UNDO表空间丢失
首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇java操作mongodb:基本的增删改查 下一篇众核上的数据仓库并行优化

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·用 C 语言或者限制使 (2025-12-25 08:50:05)
·C++构造shared_ptr为 (2025-12-25 08:50:01)
·既然引用计数在做 GC (2025-12-25 08:49:59)
·Java 编程和 c 语言 (2025-12-25 08:19:48)
·. net内存管理宝典这 (2025-12-25 08:19:46)