Oracle training, tutorials and consulting

 

For Better, Faster, Smarter, Oracle Solutions

 

Oracle Tips and Tricks To Make Your Oracle Systems Your Most Valuable
Asset -
Oracle 9i Scalability Enhancements

This article discusses Oracle 9i Scalability Enhancements - what's changed in Oracle 9i to enable your databases to support more users without adding more resources.

Submit questions here and to subscribe go to http://www.asktheoracle.net/oracle-tips-signup.html

Contents:

Introduction
Real Application Clusters
Scalable Session State Management
Automatic Resource Management
Summary
Further Reading/Other resources

----------------------------------------------
1. Introduction

The previous five articles looked at the enhancements that have been made to the Oracle database in release 9i and the impact these have on business and technical issues. In this issue the focus is on the changes made to enable Oracle databases to support more users with clustering and other changes enabling more users to be supported without having to add more hardware. For more information about the new features see the resources section which reviews books for further reading and contains links to information on OTN and other places.

Smartsoft also offers high quality, instructor-led Oracle courses and SQL courses for Oracle developers and dbas. See our Oracle courses section for more details.

New subscribers can read the previous Oracle 9i New Features articles here:
http://www.smart-soft.co.uk/Oracle/oracle9i-new-features-part1.htm
http://www.smart-soft.co.uk/Oracle/oracle9i-new-features-part2.htm
http://www.smart-soft.co.uk/Oracle/oracle-9i-backup-and-recovery.htm
http://www.smart-soft.co.uk/Oracle/oracle-9i-security-enhancements.htm
http://www.smart-soft.co.uk/Oracle/oracle-9i-manageability-enhancements.htm

If you have any questions send them to us and we'll do our best to answer them straight away or, if not, in a future issue. You can also send us your comments using our contact form.

2. Oracle 9i Real Application Clusters

Oracle have always boasted of the ability of their databases to support large numbers of users, but scalability is more than just being able to support many users, it is also a case of how easy it is to increase the maximum number of users that can be supported. Oracle 9i has performance enhancements that reduce resource requirements somewhat but there is also the need to be able to add more resources to support more users and to provide redundancy in case of failure. Real Application Clusters allow exactly that, thereby making scalability simply a case of adding more servers to the cluster.

Oracle 7 and 8 supported a form of clustering called Oracle parallel server, but this was complex to implement because the application had to be aware that it was running in a parallel server configuration. Real Application Clusters in Oracle 9i are a replacement for and an enhancement of the previous parallel server technology. Applications no longer have to be aware that they are running in a cluster and new servers can be added to or removed from the cluster at any time without having to shut down the database at all.

The major business benefits of Real Application Clusters (RACs) are :

In technical terms the new features include a new "cache fusion architecture" which as the name suggests treats the memory caches of all the servers in the cluster as a single cache. This means that reads from disk only have to take place when none of the servers has the requested data in memory. If one of the servers does have the required data in memory, it is transferred across the high-speed bus connecting the servers, to the memory of the server that made the request.

Other new features include :

3. Scalable Session State Management

The amount of resources required by Oracle 9i databases for each user has been reduced by improvements to the network layer, shared server (what used to be called multithreaded server) enhancements, improvements for the support of Java sessions and shared memory improvements. Together these improvements allow more users to be supported on the same hardware.

4. Automatic Resource Management

Oracle 8i introduced the facility to allocate resource quotas to various groups of users (known as consumers) by use of the database resource manager. This enhanced the ability of the dba to share resources appropriately amongst the users by giving them the ability to manage mixed workloads (e.g. reporting and transaction processing) and to control system performance. The resources that could be controlled were the percentage of CPU time, the degree of parallelism and priorities

Oracle 9i improves on this by providing the dba with more granular control over resources, adding the following new resource plan directives:

Let's look at these in more detail.

Undo Pool Quota

The undo pool quota controls the maximum amount of undo allowed for a consumer group. When the limit is reached, the active DML statement is terminated and no other members of the consumer group can perform any DML until undo space is released from the pool by other sessions within the group or the dba manually increases the undo quota for the group.

Active Session Quota

This directive controls the maximum number of active sessions allowed for a consumer group. When the limit is reached, new sessions can be queued until a session becomes available. A time-out period can also be specified to determine the maximum length of time a new session will wait until it is aborted with an error.

Estimated Execution Time Quota

This enables the dba to set an execution-time limit for an operation. If the database estimates that an operation will exceed this limit, the operation is aborted and an error returned to the user. This error can be trapped and the operation rescheduled if needed.

Automatic Consumer Group Switching

Analogous to the execution time quota is the ability to specify that a session should be switched automatically to a different consumer group if it is active (i.e. running and consuming resources, not idle) for more than the specified time. This switch will occur even if the active session quota for the new group has already been reached. One the previously switched session becomes idle again, it is switched back to its original consumer group. The session can also be switched prior to starting execution if the database estimates that the operation will take longer than the specified time limit and the use of estimates is specified.

Summary

The biggest change in terms of scalability is undoubtedly the introduction of Real Application Clusters for Windows, Linux and UNIX. This feature provides load-balancing, scalability and hot-standby all rolled into one without requiring any application redesign or database shutdown to add more resources to the cluster.

The enhancement of resource management to include undo pool, execution time and active session quotas is also useful for heavily used systems as is the reduction in resources required to support a user.

---------------------------------------

Looking for more Oracle tips and tricks ? If you're looking for solid, reliable technical information, take a short cut now and subscribe to our Oracle ezine. Published monthly, it's jam-packed full of tips and tricks to help you make more of your Oracle systems and save you hours of blood, sweat and tears. Subscribe today and your first issue will soon be winging its way to your mailbox.

Smartsoft Computing Ltd
Bristol, England

Tel: 0845 0031320

Contact Us

Click here to view our privacy policy .

This site uses woopra.com to gather statistical information about our visitors. View woopra privacy policy .

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. UNIX is a registered trademark of The Open Group in the United States and other countries.

© Copyright Smartsoft Computing Ltd 2001-2009. All rights reserved.

Search for: