今天移动表到另一个表空间出现 :ORA-01502 Index state unusable
2012-03-20 17:59
316 查看
今天无意中看到有几个业务表在system表空间,看着不爽,就移动了这些表到业务表空间。
alter table aplm.T_BG_CUST_VISIT_REPORT_D move tablespace APLM_DATA;
alter table aplm.T_BG_CUST_VISIT_REPORT_FILE_D move tablespace APLM_DATA;
alter table aplm.T_BG_CUST_VISIT_REPORT_FILE_M move tablespace APLM_DATA;
alter table aplm.T_BG_CUST_VISIT_REPORT_M move tablespace APLM_DATA;
alter table aplm.T_CL_PRODUCT_TRACE_D move tablespace APLM_DATA;
alter table aplm.T_CL_PRODUCT_TRACE_IMPORT move tablespace APLM_DATA;
alter table aplm.T_CL_PRODUCT_TRACE_M move tablespace APLM_DATA;
alter table aplm.T_DH_ORDER_ANALYSIS move tablespace APLM_DATA;
alter table aplm.T_DH_ORDER_PARTS_ANALYSIS move tablespace APLM_DATA;
alter table aplm.T_DH_ORDER_PARTS_IMPORT move tablespace APLM_DATA;
alter table aplm.T_JC_PRODUCT_TYPE move tablespace APLM_DATA;
alter table aplm.T_JC_PRODUCT_TYPE_SHOPSIGN move tablespace APLM_DATA;
alter table aplm.T_JC_PRODUCT_TYPE_STEEL move tablespace APLM_DATA;
alter table aplm.T_LBJ_PART_IMAGE move tablespace APLM_DATA;
alter table aplm.T_LBJ_PART_MGR_IMPORT move tablespace APLM_DATA;
alter table aplm.T_SS_CODE_VALUE move tablespace APLM_DATA;
alter table aplm.T_SS_CUSTOMER move tablespace APLM_DATA;
alter table aplm.T_SS_PERS move tablespace APLM_DATA;
alter table aplm.T_XS_SALES_TRACE move tablespace APLM_DATA;
alter table aplm.T_BS_EPS_USERS move tablespace APLM_DATA;
移动完以后,用户插入数据的时候报
ORA-01502: index 'XXXXXXXX' or partition of such index is in unusable state”错误。
查看
select * from user_indexes where status = 'UNUSABLE';
发现里面有好多'UNUSABLE'状态的索引
解决办法:
alter session set skip_unusable_indexes=false;
alter index xxxxx rebuild;
重建所有索引;
问题解决
链接:http://space.itpub.net/7551038/viewspace-613707
alter table aplm.T_BG_CUST_VISIT_REPORT_D move tablespace APLM_DATA;
alter table aplm.T_BG_CUST_VISIT_REPORT_FILE_D move tablespace APLM_DATA;
alter table aplm.T_BG_CUST_VISIT_REPORT_FILE_M move tablespace APLM_DATA;
alter table aplm.T_BG_CUST_VISIT_REPORT_M move tablespace APLM_DATA;
alter table aplm.T_CL_PRODUCT_TRACE_D move tablespace APLM_DATA;
alter table aplm.T_CL_PRODUCT_TRACE_IMPORT move tablespace APLM_DATA;
alter table aplm.T_CL_PRODUCT_TRACE_M move tablespace APLM_DATA;
alter table aplm.T_DH_ORDER_ANALYSIS move tablespace APLM_DATA;
alter table aplm.T_DH_ORDER_PARTS_ANALYSIS move tablespace APLM_DATA;
alter table aplm.T_DH_ORDER_PARTS_IMPORT move tablespace APLM_DATA;
alter table aplm.T_JC_PRODUCT_TYPE move tablespace APLM_DATA;
alter table aplm.T_JC_PRODUCT_TYPE_SHOPSIGN move tablespace APLM_DATA;
alter table aplm.T_JC_PRODUCT_TYPE_STEEL move tablespace APLM_DATA;
alter table aplm.T_LBJ_PART_IMAGE move tablespace APLM_DATA;
alter table aplm.T_LBJ_PART_MGR_IMPORT move tablespace APLM_DATA;
alter table aplm.T_SS_CODE_VALUE move tablespace APLM_DATA;
alter table aplm.T_SS_CUSTOMER move tablespace APLM_DATA;
alter table aplm.T_SS_PERS move tablespace APLM_DATA;
alter table aplm.T_XS_SALES_TRACE move tablespace APLM_DATA;
alter table aplm.T_BS_EPS_USERS move tablespace APLM_DATA;
移动完以后,用户插入数据的时候报
ORA-01502: index 'XXXXXXXX' or partition of such index is in unusable state”错误。
查看
select * from user_indexes where status = 'UNUSABLE';
发现里面有好多'UNUSABLE'状态的索引
解决办法:
alter session set skip_unusable_indexes=false;
alter index xxxxx rebuild;
重建所有索引;
问题解决
链接:http://space.itpub.net/7551038/viewspace-613707
相关文章推荐
- OGG-00665 (status = 1502-ORA-01502: index 'index' or partition of such index is in unusable state)
- 分析和解决 ORA-01502: index '某分区表索引名' or partition of such index is in unusable state
- ORA-01502: index 'INDEX_NAME' or partition of such index is in unusable state
- ORA-01502: index ‘index_name' or partition of such index is in unusable state
- ORA-01502 state unusable錯誤成因和解決方法(一)
- 解决ORA-01502 state unusable错误成因
- ORA-14517: Subpartition of index "string.string" is in unusable state
- ORA-01502 state unusable错误成因和解决方法[转]
- oracle 脚本(2)-修复 status 为 unusable 的 index(ORA-01502)
- SQLException ORA-01502 index VHL_V6.PK_WEB_APP_TGT_OBJ or partition of such index is in unusable state
- ORA-01502 state unusable错误成因和解决方法(二)
- 解决ORA-01502 state unusable错误成因
- oracle 脚本(2)-修复 status 为 unusable 的 index(ORA-01502)
- oracle 脚本(2)-修复 status 为 unusable 的 index(ORA-01502)
- ORA-01502 state unusable错误成因和解决方法(一)
- 滑动RecyclerView时出现异常: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 6(offset:6).state:30
- 在表空间有足够free space的情况下出现ORA-1652
- mac 上格式化移动硬盘出现MediaKit报告设备上的空间不足以执行请求的解决办法
- 删除表空间,提示:ORA-00604: 递归 SQL 级别 1 出现错误,如何解决
- oracle 将表从一个表空间移动到另一个表空间