Bo's Oracle Station

查看: 1297|回复: 0

第21/22/23/24单:2015-10-17和2015-10-18双休

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2015-10-19 16:53:10 | 显示全部楼层 |阅读模式
  1. select  i.index_name , ip.partition_name , decode(ip.status  , null,i.status, ip.status)  
  2.   from dba_indexes i , dba_ind_partitions   ip
  3.   where i.index_name=ip.index_name(+)      and i.table_name='ORDERS'   and i.owner='SH';
  4.   
  5.   
  6.   
  7. select  * from dba_part_indexes i where  i.table_name ='ORDERS'  and i.owner='SH';
复制代码
  1. select  *  from dba_segments s where s.owner='SH' and s.segment_name in ('ORDERS','ORDER_ITEMS');


  2. select  *  from
  3. dba_tab_partitions t where t.table_name  in ('ORDERs','ORDER_ITEMS') and  t.table_owner='SH'

  4. order by  t.partition_position,t.table_name;
复制代码



回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-20 10:24 , Processed in 0.035264 second(s), 24 queries .

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