rebuild index出错?

[复制链接]
查看11 | 回复9 | 2010-2-11 01:01:06 | 显示全部楼层 |阅读模式
我的表中有2.7亿条记录,分成183个分区,我昨天truncate一个分区后,在插入数据报错ORA-01502: index 'INDX_JIAOYSJ01' or partition of such index is error,发现这个表的一个索引被破坏,提示需要重建这个索引,这个索引有一个字段10个字节,我重建时又报错ORA-01652: unable to extend temp segment by 640 in tablespace TEMP_APP01,提示临时表空间不够,需要增加,结果我由原来的900M增加到现在的7.4G,却还是报错ORA-01630: max # extents (805) reached in temp segment in tablespace TEMP_APP01,
请问高手有什么更好的办法?或者如何计算这个临时表空间的大小?我已经从昨天下午4:00整到现在了,哭……
回复

使用道具 举报

千问 | 2010-2-11 01:01:06 | 显示全部楼层
ORA-01502 index 'string.string' or partition of such index is in unusable state
Cause: An attempt has been made to access an index or index partition that has
been marked unusable by a direct load or by a DDL operation.
Action: DROP the specified index, or REBUILD the specified index, or
REBUILD the unusable index partition.
回复

使用道具 举报

千问 | 2010-2-11 01:01:06 | 显示全部楼层
你的数据库版本是8i吧?
失效的索引是local的还是global的?
把问题描述的清晰一些
回复

使用道具 举报

千问 | 2010-2-11 01:01:06 | 显示全部楼层
索引所在的表空间有多少剩余空间??
回复

使用道具 举报

千问 | 2010-2-11 01:01:06 | 显示全部楼层
请问版主大人,是不是我truncate一个partition所引起的呢?
怎么rebuild这个分区的索引?
谢谢指教!
回复

使用道具 举报

千问 | 2010-2-11 01:01:06 | 显示全部楼层
最初由 yangtingkun 发布
[B]你的数据库版本是8i吧?
失效的索引是local的还是global的?
把问题描述的清晰一些 [/B]

是oracle805的,怎么看索引是local还是global的?我是一菜鸟,唉,没办法,只能求助各位了!
回复

使用道具 举报

千问 | 2010-2-11 01:01:06 | 显示全部楼层
oracle的提示
却还是报错ORA-01630: max # extents (805) reached in temp segment in tablespace TEMP_APP01,
----------------------------------------------------------------------------------------------------------------------------------------------------------------
提示tablespace TEMP_APP01最大的extents数是805,你把它加大不就可以了吗?
回复

使用道具 举报

千问 | 2010-2-11 01:01:06 | 显示全部楼层
图例
回复

使用道具 举报

千问 | 2010-2-11 01:01:06 | 显示全部楼层
SELECT INDEX_NAME,TABLE_NAME,LOCALITY FROM DBA_PART_INDEXES ;
看locality是global还是local
回复

使用道具 举报

千问 | 2010-2-11 01:01:06 | 显示全部楼层
ORA-01630: max # extents (string) reached in temp segment in tablespace string
Cause: A temporary segment tried to extend past MAXEXTENTS.
Action: If MAXEXTENTS for the tablespace is less than the system maximum, you can raise that. Otherwise, raise PCTINCREASE for the tablespace.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行