中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

11g 自動收集統計信息

發布時間:2020-06-30 01:38:44 來源:網絡 閱讀:383 作者:xychong123 欄目:關系型數據庫

13Automatic Optimizer Statistics Collection


打開:

BEGIN
  DBMS_AUTO_TASK_ADMIN.ENABLE(
     client_name => 'auto optimizer stats collection' 
,    operation   => NULL
,    window_name => NULL
);
END;
/

關閉:

BEGIN
  DBMS_AUTO_TASK_ADMIN.DISABLE(
     client_name => 'auto optimizer stats collection'
,    operation   => NULL 
,    window_name => NULL
);
END;
/

數據庫監視這每個表的變化信息,當變化超過10%就自動收集統計信息:

(查詢統計信息是否過期?DBA_TAB_STATISTICS

Monitoring tracks the approximate number of INSERTs, UPDATEs, and DELETEs for that table and whether the table has been truncated since the last time statistics were gathered. You can access information about changes of tables in the USER_TAB_MODIFICATIONS view. Following a data-modification, there may be a few minutes delay while Oracle Database propagates the information to this view. Use the DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO procedure to immediately reflect the outstanding monitored information kept in the memory.

The GATHER_DATABASE_STATS or GATHER_SCHEMA_STATS procedures gather new statistics for tables with stale statistics when the OPTIONS parameter is set to GATHER STALE orGATHER AUTO. If a monitored table has been modified more than 10%, then these statistics are considered stale and gathered again.

When to Use Manual Statistics?
  • Volatile tables that are deleted or truncated and rebuilt during the course of the day.

  • Objects that are the target of large bulk loads which add 10% or more to the object's total size.

 


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

白山市| 漯河市| 邯郸市| 大埔县| 乌拉特前旗| 云龙县| 永春县| 边坝县| 林芝县| 黎平县| 贺兰县| 安徽省| 日照市| 威海市| 崇义县| 方正县| 福安市| 三河市| 洱源县| 黄浦区| 贵定县| 东台市| 湘乡市| 永宁县| 洞口县| 托克托县| 永仁县| 大石桥市| 宣恩县| 高台县| 徐水县| 井冈山市| 彝良县| 阳泉市| 勃利县| 安吉县| 唐河县| 南靖县| 南丰县| 黄浦区| 浑源县|