The Parallel Database Architecture Computer Science Essay

Parallel database systems are the key to high public presentation dealing and database processing. These systems utilize the capacity of multiple locally coupled processing nodes. Typically, fast and cheap microprocessors are used as processors to accomplish high cost-effectiveness compared to mainframe-based constellations. Parallel database systems aim at supplying both high throughputs for online dealing processing ( OLTP ) every bit good as short response times for complex ad-hoc questions. In this study I will exemplify the parallel processing capablenesss of prophet and IBM DB2.Both DBMSs offers a high public presentation analogue processing capablenesss. But they have some differences in the inside informations as followers.

Parallel database architecture:

Both Oracle and IBM offer parallel processing to back up really big databases ( VLDB ) . This can be achieved by spliting the database over several Numberss of waiters. Prophet uses ( RAC ) Real Application Cluster, and IBM uses DB2 UDB ESE with ( DPF ) the Database Partitioning Feature.

We will write a custom essay sample on
The Parallel Database Architecture Computer Science Essay
or any similar topic only for you
Order now

IBM DB2 is considered a shared-nothing architecture. However, in order to supply handiness to the information, the database must be created on shared-disks. Shared-nothing refers to ownership of the informations during runtime, non the physical connectivity. In IBM DB2, it is possible for the discs to be connected merely to a subset of nodes that serve as secondary proprietors of the informations in the divider. If merely a subset is used so some nodes will put to death heavier work loads than others and cut down the overall system throughput and public presentation. Unlike IBM DB2, Oracle RAC 11g requires full connectivity from the discs to all nodes and therefore avoids this job.

1.2.1 Oracle with Real Application Clusters

Real Application Clusters ( RAC ) is Oracle 9i ‘s constellating engineering, which provides an environment capable of back uping big databases. RAC is based on a shared disc architecture aimed at accomplishing high handiness of a distributed environment.

RAC is an extension to the Oracle database, which enables constructing a multi node database environment.

1.2.2 IBM DB2 UDB ESE with the Database Partitioning Feature

IBM Data direction package extends DB2 UDB to the parallel multi node environment in order to supply a scalable solution capable of back uping big sums of informations. The partitioning characteristic in DB2 UDB is based on a shared nil architecture. In DPF every node in the bunch has its ain dedicated memory, runing system, and storage units. An application of a shared nil architecture is aimed at accomplishing high scalability and bettering public presentation. This option in DB2 UDB ESE DPF does non necessitate any bunch engineerings to run.

DB2 UDB ESE DPF uses two degrees of correspondence in order to accomplish high-quality public presentation:

Intra-partition correspondence: This is the ability to hold multiple processors process different parts of an SQL question, index creative activity, or a database burden within a database divider.

Inter-partition correspondence: This provides the ability to interrupt up a question into multiple parts across multiple dividers of a partitioned database, on one waiter or multiple database waiters.

Fig2: Shared disc architecture

Fig3: Shared nil architecture

1.3 Parallel Query Processing

Without the parallel question characteristic, the processing of a SQL statement is ever performed by a individual waiter procedure. With the parallel question characteristic, multiple procedures can work together at the same time to treat a individual SQL statement. This capableness is called parallel question processing. By spliting the work necessary to treat a statement among multiple waiter procedures, the Oracle Server can treat the statement more rapidly than if merely a individual waiter procedure processed it.

The parallel question characteristic can dramatically better public presentation for data-intensive operations associated with determination support applications or really big database environments. Symmetrical parallel processing ( SMP ) , clustered, or massively parallel systems gain the largest public presentation benefits from the parallel question characteristic because question processing can be efficaciously split up among many CPUs on a individual system.

It is of import to observe that the question is parallelized dynamically at executing clip. Therefore, if the distribution or location of the information alterations, Oracle automatically adapts to optimise the parallelization for each executing of a SQL statement.

The Oracle Server can utilize parallel question processing for any of these statements:

Choice statements

bomber questions in UPDATE, INSERT, and DELETE statements



In IBM DB2 parallel question executing can be achieved through operation pipelining and informations breakdown. IBM decides to implement the informations breakdown because:

DB2 supports partitioned table which allows a DB2 user to administer his big tabular array up to 64 different discs.

Parallel question executing through informations partitioning plants good with simple question which accesses big sum of informations.

DB2 question treating includes two stages, a question digest stage and a query executing stage.

1.4 Parallelizing single operations

IBM DB2 can originate multiple parallel operations when it accesses informations from a tabular array or index in a partitioned table infinite.

Query I/O correspondence manages coincident I/O petitions for a individual question, bringing pages into the buffer pool in analogue. This processing can significantly better the public presentation of I/O-bound questions. I/O correspondence is used merely when one of the other correspondence manners can non be used.

Query CP correspondence enables true multitasking within a question. A big question can be broken into multiple smaller questions. These smaller questions run at the same time on multiple processors accessing informations in analogue, which reduces the elapsed clip for a question.

To spread out even farther the processing capacity available for processor-intensive questions, DB2 can divide a big question across different DB2 members in a information sharing group. This characteristic is known as Sysplex question correspondence.

DB2 can utilize parallel operations for treating the undermentioned types of operations:

Inactive and dynamic questions

Local and distant informations entree

Questions utilizing individual table scans and multi-table articulations

Access through an index, by table infinite scan or by list prefetch.


When a position or table look is materialized, DB2 generates a impermanent work file. This type of work file is shareable in CP manner if there is no full outer articulation instance.

On the other manus, Oracle can parallelize operations that involve treating an full tabular array or an full divider. These operations include:

SQL questions necessitating at least one full table scan or questions affecting an index scope scan crossing multiple dividers.

Operationss such as making or reconstructing an index or reconstructing one or more dividers of an index.

Partition operations such as traveling or dividing dividers

CREATE TABLE AS SELECT operations, if the SELECT involves

a full tabular array or divider scan.

INSERT INTO. . . Choice operations, if the SELECT involves a full tabular array or divider scan.

Update and delete operations on partitioned tabular arraies

Oracle divides the undertaking of put to deathing a SQL statement into multiple smaller units, each of which is executed by a separate procedure. When parallel executing is used, the user ‘s shadow procedure takes on the function of the parallel coordinator. The parallel coordinator is besides, referred to as parallel executing coordinator or question coordinator.

1.5 Parallel question optimisation

Parallel question optimisation is really of import and indispensable for the overall public presentation of a relational database, particularly for the executing of complex SQL statements. A query optimizer determines the most efficient program for put to deathing each question by sing available entree waies and by factoring in information based on statistics for the scheme objects ( tabular arraies or indexes ) accessed by the SQL statement. Most of modern DBMSs including prophet and IBM DB2 utilize a cost-based question optimizer. The end of cost-based question optimizer is to keep the computing machine resources which are CPU way length, sum of disc buffer infinite, disk storage service clip, and interconnect use between units of correspondence. These determinations query optimizer takes have a great consequence on SQL public presentation.

Prophet has two different version of a question optimizer.

Cost-Based Optimizer ( CBO )

In measuring possible question programs, this optimizer makes usage of available statistics to better gauge the cost of the question. Besides merely cognizing the size of tabular arraies and indexes involved, it tries to gauge the selectivity of conditions involved in inventing its program.

Rule-Based Optimizer ( RBO )

The Rule-Based Optimizer does non look at the expressed statistics, but tries to do determinations on general regulations, such as push choices before articulations, or prefer a sort-merge articulation to a nested cringle articulation.

In the new version of Oracle ( Oracle10i ) the RBO was no longer supported and they depend wholly on the CBO.

On the other manus, IBM DB2 uses autonomic question optimizer that automatically self-validates its theoretical account without necessitating any user interaction to mend wrong statistics or cardinality estimations. By supervising questions as they execute, the autonomic optimizer compares the optimizer ‘s estimations with existent at each measure in a QEP ( query executing program ) , and computes accommodations to its estimations that may be used during future optimisations of similar questions.


Hi there, would you like to get such a paper? How about receiving a customized one? Check it out