Section courante

A propos

Section administrative du site

ANALYZE

Analyse
Oracle Database SQL  

Syntaxe

ANALYZE TABLE tablename COMPUTE|ESTIMATE|DELETE STATISTICS [
      PARTITION (partion)
      SUBPARTITION (subpartition)
   ] [
      VALIDATE STRUCTURE [CASCADE] [INTO tablename]
      LIST CHAINED ROWS [INTO tablename]
      COMPUTE|ESTIMATE STATISTICS FOR TABLE
      COMPUTE|ESTIMATE STATISTICS FOR ALL COLUMNS
      COMPUTE|ESTIMATE STATISTICS FOR ALL INDEXED COLUMNS
      COMPUTE|ESTIMATE STATISTICS FOR COLUMNS [SIZE int] column [SIZE int]
   ]
ANALYZE INDEX indexname COMPUTE|ESTIMATE|DELETE STATISTICS [
      PARTITION (partion)
      SUBPARTITION (subpartition)
   ] [
      VALIDATE STRUCTURE [CASCADE] [INTO tablename]
      LIST CHAINED ROWS [INTO tablename]
      COMPUTE|ESTIMATE STATISTICS FOR TABLE
      COMPUTE|ESTIMATE STATISTICS FOR ALL COLUMNS
      COMPUTE|ESTIMATE STATISTICS FOR ALL INDEXED COLUMNS
      COMPUTE|ESTIMATE STATISTICS FOR COLUMNS [SIZE int] column [SIZE int]
   ]
ANALYZE CLUSTER clustername COMPUTE|ESTIMATE|DELETE STATISTICS [
      VALIDATE STRUCTURE [CASCADE] [INTO tablename]
      LIST CHAINED ROWS [INTO tablename]
      COMPUTE|ESTIMATE STATISTICS FOR TABLE
      COMPUTE|ESTIMATE STATISTICS FOR ALL COLUMNS
      COMPUTE|ESTIMATE STATISTICS FOR ALL INDEXED COLUMNS
      COMPUTE|ESTIMATE STATISTICS FOR COLUMNS [SIZE int] column [SIZE int]
   ]

Description

Cette instruction permet d'effectuer des analyses sur les tables et les base de données et les tables.

Voir également

Article - Les géants de l'informatique - Oracle

Dernière mise à jour : Lundi, le 11 mai 2015