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

    Examine the command:
    SQL> DBMS_STATS.SET_TABLE_PREFS('SH', 'CUSTOMERS', 'PUBLISH', 'false');
    Which statement describes the effect of the above command?
    A.Automatic statistics collection is stopped for the CUSTOMERS table.
    B.Statistics for the CUSTOMERS table are locked and cannot be overwritten.
    C.Existing statistics for the CUSTOMERS table become unusable for the query optimizer.
    D.Subsequently, statistics gathered on the CUSTOMERS table are stored as pending statistics.

      这里设置 PUBLISH,意思是决定是否 job 收集完统计信息就马上发布,11.1 以前是马上发布到字典表,现在用户可以收集后不立即发布,它容许 dba 在发布前进行测试。
      这个题目是关于统计挂起的,在11g里面强化了统计数据自动发布的控制,可以通过配置OPTIMIZER_PENDING_STATISTICS为true来使用统计数据挂起,使用DBMS_STATS.GET_PREFS来检查是否挂起,使用[DBA|ALL|USER]_TAB_PENDING_STATS和[DBA|ALL|USER]_IND_PENDING_STATS来查看未发布的统计。这道题目设置关于customers表的统计自动发布挂起,所以收集统计数据后会保留数据不自动发布

  • 相关阅读:
    Android开源日志框架xlog
    [CrackMe]160个CrackMe之18
    SEH异常
    全局句柄表
    用户层异常的派发与处理
    用户层异常的处理
    内核层异常的收集与处理
    两种异常(CPU异常、用户模拟异常)的收集
    无处不在的页异常
    AppBoxFuture(四). 随需而变-Online Schema Change
  • 原文地址:https://www.cnblogs.com/Babylon/p/7997943.html
Copyright © 2011-2022 走看看