學習VALIDATE STRUCTURE
VALIDATE STRUCTURE
Specify VALIDATE STRUCTURE to validate the structure of the analyzed object. The statistics collected by this clause are not used by the Oracle Database optimizer, as are statistics collected by the COMPUTE STATISTICS and ESTIMATE STATISTICS clauses.
See Also: |
-
For a table, Oracle Database verifies the integrity of each of the data blocks and rows. For an index-organized table, the database also generates compression statistics (optimal prefix compression count) for the primary key index on the table.
-
For a cluster, Oracle Database automatically validates the structure of the cluster tables.
-
For a partitioned table, Oracle Database also verifies that each row belongs to the correct partition. If a row does not collate correctly, then its rowid is inserted into the INVALID_ROWS table.
-
For a temporary table, Oracle Database validates the structure of the table and its indexes during the current session.
-
For an index, Oracle Database verifies the integrity of each data block in the index and checks for block corruption. This clause does not confirm that each row in the table has an index entry or that each index entry points to a row in the table. You can perform. these operations by validating the structure of the table with the clause.
Oracle Database also computes compression statistics (optimal prefix compression count) for all normal indexes.
Oracle Database stores statistics about the index in the data dictionary views INDEX_STATS and INDEX_HISTOGRAM.
See Also:
for information on these views
If Oracle Database encounters corruption in the structure of the object, then an error message is returned to you. In this case, drop and re-create the object.
=============================================================================
例子:
SQL> analyze index dfms.IDX1_WIP_D_WO_DETAIL_COMID validate structure ;
select name, del_lf_rows, lf_rows, round((del_lf_rows/(lf_rows+0.0000000001))*100)
"Frag Percent" from index_stats where name = 'IDX1_WIP_D_WO_DETAIL_COMID' ;
SQL> select name, del_lf_rows, lf_rows, round((del_lf_rows/(lf_rows+0.0000000001))*100)
2 "Frag Percent" from index_stats where name = 'IDX1_WIP_D_WO_DETAIL_COMID' ;
NAME DEL_LF_ROWS LF_ROWS Frag Percent
------------------------------ ----------- ---------- ------------
IDX1_WIP_D_WO_DETAIL_COMID 1732765 1817931 95
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-674476/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- VALIDATE STRUCTUREStruct
- analyze index 時validate structure和compute statistiIndexStruct
- analyze table/index validate structure加鎖的問題IndexStruct
- Oracle中的分析統計validate structure,compute statisticsOracleStruct
- analyze index 時validate structure和compute statistics的區別IndexStruct
- async-validator 原始碼學習筆記(六):validate 方法原始碼筆記
- data structureStruct
- Valuation StructureStruct
- oracle學習(2)-Oracle約束的關鍵字Enable/Disable/Validate/NovalidateOracle
- GO語言學習筆記-包結構篇 Study for Go ! Chapter eight - Package StructureGo筆記APTPackageStruct
- OpenAPI Basic StructureAPIStruct
- matlab練習程式(結構張量structure tensor)MatlabStruct
- Data Structure_樹Struct
- sqrt-data-structureStruct
- jQuery Validate success()jQuery
- Jquery--ValidatejQuery
- Data block Structure and Row Piece Structure_20091209BloCStruct
- idea--Project StructureIdeaProjectStruct
- SAP Spartacus Reference App StructureAPPStruct
- 1.2 Physiacel Structure of Database ClusterStructDatabase
- Idea Project Structure配置IdeaProjectStruct
- buffer cache logical structure!Struct
- Program Interface Structure (135)Struct
- jQuery Validate addMethod()jQuery
- jQuery Validate errorPlacement()jQueryError
- jQuery Validate optional()方法jQuery
- jQuery Validate invalidHandler()jQuery
- 1.1 Logical Structure of Database ClusterStructDatabase
- index branch and leaf block structure(轉)IndexBloCStruct
- 【MySQL】Could not initialize master info structureMySqlASTStruct
- Structure of the Data Dictionary : Base Tables (258)Struct
- The Internal Structure of Indexes (208)StructIndex
- Half-Edge-Mesh-Data-StructureStruct
- Vue Element校驗validateVue
- jQuery Validate的format()用法jQueryORM
- jquery validate用法總結jQuery
- jQuery.validate 詳解jQuery
- jquery validate 詳解一jQuery