oracle bitmap join index

本文介绍了位图联合索引的基本概念及创建方法。位图联合索引定义于单一表上,存储事实表中与维度表列对应的行标识符。文章详细解释了如何通过ON、FROM和WHERE子句定义索引,并列举了创建位图联合索引时的一些限制条件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下面是官网对于位图联合索引的说明

Use the bitmap_join_index_clause to define a bitmap join index. A bitmap join index is defined on a single table. For an index key made up of dimension table columns, it stores the fact table rowids corresponding to that key. In a data warehousing environment, the table on which the index is defined is commonly referred to as afact table, and the tables with which this table is joined are commonly referred to asdimension tables. However, a star schema is not a requirement for creating a join index.

ON In the ON clause, first specify the fact table, and then inside the parentheses specify the columns of the dimension tables on which the index is defined.

FROM In the FROM clause, specify the joined tables.

WHERE In the WHERE clause, specify the join condition.

If the underlying fact table is partitioned, you must also specify one of the local_partitioned_index clauses (see local_partitioned_index ).

Restrictions on Bitmap Join Indexes In addition to the restrictions on bitmap indexes in general (seeBITMAP), the following restrictions apply to bitmap join indexes:

  • You cannot create a bitmap join index on an index-organized table or a temporary table.

  • No table may appear twice in the FROM clause.

  • You cannot create a function-based join index.

  • The dimension table columns must be either primary key columns or have unique constraints.

  • If a dimension table has a composite primary key, each column in the primary key must be part of the join.

  • You cannot specify the local_index_clauses unless the fact table is partitioned.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值