oracle数据库分区索引概念
转载
https://www.cnblogs.com/hllnj2008/p/4796309.html
查看表中索引基本命令:
select * from user_indexes where table='表名' ;
select * from all_indexes where table_name='表名' ;.
查看索引被索引的字段:
select * from user_ind_columns where index_name='';
select * from all_ind_columns where index_name='';
查看TEMP临时表空间占用多的sql有哪些:
select sess.username, sql.sql_text, sort1.blocks
from v$session sess, v$sqlarea sql, v$sort_usage sort1
where sess.serial# = sort1.session_num
and sort1.sqladdr = sql.address
and sort1.sqlhash = sql.hash_value and sort1.blocks > 200;