ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 索引检查

索引检查

Linux操作系统 作者:zzhuaze 时间:2022-03-23 14:00:46 0 删除 编辑

--检查对象有效性
select object_name, object_type, status from user_objects where status <> 'VALID';


--索引列查看
select  index_name, COLUMN_NAME
from user_ind_columns where table_name='SMSG_LOGS'  order by 1;
 
--检查索引在哪些列上
select index_name, column_name , table_name from user_ind_columns  order by 1;

--检查索引状态及是否分区
select index_name, status,partitioned  from user_indexes where table_name='SMSG_LOGS'

--查看索引占用多大空间(M);
 select sum(u.BYTES)/1024/1024 from user_segments u where u.segment_name='SYS_C0026464';

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70015609/viewspace-2883518/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2022-03-22

  • 博文量
    12
  • 访问量
    3619