首页 > 数据库 ><ORACLE NOTE> 1. Partition table Management --- 分区表分区索引重建

<ORACLE NOTE> 1. Partition table Management --- 分区表分区索引重建

时间:2023-02-06 16:11:40浏览次数:47  
标签:STATUS index Management NAME dba Partition t2 t1 分区表

SELECT 'alter index '||t2.owner||'.'||t1.INDEX_NAME||' rebuild partition '||t1.PARTITION_NAME||' online;',
t1.STATUS
FROM dba_ind_partitions t1, dba_indexes t2
where t1.index_name = t2.index_name
AND t1.STATUS = 'UNUSABLE' ;

SELECT 'alter index '||t1.index_owner||'.'||t1.INDEX_NAME||' rebuild partition '||t1.PARTITION_NAME||' online;',
t1.STATUS
FROM dba_ind_partitions t1
where t1.STATUS = 'UNUSABLE' ;

标签:STATUS,index,Management,NAME,dba,Partition,t2,t1,分区表
From: https://www.cnblogs.com/sage914/p/17095709.html

相关文章