Chinaunix首页 | 论坛 | 博客
  • 博客访问: 929752
  • 博文数量: 358
  • 博客积分: 8185
  • 博客等级: 中将
  • 技术积分: 3751
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:27
个人简介

The views and opinions expressed all for my own,only for study and test, not reflect the views of Any Company and its affiliates.

文章分类

全部博文(358)

文章存档

2012年(8)

2011年(18)

2010年(50)

2009年(218)

2008年(64)

我的朋友

分类: Oracle

2009-11-05 12:37:08

今天表空间监视时,发现用Group by建物理表的后,会产生一个Index 在该用户默认的表空间中。
create materialized view XXXMV_1
refresh force on demand
as
(
SELECT KEY16,
       KEY14,
       MAX(REC_ID) rec_id
FROM XXX
WHERE XXX.a = '0'
      AND b = '0'
GROUP BY KEY16,
         KEY14
);
会产生一个函数索引在默认表空间XXXXX 上。
ddl如下:
create unique index I_SNAP$_XXXMV_1 on XXXMV_1 (SYS_OP_MAP_NONNULL(KEY16), SYS_OP_MAP_NONNULL(KEY14))
 tablespace XXXXX 
 pctfree 10
  initrans 2
  maxtrans 255
  storage
  (
    initial 64K
    minextents 1
    maxextents unlimited
  );
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
SYS_OP_MAP_NONNULL查下资料如下:
In Oracle, NULL does not equal NULL:
This function makes it possible to have NULL = NULL:
 
 
 
阅读(1503) | 评论(0) | 转发(0) |
0

上一篇:综合练习

下一篇:top & ps

给主人留下些什么吧!~~