Oracle 优化之分区索引(初识)
partitioned indexes local partitioned index ...
Oracle 优化之分区 range,list,hash partitioning tables 初识
Partitioning table 初识,区分(堆表与分区表、分区特性) 1、create range partition table CREATE TABLE time_range_sales ( prod_id NUM...
Oracle 10g 优化之分区 What are number-of-subpartitions
What are number-of-subpartitions of composite range-hash partitioning tables (number of subpartitions在组合分区表中的作用)? 10g官档中:http://docs.oracle.com/cd/B19306_01/server.102/b14231/par...
Oracle 优化之SQL CTAS优化FLASHBACK_TRANSACTION_QUERY
CTAS优化FLASHBACK_TRANSACTION_QUERY查询使用 问题:FLASHBACK_TRANSACTION_QUERY 使用where的查询,执行很慢近8分钟(00:07:58.76)、consistent gets近3百万(3260345)。每次查询竟然需要8分钟 ,实...
Oracle 优化之SQL(Index-Organized Tables优化精确查询和范围查询)
高效的SQL(Index-Organized Tables优化精确查询和范围查询) 本文3部分1、创建索引组织表(PCTTHRESHOLD和OVERFLOW的意义)2、索引组织表中删除大量数据及重建索引(不是index rebuild而是alter table tab...
Oracle 优化之SQL(Function-based Indexes 函数、运算优化思路)
高效的SQL(Function-based Indexes 函数、运算优化思路) ①Function-based Indexes situations1、 UPPER function http://www.oracle-base.com/articles/8i/function-based-indexes.php2、&n...
Oracle 优化之SQL(bitmap indexes optimize low cardinality columns)
高效的SQL(bitmap indexes optimize low cardinality columns) ①Bitmap indexes situations1、 indexed columns have low cardinality2、 redo-only or not subject to significant modification...
Oracle 优化之SQL(index skip scan使用条件)
高效的SQL(index skip scan使用条件) Index Skip ScanIndex skip scans improve index scans by nonprefix columns. Often, scanning index blocks is faster than scanning table data blocks.Skip scan...
Oracle 优化之SQL【Composite Indexes(最佳前导列的选择)】
Composite Indexes(最佳前导列的选择) 一、前导列是否有序对composite indexes的影响大 1、创建表t1(x,y) x有序列,y随意列doudou@TEST> begin 2 for i in 1.. 1000000 loop&n...
Oracle 优化之SQL优化(二)(联合索引的使用)
SQL优化(二)(联合索引的使用)问题11、从AWR中发现一条SQL性能较差,这条简单的SQL返回值仅仅一行缺消耗7000+cost觉不能忍受,决定优化!SQL> select count(*) from user_doudou where aclass=‘10001’ and e...
Oracle 优化之SQL(index values与index column values关系?)
'596849' reverse key index is? (转载asktom) 本文小实验来源ASKTOM网站,感谢http://asktom.oracle.com doudou@TEST>create table t (x number, y varchar2(10));doudou@TEST>insert into t val...
Oracle 优化之SQL( clustering factor减少COST)
高效的SQL( clustering factor减少COST) 1、创建样表cluster_factor(x有序列,y随意列);实验表cluster01(low)、cluster02(high)doudou@TEST> create table cluster_factor(x int, y int);Tabl...
Oracle 优化之SQL(Index unique scan最优化)
高效的SQL(Indexunique scan最优化) 1、 实验表test 唯一约束ID,test1 主键 ID 。(唯一约束与主键会自动创建索引)。另外建立一张没有约束的表test2与test1数据相同,但是没有主...
Oracle 优化之SQL(index range scan优化排序)
高效的SQL(index range scan优化排序) 一、 实验表表的结构、内容、索引(Data is returned in the ascending order of index columns. Multiple rows with identical values are ...
Oracle 优化之SQL Fast full index scan 浅析
Fast full index scan 浅析 Fast Full Index ScanA fast full index scan is a full index scan in which the database accesses the data in the index itself without accessing the table, and the datab...
Oracle 优化之SQL(隐式转换导致不走索引)
高效的SQL(隐式转换导致不走索引) 1、创建实验表doudou,索引创建在varchar2类型的id列上,索引名DOUDOU_INDEXdoudou@TEST> select count(*) from doudou; COUNT(*)---------- ...
Oracle 优化之SQL(一)
优化SQL (一) 今天开发同事提出一些SQL运行较慢,我一看执行结果很少。执行时间近14秒!不能忍受,对其进行优化! 执行时间优化结果优化前Elapsed: 00:00:13.97 优化后...
Oracle 优化之SQL主键与复合主键的性能分析
Oracle主键与复合主键的性能分析 总结:1、主键和复合主键,查询性能相同(索引高度相同,恰当的运用索引)。2、 主键和复合主键,(update,insert)性能不同 (因为复合主键会用更多的块来创建索引,...
Oracle 优化之大表truncate,列删除,shrink回收高水位
大数据表的truncate,列删除,shrink回收高水位 一、truncate 大数据表的操作1、 truncate相关表,truncate先删除数据字典中的该表所占用的空间记录2、 将表所占用的数据块全部释放3、&n...
Oracle 优化之SQL学习 20120505--20120508 文档
警示自己:允许我仅仅是每天翻译一点文档,但是让我了解了更多的正确的信息。值得!! 11.1 Introduction to SQL TuningAn important facet of database system performance tuning is the tuning of SQL st...