BC remote Oracle DBA - Call (800) 766-1884
Free Oracle Tips

Oracle Consulting Oracle Training Development

Remote DBA

 

Remote DBA Plans
Remote DBA Service

 
Remote DBA Oracle Home
Remote DBA Oracle Training
Remote DBA SQL Tuning Consulting
Remote DBA Oracle Tuning Consulting
Remote DBA Data Warehouse Consulting
Remote DBA Oracle Project Management
Remote DBA Oracle Security Assessment
Remote DBA Unix Consulting
Burleson Books
Burleson Articles
Burleson Web Courses
Burleson Qualifications
Oracle Internals Magazine
Oracle Links
Remote DBA Oracle Monitoring
Remote DBA Support Benefits
Remote DBA Plans & Prices
Our Automation Strategy
What We Monitor
Oracle Apps Support
Print Our Brochure
Contact Us (e-mail)
Oracle Job Opportunities
Oracle Consulting Prices





   

 

 

 

 

 

Oracle Using Sorted Hash Clusters

Oracle Tips by Burleson Consulting

This is an excerpt from "Oracle 10g New Features for Administrators" by Ahmed Baraka.

Sorted hash clusters are new data structures that allow faster retrieval of data for applications where data is consumed in the order in which it was inserted.

In a sorted hash cluster, the table’s rows are already presorted by the sort key column.

Here are some of its main features:

• You can create indexes on sorted hash clusters.

• You must use the cost-based optimizer, with up-todate statistics on the    sorted hash cluster tables.

• You can insert row data into a sorted hash clustered table in any order, but    Oracle recommends inserting them in the sort key column order, since it’s    much faster.

Creating Sorted Hash Cluster

CREATE CLUSTER call_cluster
(call_number NUMBER,
call_timestamp NUMBER SORT,
call_duration NUMBER SORT)
HASHKEYS 10000
SINGLE TABLE
HASH IS call_number
SIZE 50;

SINGLE TABLE indicates that the cluster is a type of hash cluster containing only one table.
HASH IS expr Specifies an expression to be used as the hash function for the hash cluster.
HASHKEYS this clause creates a hash cluster and specify the number of hash values for the hash cluster.
SIZE Specify the amount of space in bytes reserved to store all rows with the same cluster key value or the same hash value.

CREATE TABLE calls
(call_number NUMBER,
call_timestamp NUMBER,
call_duration NUMBER,
call_info VARCHAR2(50))
CLUSTER call_cluster
(call_number,call_timestamp,call_duration)

Partitioned IOT Enhancements

The following are the newly supported options for partitioned index-organized tables (IOTs):

List-partitioned IOTs: All operations allowed on list partitioned are now   supported for IOTs.

Global index maintenance: With previous releases of the Oracle   database, the global indexes on partitioned IOTs were not maintained when   partition maintenance operations were performed. After DROP,     TRUNCATE, or EXCHANGE PARTITION, the global indexes became   UNUSABLE. Other partition maintenance operations such as MOVE,   SPLIT, or MERGE PARTITION did not make the global indexes   UNUSABLE, but the performance of global index–based access was   degraded because the guess–database block addresses stored in the index   rows were invalidated. Global index maintenance prevents these issues   from happening, keeps the index usable, and also maintains the guess–data   block addresses.

Local partitioned bitmap indexes: The concept of a mapping table is   extended to support a mapping table that is equi-partitioned with respect to   the base table. This enables the creation of bitmap indexes on partitioned   IOTs.

LOB columns are now supported in all types of partitioned IOTs.

 

If you like Oracle tuning, see the book "Oracle Tuning: The Definitive Reference", with 950 pages of tuning tips and scripts. 

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.


Expert Remote DBA

BC is America's oldest and largest Remote DBA Oracle support provider.  Get real Remote DBA experts, call
BC Remote DBA today.

 

 

Remote DBA Service
 

Oracle Tuning Book

Free Oracle dictionary reference poster

BC Oracle support

Oracle books by Rampant

Oracle monitoring software

North Carolina Oracle Users Group

 

 Arabian horse breeder

Seeing eye horses

 

 

Burleson is the American Team

American Flag

 

 

BC Remote Oracle Support
P.O. Box 511 • Kittrell, NC, 27544

Remote DBA

Remote DBA Services

 

Copyright © 1996 -  2011 by Burleson Enterprises. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.



Hit Counter