select tablespace_name from dba_segments where segment_name='WRH$_ACTIVE_SESSION_HISTORY';
alter table WRH$_ACTIVE_SESSION_HISTORY move partition WRH$_ACTIVE_3280711463_1505 tablespace system;
select dbms_metadata.get_ddl('TABLE','AUD$','SYS') from dual;
select owner,index_name,status from dba_indexes where wner='SYS' and table_name='$WRH_ACTIVE_SESSION_HISTORY';
----重建索引:
alter index WRH$_ACTIVE_SESSION_HISTORY_PK rebuild partition WRH$_ACTIVE_3280711463_1505 tablespace SYSAUX;
----查询重建索引:
select partition_name,status,tablespace_name from dba_ind_partitions where index_name='WRH$_ACTIVE_SESSION_HISTORY_PK'
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24145320/viewspace-701549/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24145320/viewspace-701549/
Oracle表分区及索引管理
本文介绍如何在Oracle数据库中进行表分区移动、获取表定义、查询索引状态及重建索引等操作。通过具体SQL命令展示了如何改变特定分区的表空间、获取指定表的DDL、查询系统所有者下的索引状态以及如何重建特定分区的索引。
43

被折叠的 条评论
为什么被折叠?



