Validating Tables, Indexes, Clusters, and Materialized Views
Validating Tables, Indexes, Clusters, and Materialized Views
使用ANALYZE VALIDATE STRUCTURE驗證 表、索引、群集、物化檢視結構的完整性。如果物件的結構有效,則會順利驗證透過,反之則會報錯。(如:表異常的ORA-01498,索引的ORA-01499)
To verify the integrity of the structure of a table, index, cluster, or materialized view, use the ANALYZE statement with the VALIDATE STRUCTURE option. If the structure is valid, no error is returned. However, if the structure is corrupt, you receive an error message.
例如:在極少情況下,硬體或系統出現異常時,索引可能會出現損壞且不能被正常使用。 當Validating驗證索引時,會逐條的檢查索引條目與關聯表對應記錄的準確性。 如果發現索引出現異常,可刪除它重建。
For example, in rare cases such as hardware or other system failures, an index can become corrupted and not perform correctly. When validating the index, you can confirm that every entry in the index points to the correct row of the associated table. If the index is corrupt, you can drop and re-create it.
如果表、索引、群集驗證是損壞的,可以刪除,重建。如果是物化檢視,可以使用complete refresh來修復該問題,如果仍然有誤,則需要重建。
If a table, index, or cluster is corrupt, you should drop it and re-create it. If a materialized view is corrupt, perform a complete refresh and ensure that you have remedied the problem. If the problem is not corrected, drop and re-create the materialized view.
The following statement analyzes the emp table:
下面是檢驗table的語句:
ANALYZE TABLE emp VALIDATE STRUCTURE;
You can validate an object and all related objects (for example, indexes) by including the CASCADE option. The following statement validates the emptable and all associated indexes:
可以使用cascade選項,檢驗與表相關聯的物件(如:所有索引)
ANALYZE TABLE emp VALIDATE STRUCTURE CASCADE;
ou can specify that you want to perform structure validation online while DML is occurring against the object being validated. There can be a slight performance impact when validating with ongoing DML affecting the object, but this is offset by the flexibility of being able to perform ANALYZE online. The following statement validates the emp table and all associated indexes online:
ANALYZE TABLE emp VALIDATE STRUCTURE CASCADE ONLINE;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17086096/viewspace-1973745/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 19c Concepts(02):Tables and Table ClustersOracle
- Oracle 19c Concepts(03):Indexes and Index-Organized TablesOracleIndexZed
- Oracle:ORA-01219:database not open:queries allowed on fixed tables/views onlyOracleDatabaseView
- Oracle 12C新特性-資料泵新引數(VIEWS_AS_TABLES)OracleView
- Materialized ViewZedView
- 翻譯(九)——Clustered Indexes: Stairway to SQL Server Indexes Level 3IndexAISQLServer
- Oracle 21C Flex ClustersOracleFlex
- Oracle 21C Extended ClustersOracle
- Oracle vs PostgreSQL Develop(20) - Materialized ViewOracleSQLdevZedView
- Oracle TablesOracle
- 8.1.1 V$ ViewsView
- 8.1.2 GV$ ViewsView
- [20180510]20 Indexes.txtIndex
- mysql關於FLUSH TABLES和FLUSH TABLES WITH READ LOCK的理解MySql
- PostgreSQL DBA(45) - Hypothetical Indexes in PostgreSQLSQLIndex
- Oracle's V$ Views(轉)OracleView
- 《MapReduce: Simplified Data Processing on Large Clusters》論文研讀
- MySQL 8 新特性之Invisible IndexesMySqlIndex
- fabirc error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/AppErrorAPP
- CRICOS Data Structures and AlgorithmsHash TablesStructGo
- mysqld --skip-grant-tablesMySql
- [20202117]Function based indexes and cursor sharing.txtFunctionIndex
- HDU1213-How Many Tables
- How Logs Work On MySQL With InnoDB TablesMySql
- [20220414]Function based indexes and cursor sharing2.txtFunctionIndex
- Moving Tables(貪心演算法)演算法
- the --skip-grant-tables option so it cannot
- HITSC_1_Views and Quality Objectives of Software ConstructionViewObjectStruct
- PostgreSQL DBA(159) - pgAdmin(Allow vacuum command to process indexes in paralleSQLIndex
- 2020-10-21 pandas - tables關係
- ASP.NET Core MVC 之檢視(Views)ASP.NETMVCView
- cmu15545筆記-索引併發控制(Concurrent Indexes)筆記索引Index
- Oracle 19C 無法啟用Auto Indexes特性OracleIndex
- ECCV 2020 | Robust Re-Identification by Multiple Views Knowledge DistillationIDEView
- 新功能初探 | MySQL 8.0 Multi-Valued Indexes功能簡述MySqlIndex
- [重慶思莊每日技術分享]-重建 oracle Bootstrap IndexesOraclebootIndex
- PostgreSQL 原始碼解讀(201)- PG 12 BlackholeAM for tablesSQL原始碼
- [20181112]Private Temporary Tables Oracle Database 18C.txtOracleDatabase
- Find and Fix the Mismatch Between DBA_SEGMENTS and DBA_EXTENTS ViewsView