zoukankan      html  css  js  c++  java
  • OCP-1Z0-053-V13.02-699题

    699. Your database is using a default temporary tablespace that contains the temp01.tmp temporary file.

    All the users on the database use the default temporary tablspace. A user issues a query on the ORDERS

    table and receives the following error:

     

    What would be the most efficient way to rectify this error?

    A.Add a new tempfile to the user’s temporary tablespace and drop the tempfile  that produced the error.

    B.Shut down the database instance, restore the temp01.tmp file from the backup, and then restart the database.

    C.Allow the database to continue runn ing, drop the temp01.tmp temporary file, and then re-create it with new tempfiles.

    D.Take the temporary tablespace offline, recover the missing tempfile by applying redo logs, and then bring the temporary tablespace online.  

    Answer: D 

    答案解析:

    临时文件在删除后,数据库再次启动时会自动创建。

    并且在数据库运行的过程中,使用rm删除,并不影响排序的查询。

    我不会模拟出临时文件损坏的情况,但是,在临时文件损坏的情况下,可以增加一个临时文件,然后drop那个损坏的,就可以了。

    另外A和C的区别就是先删除还是先增加?通过以下可知,当只有一个临时文件的时候,是不允许删除的。

    故选A,此题答案有误。

    sys@TEST1107> ALTER TABLESPACE TEMP DROP TEMPFILE '/u01/app/oracle/oradata/test1107/temp01.dbf';

    ALTER TABLESPACE TEMP DROP TEMPFILE '/u01/app/oracle/oradata/test1107/temp01.dbf'

    *

    ERROR at line 1:

    ORA-03261: the tablespace TEMP has only one file

  • 相关阅读:
    python学习,day4:装饰器的使用示例
    python学习,day3:函数式编程,递归和高阶函数
    JZ高中OJ 1385. 直角三角形
    JZ高中OJ 1382. 区间
    JZ高中OJ 3404. [NOIP2013模拟]卡牌游戏
    JZ高中OJ 3403. [NOIP2013模拟] 数列变换
    JZ高中OJ 1433. 数码问题
    JZ初中OJ 1339. disease
    JZ高中OJ 1432. 输油管道
    JZ初中OJ 1342. [南海2009初中]cowtract
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316254.html
Copyright © 2011-2022 走看看