zoukankan      html  css  js  c++  java
  • 053-627

    In Recovery Manager (RMAN), you are taking image copies of the data files of your production
    database and rolling them forward at regular intervals. You attempt to restart your database. After a regular maintenance task, you realize that one of the data files that belongs to the USERS tablespace is damaged and you need to recover the data file by using the image copy. Because a media failure caused the data file to be damaged, you want to place the data file in a different location while restoing the file.
    Which option must you consider for this task?
    A. using only the RMAN SWITCH command to set the new location for the data file
    B. placing the database in the MOUNT state for the restore and recovery operations.
    C. using an RMAN RUN block with the SET NEWNAME and then the SWITCH command.
    D. configuring two channels: one for the restore operation and the other for the recovery operation

    由于是使用的镜像拷贝,所以可以使用 switch 来进行重建。如果想重建到新的位置,在 switch 之前使用set NEWNAME 来配置新的路径。 C 正确,A 错误
    例如:
    RUN
    {
    SQL "ALTER TABLESPACE users OFFLINE IMMEDIATE";
    SET NEWNAME FOR DATAFILE '/disk1/oradata/prod/users01.dbf'
    TO '/disk2/users01.dbf';
    RESTORE TABLESPACE users;
    SWITCH DATAFILE ALL;
    RECOVER TABLESPACE users;
    SQL "ALTER TABLESPACE users ONLINE";
    }


  • 相关阅读:
    实现Runnable接口和继承Thread类的区别
    图的DFS和BFS
    图建模
    数据结构-图的基本知识和表示
    除自身以外的乘积数组(力扣第238题)
    MapReduce源码分析--Shuffle阶段
    转到博客园
    vue中使用剪切板插件 clipboard.js
    vue中使用vue-qrcode生成二维码
    h5中嵌入视频自动播放的问题
  • 原文地址:https://www.cnblogs.com/Babylon/p/7840100.html
Copyright © 2011-2022 走看看