RMAN基于时间点的不完全恢复_绿色软件之家

绿色软件之家:您身边最放心的安全下载站! 最新更新|软件分类|软件专题|手机版|系统之家|纯净系统

您当前所在位置:首页系统集成数据恢复 → RMAN基于时间点的不完全恢复

RMAN基于时间点的不完全恢复

时间:2015/6/28来源:绿色软件之家作者:网管联盟我要评论(0)

    备份——全库备份。

    启动数据库到archivelog模式

    rman target=rman/rman

    rman>backup database plus archivelog delete input;

    删除两个用户及相关表后。

    恢复部分内容——基于时间点的恢复。

    [root@ccj 2009_10_22]# ll

    总用量1299304

    -rw-r-----  1 oracle oinstall   39169536 10月 22 14:31 o1_mf_annnn_TAG20091022T143115_5fzz1oyv_.bkp -rw-r-----  1 oracle oinstall      30208 10月 22 14:36 o1_mf_annnn_TAG20091022T143634_5fzzcmfo_.bkp -rw-r-----  1 oracle oinstall    7110656 10月 22 14:27 o1_mf_ncnnf_TAG20091022T142737_5fzytyh2_.bkp -rw-r-----  1 oracle oinstall    7110656 10月 22 14:36 o1_mf_ncnnf_TAG20091022T143121_5fzzcg0l_.bkp -rw-r-----  1 oracle oinstall 1275740160 10月 22 14:36 o1_mf_nnndf_TAG20091022T143121_5fzz1t8k_.bkp

    [root@ccj 2009_10_22]# pwd

    /opt/oracle/Flash_recovery_area/ORCL/backupset/2009_10_22

    [oracle@ccj ~]$ export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"

    [oracle@ccj ~]$

    [oracle@ccj ~]$ export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"

    [oracle@ccj ~]$ rman target=rman/rman

    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Oct 22 17:08:54 2009

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

    connected to target database: ORCL (DBID=1223339172)

    RMAN> restore database;

    Starting restore at 2009-10-22 17:23:29

    using channel ORA_DISK_1

    channel ORA_DISK_1: starting datafile backupset restore

    channel ORA_DISK_1: specifying datafile(s) to restore from backup set

    restoring datafile 00001 to /opt/oracle/oradata/orcl/system01.dbf restoring datafile 00002 to /opt/oracle/oradata/orcl/undotbs01.dbf restoring datafile 00003 to /opt/oracle/oradata/orcl/sysaux01.dbf restoring datafile 00004 to /opt/oracle/oradata/orcl/users01.dbf restoring datafile 00005 to /opt/oracle/oradata/orcl/example01.dbf restoring datafile 00006 to /opt/oracle/oradata/db/reporter.dbf restoring datafile 00007 to /opt/oracle/oradata/db/sm_db.dbf restoring datafile 00008 to /opt/oracle/product/10g/dbs/nhnmcc_data.data channel ORA_DISK_1: reading from backup piece /opt/oracle/flash_recovery_area/ORCL/backupset/2009_10_22/o1_mf_nnndf_TAG20091022T143121_5fzz1t8k_.bkp

    channel ORA_DISK_1: restored backup piece 1

    piece handle=/opt/oracle/flash_recovery_area/ORCL/backupset/2009_10_22/o1_mf_nnndf_TAG20091022T143121_5fzz1t8k_.bkp tag=TAG20091022T143121 channel ORA_DISK_1: restore complete, elapsed time: 00:02:38

    Finished restore at 2009-10-22 17:26:09

    RMAN> recover database until time '2009-10-22 14:37:00';

    Starting recover at 2009-10-22 17:26:58

    using channel ORA_DISK_1

    starting media recovery

    media recovery complete, elapsed time: 00:00:05

    Finished recover at 2009-10-22 17:27:04

    最后,alter database open resetlogs;

    注:备份时archivelog状态,恢复时候mount状态;

    可能用到的命令sql>alter session set NLS_date_format = 'YYYY-MM-DD HH24:MI:SS'

关键词标签:RMAN不完全恢复

相关阅读

文章评论
发表评论

热门文章 Linux EXT3文件系统误删文件恢复Linux EXT3文件系统误删文件恢复反反复复的磁盘丢失故障处理过程反反复复的磁盘丢失故障处理过程七种方法教你如何避免数据灾难七种方法教你如何避免数据灾难

相关下载

人气排行 误分区 误格式化 误删除数据恢复挽救方法"一键GHOST"傻瓜式系统备份与恢复恢复被误删QQ好友独门秘技硬盘格式化也可破解还原实战破解交换机密码Linux EXT3文件系统误删文件恢复RAID数据恢复常见故障处理手册电脑维修经验之维修原则