自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle分析表簡介

數(shù)據(jù)庫 Oracle
在Oracle數(shù)據(jù)庫管理中,分析表的重要性不言而喻,下文對Oracle分析表作了詳盡的闡述,如果您對此方面感興趣的話,不妨一看。

Oracle分析表是Oracle數(shù)據(jù)庫管理的重要部分,下面就為您詳細介紹Oracle分析表方面的知識,希望對您學習Oracle分析表方面能有所幫助。

1、分析SQL:
analyze table tablename compute statistics
等同于 analyze table tablename compute statistics for table for all indexes for all columns

for table的統(tǒng)計信息存在于視圖:user_tables 、all_tables、dba_tables

for all indexes的統(tǒng)計信息存在于視圖: user_indexes 、all_indexes、dba_indexes

for all columns的統(tǒng)計信息存在于試圖:user_tab_columns、all_tab_columns、dba_tab_columns

刪除分析SQL:

analyze table tablename delete statistics 會刪除所有的statistics

2、Oracle分析表的作用:為了使基于CBO的執(zhí)行計劃更加準確

DBA_tables的數(shù)據(jù)有變化,可做對比。詳見官方文檔:

Use the ANALYZE statement to collect non-optimizer statistics, for example, to:

Collect or delete statistics about an index or index partition, table or table partition, index-organized table, cluster, or scalar object attribute.
Validate the structure of an index or index partition, table or table partition, index-organized table, cluster, or object reference (REF).
Identify migrated and chained rows of a table or cluster.

dbms_stats的作用主要是替代analyze的收集統(tǒng)計信息這一塊的功能,且在這一方面做了相當大程度上的增強。

以analyze table table_name compute statistics;這條為例,生成的統(tǒng)計信息會存在于user_tables這個視圖,查看一下select * from user_tables where table_name='table_name';
觀察一下NUM_ROWS,BLOCKS,AVG_SPACE,AVG_ROW_LEN幾列你就會明白,這就是變化。
 

 

 

【編輯推薦】

oracle服務丟失的處理方法

Linux下Oracle數(shù)據(jù)庫啟動的方法

Oracle重做日志的實現(xiàn)方法

Oracle歸檔日志大小的修改方法

Oracle密碼丟失的兩種解決方法

責任編輯:段燃 來源: 互聯(lián)網(wǎng)
相關推薦

2010-05-10 10:06:45

Oracle查詢表名

2011-07-14 10:53:54

TKPROFOracle

2011-08-18 16:30:10

Oracle鎖表查詢kill進程

2009-11-18 16:43:59

2009-11-19 11:00:55

Oracle xmlt

2010-11-15 12:02:24

Oracle進程結(jié)構(gòu)

2009-11-16 11:03:44

Oracle INDE

2010-10-25 15:12:42

Oracle日期函數(shù)

2010-10-25 17:28:05

Oracle bita

2010-10-28 10:54:46

oracle對象權(quán)限

2010-11-22 14:27:05

MySQL鎖表

2010-10-26 17:41:05

Oracle索引

2010-10-26 11:39:51

Oracle EXPIMP備份

2010-10-25 14:47:49

Oracle系統(tǒng)變量函

2010-11-18 13:09:19

Oracle case

2023-10-11 06:50:32

Oracle數(shù)據(jù)庫系統(tǒng)

2015-08-21 12:59:38

Oracle數(shù)據(jù)庫

2010-10-25 17:39:24

Oracle單行日期函

2011-04-12 13:27:09

Oracle日期函數(shù)

2009-11-03 10:09:33

Oracle表空間
點贊
收藏

51CTO技術棧公眾號