Drop an Index Partition example In oracle database to drop an index partition you must use the command alter index with DROP PARTITION keyword. — create Range-Partitioned Global Index CREATE INDEX amount_idx ON orders (amount) GLOBAL PARTITION BY RANGE (amount) (PARTITION part_1 VALUES LESS THAN (1000), PARTITION part_2 VALUES LESS THAN (2000), PARTITION part_3 VALUES…(Continue Reading)
Category: PL/SQL
Learn PLSQL Tutorial
Rename an Index Partition
Rename an Index Partition example In oracle database to rename an index partition you must use the command alter index with RENAME PARTITION keyword. — create Range-Partitioned Global Index CREATE INDEX amount_idx ON orders (amount) GLOBAL PARTITION BY RANGE (amount) (PARTITION part_1 VALUES LESS THAN (1000), PARTITION part_2 VALUES LESS THAN (2000), PARTITION part_3 VALUES…(Continue Reading)
Enable an Function-Based Index
Enable an Function-Based Index example To enable an oracle database Function-Based index you must use the command alter index with ENABLE keyword. The status of index will change from disable to enable. — disable Index using ENABLE ALTER INDEX CITY_IDX ENABLE; Output: index CITY_IDX altered. Check indexes select INDEX_NAME, INDEX_TYPE, STATUS, FUNCIDX_STATUS from USER_INDEXES WHERE…(Continue Reading)
Disable an Function-Based Index
Disable an Function-Based Index example To disable an oracle database Function-Based index you must use the command alter index with DISABLE keyword. The status of index will change from enable to disable. — disable Index using DISABLE ALTER INDEX CITY_IDX DISABLE; Output: index CITY_IDX altered. Check indexes select INDEX_NAME, INDEX_TYPE, STATUS, FUNCIDX_STATUS from USER_INDEXES WHERE…(Continue Reading)
Enable an Index
Enable an Index example In Oracle database to enable an index you must use the command alter index with rebuild keyword. The status of index will change from unusable to valid. — enable Index using REBUILD ALTER INDEX STU_LN_IDX REBUILD; Output: index STU_LN_IDX altered. Check indexes select INDEX_NAME, INDEX_TYPE, STATUS from USER_INDEXES WHERE table_name=’STUDENTS_LIST’; Output:…(Continue Reading)