日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Oracle分析表簡介

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

創(chuàng)新互聯(lián)公司專注于企業(yè)成都全網(wǎng)營銷、網(wǎng)站重做改版、靈璧網(wǎng)站定制設(shè)計、自適應(yīng)品牌網(wǎng)站建設(shè)、HTML5、成都商城網(wǎng)站開發(fā)、集團公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站制作、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計等建站業(yè)務(wù),價格優(yōu)惠性價比高,為靈璧等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。

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í)行計劃更加準(zhǔn)確

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)計信息這一塊的功能,且在這一方面做了相當(dā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幾列你就會明白,這就是變化。


網(wǎng)站名稱:Oracle分析表簡介
標(biāo)題鏈接:http://www.5511xx.com/article/ccishpg.html