zoukankan      html  css  js  c++  java
  • 052-144

    You execute the following command to change the status of the SALES tablespace:
    SQL> ALTER TABLESPACE sales OFFLINE;
    Which statements describe the effect of the command? (Choose all that apply.)
    A.The tablespace would require recovery to go back online.
    B.A checkpoint is taken on all data files that are associated with the SALES tablespace.
    C.The sessions that subsequently try to access the objects in the SALES tablespace receive an error.
    D.The new status of the SALES tablespace is recorded in the control file when the database instance is closed.

    表空间 offline 选项:
      Normal(正常):如果表空间中的任何数据文件不存在任何错误状态,可通过正常方式使表空间脱机.表空间脱机时,会对表空间中的所有数据文件设置检查点,可以确保将所有数据写入磁盘.
      Temporary(临时):如果表空间中的一个或多个文件存在错误状态,也可以使表空间暂时脱机.尚未脱机的数据文件脱机时,会对这些数据文件设置检查点.如果没有任何文件脱机,但是使用了临时子句,使表空间重新联机时便不需要执行介质恢复.但是,如果因写错误而导致表空间的一个或多个文件脱机,而且设置了表空间临时脱机,那么表空间需要执行恢复后才能重新联机.
      Immediate(立即)表空间可以立即脱机,Oracle 数据库不需要对任何数据文件设置检查点.如果指定了"Immediate",则必须先对表空间执行介质恢复 recover tablespace ,才能使表空间联机.如果数据库在 NOARCHIVELOG 模式下运行,则无法立即使表空间脱机.
    因为是正常的 offline 表空间,所以不需恢复,即可 online,A 错
    正常的 offline 表空间,会对所有数据文件设置检查点,B 对
    不能访问 offline 的表空间,C 对
    表空间 offline 时会立即记录在控制文件,而不是关闭的时候才记录,D 错

  • 相关阅读:
    《POJ-2369》
    《1402
    《2018 Multi-University Training Contest 8》
    《HDU
    循环串
    模拟赛 数根 题解
    备份
    关于带删除线性基
    论OIer谈恋爱的必要性
    某计数题题解
  • 原文地址:https://www.cnblogs.com/Babylon/p/8037230.html
Copyright © 2011-2022 走看看