select user_ind_columns.index_name,user_ind_columns.column_name,
user_ind_columns.column_position,user_indexes.uniqueness,user_ind_columns.table_name
from user_ind_columns,user_indexes
where user_ind_columns.index_name = user_indexes.index_name
and user_ind_columns.table_name = 'TT';
INDEX_NAME COLUMN_NAM COLUMN_POSITION UNIQUENES TABLE_NAME
------------------------------ ---------- --------------- --------- ------------------------------
ID_INX ID 1 NONUNIQUE TT
ID_NAME_IDX ID 1 NONUNIQUE TT
ID_NAME_IDX NAME 2 NONUNIQUE TT2 查看分区表每个分区的数据量有多少
analyze table table_name compute statistics;
select TABLE_NAME,PARTITION_NAME,HIGH_VALUE,NUM_ROWS from all_tab_partitions where table_name='TLOG';( HIGH_VAL也就是分区)
TABLE_NAME PARTITION_NAME HIGH_VAL NUM_ROWS
------------------------------ ------------------------------ -------- ----------
TLOG TLOG_20150504 20150505 303437
TLOG TLOG_20150521 20150522 303437
TLOG TLOG_20150505 20150506 303437
TLOG TLOG_20141218 20141219 303437
TLOG TLOG_20150215 20150216 303437
TLOG TLOG_20150118 20150119 303437
select * from all_PART_KEY_COLUMNS where name='TLOG';
OWNER NAME OBJECT_TYPE COLUMN_NAME COLUMN_POSITION
------------------------------ ------------------------------ ----------- ---------------
APPUSER TLOG TABLE CUTOFFDAY 1select INDEX_NAME, PARTITION_NAME from dba_ind_partitions where index_name=upper('orders_global_1_idx');
点击(此处)折叠或打开
点击(此处)折叠或打开
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29096438/viewspace-1475997/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29096438/viewspace-1475997/