In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
ORA-01502: the index or the partition of such an index is unavailable
Reason: this problem occurs, someone may move over the table, or disable over the index.
1. After the alter table xxxxxx move tablespace xxxxxxx command, the index becomes invalid.
2. Alter index index_name unusable, command invalidates the index.
Solution:
1. Rebuilding the index is the complete way to solve this kind of problem.
Alter index index_name rebuild (online)
Or alter index index_name rebuild.
two。 In the case of a partition index, only the invalid partition needs to be rebuilt.
Alter index index_name rebuild partition partition_name (online)
Or alter index index_name rebuild partition partition_name.
3. Or change the name of the current index.
Description:
1. Alter session set skip_unusable_indexes=true; can skip invalid indexes at the session level to make queries.
two。 The partitioned index should apply user_ind_partitions.
3. There are 4 kinds of status:
NCMA indicates that this partition index needs to check user_ind_partitions or user_ind_subpartitions to determine whether each partition is available.
VAILD indicates that this index is available
UNUSABLE indicates that this index is not available
USABLE indicates that the partition of this index is available.
4. Query the status of the current index: select distinct status from user_indexes
5. It is invalid to query that index: select index_name from user_indexes where status' VALID'
6. For more information, please refer to http://www.sudu.cn/info/html/edu/20071225/20526.html.
7. Batch rebuild: select 'alter index' | | index_name | | 'rebuild online;' from user_indexes where status' VALID' and index_name not like'%$$'
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.