分区表数据清理一则
(2011-09-06 10:41:53)
标签:
杂谈 |
分类: 学习心得 |
关于分区表数据清理,这里做下记录,便于以后查找:
1、查看每个子分区的记录
select TABLE_NAME,PARTITION_NAME,NUM_ROWS from
dba_tab_partitions
where table_name='NHM_INTERFACE_KPI'
and TABLE_OWNER='NHM'
and num_rows <> 0
order by PARTITION_NAME;
TABLE_NAME
------------------------------ ------------------------------
----------
NHM_INTERFACE_KPI
NHM_INTERFACE_KPI
NHM_INTERFACE_KPI
NHM_INTERFACE_KPI
NHM_INTERFACE_KPI
NHM_INTERFACE_KPI