zoukankan      html  css  js  c++  java
  • RMAN系列数据文件恢复

    RMAN> report schema;                  

    using target database control file instead of recovery catalog
    Report of database schema

    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    ---- -------- -------------------- ------- ------------------------
    1    480      SYSTEM               ***     /oracle/oradata/orcl/system01.dbf
    2    30       UNDOTBS1             ***     /oracle/oradata/orcl/undotbs01.dbf
    3    240      SYSAUX               ***     /oracle/oradata/orcl/sysaux01.dbf
    4    5        USERS                ***     /oracle/oradata/orcl/users01.dbf
    5    100      EXAMPLE              ***     /oracle/oradata/orcl/example01.dbf
    6    0        JASON                ***     /oracle/oradata/orcl/jason01.dbf

    List of Temporary Files
    =======================
    File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
    ---- -------- -------------------- ----------- --------------------
    1    20       TEMP                 32767       /oracle/oradata/orcl/temp01.dbf

    RMAN> sql 'alter database datafile 6 offline';

    sql statement: alter database datafile 6 offline

    RMAN> restore datafile 6;

    Starting restore at 16-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=144 devtype=DISK

    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00006 to /oracle/oradata/orcl/jason01.dbf
    channel ORA_DISK_1: reading from backup piece /oracle/orabak/databak/20110116_08m28bdb.dbf
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/oracle/orabak/databak/20110116_08m28bdb.dbf tag=TAG20110116T092810
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
    Finished restore at 16-JAN-11

    RMAN> recover datafile 6;

    Starting recover at 16-JAN-11
    using channel ORA_DISK_1

    starting media recovery
    media recovery complete, elapsed time: 00:00:02

    Finished recover at 16-JAN-11

    RMAN> sql 'alter database datafile 6 online';

    sql statement: alter database datafile 6 online

    RMAN>

  • 相关阅读:
    PHP jquery结合HTML5鼠标拖选头像图片并上传
    HTML5 CSS3 SwitchButton 自定义Radio风格
    IE浏览器在虚拟机中无法正常显示字符
    jQuery在updatepanel中使用造成内存泄露
    bootstrap下拉列表重置联动
    bootstrap正则表达式验证手机 座机 邮箱
    bootstrap重置校验方法
    分页
    函数解一元二次方程
    集合
  • 原文地址:https://www.cnblogs.com/datalife/p/1985427.html
Copyright © 2011-2022 走看看