美文网首页
Oracle-索引

Oracle-索引

作者: 爱恨_交加 | 来源:发表于2020-01-20 00:42 被阅读0次

概述

Indexes are optional structures associated with tables and clusters that allow SQL queries to execute more quickly against a table. 添加索引可以加快SQL在表上查询数据的速度。

Indexes are logically and physically independent of the data in the associated table. Being independent structures, they require storage space. You can create or drop an index without affecting the base tables, database applications, or other indexes. The database automatically maintains indexes when you insert, update, and delete rows of the associated table. If you drop an index, all applications continue to work. However, access to previously indexed data might be slower. 索引的增删不会影响其关联表、数据应用和其它索引等。删除索引带来的主要影响是访问数据的速度可能变慢。

以下是Oracle提供的几种索引方案及其应用场景:

B-tree indexes: ***最常用的且是默认的***

B-tree cluster indexes: defined specifically for cluster

Hash cluster indexes: defined specifically for a hash cluster

Global and local indexes: relate to partitioned tables and indexes

Reverse key indexes: most useful for Oracle Real Application Clusters applications

Bitmap indexes: compact; work best for columns with a small set of values

Function-based indexes: contain the precomputed value of a function/expression

Domain indexes: specific to an application or cartridge.

相关文章

  • Oracle-索引

    概述 Indexes are optional structures associated with tables...

  • oracle-索引3

    数据库版本:oracle12c 前几部分都是说的关于索引的理论,今天就主要来聊聊在日常使用过程中,我们该怎么使用这...

  • oracle-索引(简)

    对于所有开发工程师(农民工)来说,数据库索引简直就是神器,遇事不决先建立索引再说。先不管建立索引有什么影响,只要有...

  • oracle-索引2

    数据库版本:oracle12c 索引三个主要特性的应用: 1,索引的深度低:前面我们说过btree的深度一般都是2...

  • 在Windows中 基于Oracle GoldenGate (O

    Oracle GoldenGate Windows平台oracle->oracle单向数据同步,试验环境: 一、O...

  • Oracle GoldenGate 之 Oracle ->

    新手安装配置请参考:在Windows中 基于Oracle GoldenGate (OGG)进行Oracle->Or...

  • Oracle GoldenGate 之 SQL Server -

    新手安装配置请参考:在Windows中 基于Oracle GoldenGate (OGG)进行Oracle->Or...

  • Windows、Oracle数据库以及数据库管理工具的安装部署

    1.安装包 Oracle-> 链接:https://pan.baidu.com/s/106VmqnfyJAQw7A...

  • oracle-事务

    什么是事务? 一个不可分割的子操作形成一个整体,该整体要么全部执行成功,要么全部执行失败。例如:转账(a用户余额5...

  • oracle-视图

    什么是视图【View】? (1)视图是一种虚表(2)视图建立在已有表的基础上, 视图赖以建立的这些表称为基表(3)...

网友评论

      本文标题:Oracle-索引

      本文链接:https://www.haomeiwen.com/subject/aczkoctx.html