Bo's Oracle Station

查看: 1769|回复: 0

第119-120次:2015-03-30星期一, 2015-04-01星期三

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2015-3-31 08:11:44 | 显示全部楼层 |阅读模式
本帖最后由 botang 于 2015-4-3 21:23 编辑
  1. select  i.INDEX_NAME ,i.STATUS from dba_indexes i where i.TABLE_NAME  like 'T%00' and i.OWNER='SH';

  2. select  * from dba_part_indexes i where i.TABLE_NAME='ORDERS' and i.OWNER='SH';

  3. SELECT ui.index_name, DECODE(uip.status,null,ui.status,uip.status)
  4. FROM dba_ind_partitions uip, dba_indexes ui
  5. WHERE ui.index_name=uip.index_name(+)
  6. AND ui.table_name='ORDERS' and ui.OWNER='SH'
  7. GROUP BY ui.index_name, DECODE(uip.status,null,ui.status,uip.status);


  8. select t.PARTITIONING_TYPE, t.TABLE_NAME, t.REF_PTN_CONSTRAINT_NAME ,t.INTERVAL
  9. from dba_part_tables t where t.TABLE_NAME in ('T100','T200','T300')  and t.OWNER='SH';


  10. select tp.TABLE_NAME,     tp.PARTITION_NAME, tp.HIGH_VALUE ,tp.TABLESPACE_NAME
  11.    from dba_tab_partitions tp where tp.TABLE_NAME in ('T100','T200','T300')  and  tp.TABLE_OWNER='SH'
  12.    order by tp.table_NAME , tp.PARTITION_NAME;
  13.    
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-3-29 07:49 , Processed in 0.029855 second(s), 24 queries .

快速回复 返回顶部 返回列表