Invisible Index
Beginning with Release 11g, you can create invisible indexes. An invisible index is an index that is ignored by the optimizer unless you explicitly set the OPTIMIZER_USE_INVISIBLE_INDEXES initialization parameter to TRUE at the session or system level. Making an index invisible is an alternative to making it unusable or dropping it.
Using invisible indexes, you can do the following:
1) Test the removal of an index before dropping it.
2) Use temporary index structures for certain operations or modules of an application without
affecting the overall application.
Unlike unusable indexes, an invisible index is maintained during DML statements.
To create an invisible index, use the SQL statement CREATE INDEX with the INVISIBLE clause.
The following statement creates an invisible index named emp_ename for the ename column of the emp table:
CREATE INDEX emp_ename ON emp(ename)
TABLESPACE users
STORAGE (INITIAL 20K
NEXT 20k
PCTINCREASE 75)
INVISIBLE;
Making an Index Invisible
To make a visible index invisible, issue this statement:
ALTER INDEX index INVISIBLE;
To make an invisible index visible, issue this statement:
ALTER INDEX index VISIBLE;
To
find out whether an index is visible or invisible, query the dictionary
views USER_INDEXES, ALL_INDEXES, or DBA_INDEXES. For example, to
determine if the index IND1 is invisible, issue the following query:
SELECT INDEX_NAME, VISIBILITY
FROM USER_INDEXES
WHERE INDEX_NAME = 'IND1';
INDEX_NAME VISIBILITY
------------------ -------------
IND1 VISIBLE
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21754115/viewspace-1091462/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- index , virtual , invisibleIndex
- oracle invisible index與unusable index的區別OracleIndex
- 11g新特性--invisible indexIndex
- 11g新特性: 索引不可見(Index Invisible)索引Index
- Oracle資料庫中的不可見索引 invisible indexOracle資料庫索引Index
- 不可見索引(invisible index)在表DML操作過程中依然被維護索引Index
- Some ideas About ‘invisible bug‘Idea
- MySQL 8 新特性之Invisible IndexesMySqlIndex
- Oracle之不可見索引(invisible indexes)Oracle索引Index
- Go最重要的特性是invisible - JackGo
- KEEP INDEX | DROP INDEXIndex
- rowid,index,INDEX FULL SCAN,INDEX FAST FULL SCAN|IndexAST
- INDEX UNIQUE SCAN,INDEX FULL SCAN和INDEX FAST FULL SCANIndexAST
- Clustered Index Scan and Clustered Index SeekIndex
- oracle hint之full,index,index_asc,index_desc,index_combile示例OracleIndex
- IndexIndex
- Index的掃描方式:index full scan/index fast full scanIndexAST
- rebuild index 和 recreate index (重新建立index) 的區別RebuildIndex
- pk 、unique index 和 index 區別Index
- global index & local index的區別Index
- alter index rebuild與index_statsIndexRebuild
- B-index、bitmap-index、text-index使用場景詳解Index
- Index Full Scan vs Index Fast Full ScanIndexAST
- Using index condition Using indexIndex
- 【Oracle】global index & local index的區別OracleIndex
- Index Full Scans和Index Fast Full ScansIndexAST
- What is meant by Primary Index and Secondary IndexIndex
- Index Full Scan 與 Index Fast Full ScanIndexAST
- PostgreSQL:INDEXSQLIndex
- <MYSQL Index>MySqlIndex
- jQuery index()jQueryIndex
- index索引Index索引
- rebuild indexRebuildIndex
- index rebuildIndexRebuild
- Bitmap IndexIndex
- index range scan,index fast full scan,index skip scan發生的條件IndexAST
- Oracle 索引的可見與隱藏(visible/invisible)Oracle索引
- oracle小知識點7--索引的unusable,disable,invisibleOracle索引