今天移动表到另一个表空间出现 :ORA-01502 Index state unusable
来源:互联网 发布:linux more命令退出 编辑:程序博客网 时间:2024/05/21 15:03
今天无意中看到有几个业务表在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;
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
- 今天移动表到另一个表空间出现 :ORA-01502 Index state unusable
- OGG-00665 (status = 1502-ORA-01502: index 'index' or partition of such index is in unusable state)
- 解决ORA-01502 state unusable错误成因
- 分析和解决 ORA-01502: index '某分区表索引名' or partition of such index is in unusable state
- ORA-20000: index " "." " or partition of such index is in unusable state
- ORA-20000: index " "." " or partition of such index is in unusable state
- ORA-20000 index ...or partition of such index is in unusable state
- ORA-20000: index "FCSASUSER"."IDX_DN_TREE_ID" 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
- oracle中如何将一个表从一个表空间中移动到另一个表空间
- oracle 将表从一个表空间移动到另一个表空间
- oracle中如何将一个表从一个表空间中移动到另一个表空间
- 数据表从一个表空间中移动到另一个表空间中
- ORA-01502 state unusable錯誤成因和解決方法(一)
- (转)ORA-01502 state unusable錯誤成因和解決方法
- oracle 脚本(2)-修复 status 为 unusable 的 index(ORA-01502)
- String
- 网卡混杂模式
- c#实现定时任务(Timer)
- android4.0默认界面旋转180
- 第五周实验报告(任务一)《默认参数的构造函数》
- 今天移动表到另一个表空间出现 :ORA-01502 Index state unusable
- 在VS后台接收GridView中绑定的数据
- 高斯消去法与列选主元的高斯消去法-matlab实现
- Linux socket断开连接的怪异
- Linux下patch的制作和应用
- struts2 标签 分页 (数字+省略号)
- PL/SQL表---table()函数用法
- mysql Sphinx在windows下安装使用[支持中文全文检索]
- RTP时间戳