The power of 64-bit computing can be imaged when you consider the thearetical limit for addressable memory. In unsigned 16-bit computing, we could directly address 64k of memory. For a standard oracle database, this allowed a tremendously increased system global area. The sga is where the most often used data can be stored and kept in memory for fast access.
Oracle offers a variety of indexing options. Knowing which options to use in a given situation can be crucial to an application's performance.
When accessing data from tables, oracle has two options: to read every row in the table or to access a single row at a time by ROWID. When accessing a small percentage of the rows of a large table, you would want to use an index.
The degree to which indexs help perfomance depends partly on the selectivity of the data and the way in which the data is distributed among the table's blocks.
Indexes will generally improve performance for queries. SELECT,the WHERE clauses of UPDATE commands and the WHERE clauses of DELETE statements can benefit form indexes.
When a single index has multiple columns that are indexed, it is called a concatenated or composite index. When oracle 9i's introduction of skip-scan index access has increased the optiomizer's options when using concatenated indexes. you should be careful when selecting the order of the columns in the index. In gerneral, the leading column of the index should be the one most likeing to be used in WHERE clauses and also the most selective column of the set.
Prior to the intorduction of skip-scan functionality, queries could only use the index if the leading column of the index was used in the WHERE clause.The two most common types of index scans are unique scans and range scans. In a unqiue scan, the database knows that the index contains a list of unique values. In a range scan, the database will be returning multiple values from the index according to the query criteria.
When you create a primary key or a unique constraint, oracle will automatically create a unique index based on the columns you specify. If you create a multicolumn primary key, oracle will create a concatenated index with the columns in the same order in which you specified them when creating the primary key.
Indexes can only be used to find data that exists within a table. Unless you are using function-based indexes, using functions on indexed columns in WHERE clauses of a SQL statement will cause the optimizer to bypass indexes.
The clustering factor is a measure of the ordered-ness of an index in comparision to the table that it is based on. It is used to check the cost of a table lookup following an index access. The clustering factor records the number of blocks that will be read when scanning the index. If the index being used has a large clustering factor, then more table data blocks have to be vistited in order to get the rows in each index block. If the clustering factor is close to the number of blocks in the table, then the index is well ordered.
The Clustering_factor column in the user_indexes view gives an indication as to how organized the data is compared to the indexed column. The clustering factor can have an impact on SQL statements that perform range scans.
分享到:
相关推荐
Oracle Tuning的目的是提高系统的响应速度,减少资源消耗,确保数据库系统稳定高效运行。下面将详细讨论这些关键知识点。 一、SQL优化 SQL优化是Oracle性能调整的核心部分,主要通过分析和改写SQL语句来提升查询...
Oracle Tuning主要包括以下几个方面:SQL调优、数据库结构优化、内存管理、进程与并行性设置、I/O系统优化以及数据库参数调整。 1. SQL调优:SQL查询是数据库操作的核心,优化SQL语句可以显著提升系统性能。这包括...
Oracle Enterprise Manager Database Tuning Pack是Oracle公司提供的一个全面的性能诊断和优化解决方案,它针对的是Oracle数据库的9.0.1版本。 在数据库管理中,调优是确保系统高效运行的关键步骤,它可以提升系统...
Oracle Tuning是对数据库性能进行优化的关键过程,旨在提高Oracle数据库的效率和响应速度。这个过程主要涉及两个核心方面:一是数据库自身的配置优化,包括Shared Global Area (SGA)的设置,二是应用程序和SQL语句的...
Oracle Tuning (Oracle 性能调整)的一些总结关于Oracle的性能调整,一般包括两个方面,一是指Oracle数据库本身的调整,比 如SGA、PGA的优化设置,二是连接Oracle的应用程序以及SQL语句的优化。做好这两个方面的 优化...
Oracle Tuning是一个重要的数据库管理任务,它涉及到对Oracle数据库本身及与其交互的应用程序进行优化,以提高系统的性能和效率。本文主要围绕Oracle Tuning的两个关键方面展开:Oracle数据库的内部调整,特别是...
Oracle数据库调优是一个复杂而关键的过程,涉及到多个层面,包括数据存储、查询访问路径、并发控制、SQL处理以及优化器的选择。以下是对这些知识点的详细解释: 1. 数据存储: - 堆表:最常见的数据存储方式,数据...
本文将深入探讨Oracle 7版本的调优方法,基于文档《Oracle 7 Server Tuning》(发布号A32537–1,1996年6月),旨在为数据库管理员提供详实的指导。 ### 一、Oracle 7性能调优基础 #### 1.1 内存管理 Oracle 7的...
AIX操作系统下的Oracle数据库调优是一项涉及多个系统层级的工作,它要求对AIX系统架构以及Oracle数据库的运行机制有深刻的理解。本文档基于IBM Power Systems Technical University的材料,旨在提供针对AIX环境下的...
This book is a quick-reference guide for tuning Oracle SQL. This is not a comprehensive Oracle tuning book. The purpose of this book is to give you some light reading material on my "real world" ...
Oracle SQL Tuning with Oracle SQLTXPLAIN: Oracle Database 12c Edition by Stelios Charalambides English | 8 May 2017 | ISBN: 1484224353 | 408 Pages | PDF | 24.39 MB Learn through this practical guide ...
SQL_Tuning是Oracle官方提供的一个专题,旨在帮助管理员和开发人员优化SQL查询,从而提高数据库的效率和响应时间。以下是一些关于"Oracle SQL Tuning"的重要知识点: 1. **SQL执行计划**:SQL执行计划是Oracle解析...
通过合理利用Oracle Diagnostics Pack、Oracle Database Tuning Pack和Oracle Enterprise Manager等功能,可以有效地提高数据库的整体性能。遵循文档中的建议和步骤,即使是经验较少的用户也能在短时间内显著改善...
Oracle Performance Tuning Guide
Oracle数据库管理是数据库管理员(DBA)日常工作中不可或缺的一部分,涉及到用户管理、系统参数配置、表空间操作等多个方面。在Oracle环境中,以下是一些关键的知识点: 1. **用户管理**: - `ALTER USER`语句用于...
在这个"Oracle SQLTuning Workshop"中,虽然资料可能源自2004年,但它依然包含了许多至今仍具价值的基础知识和实践经验。以下是一些核心知识点的详细说明: 1. **SQL基础**:SQL(结构化查询语言)是用于管理和处理...
《Oracle® Database 2 Day + Performance Tuning Guide》(11g Release 2(11.2)版)是一本全面介绍Oracle性能调优的专业指南,由Lance Ashdown、Immanuel Chan等多位Oracle专家共同编写。 #### 书籍概述 本书...
Oracle SQL Tuning with Oracle SQLTXPLAIN,Oracle SQL Tuning with Oracle SQLTXPLAIN,Oracle SQL Tuning with Oracle SQLTXPLAIN