By Tushar Mahapatra, Sanjay Mishra
Cover | Table of Contents | Colophon
Speedup = Time1 / Timem
|
Type of Requirement
|
Parallel Execution
|
Oracle Parallel Server
|
|---|---|---|
|
Hardware
|
Multiple processors (SMP, MPP, or NUMA).
|
Multiple nodes (cluster, MPP, or NUMA cluster) shared disk
architecture.
|
|
Operating system software
|
Operating system must support multiple processors.
|
Operating system must support resource management and communication
across nodes. The operating system also must support a disk-sharing
configuration such as the use of raw devices on Unix and NT
platforms.
|
|
Oracle DBMS
|
Configure initialization parameters. If using Oracle7, install the
Oracle Parallel Query Option.
|
Purchase and install the Oracle Parallel Server Option. Configure
initialization parameters.
|
|
Application
|
Minor changes to SQL statements.
|
Application partitioning.
|
|
Hardware/Software Architecture
|
Oracle Parallel Server?
|
Parallel Execution?
|
Vendor Platform Examples
|
|---|---|---|---|
|
SMP/shared everything
|
No
|
Yes
|
IBM RS/6000
Sun Enterprise 4500
SGI Origin 2000
HP 9000
Windows NT
|
|
Cluster/shared disk
|
Yes
|
Yes
|
HP 9000 S800 Cluster
IBM RS/6000 HACMP Cluster
Sun Ultra Enterprise PDB Cluster
Pentium-based NT Clusters
|
|
MPP/shared disk
|
Yes
|
Yes
|
IBM RS/6000 SP
Siemens MPP RM1000 |
/*+ PARALLEL (table_name[, degree[, instances]]) */
CREATE TABLE...AS SELECT CREATE INDEX ALTER INDEX...REBUILD
CREATE TABLE...AS SELECT ALTER TABLE...MOVE PARTITION ALTER TABLE...SPLIT PARTITION CREATE INDEX ALTER INDEX...REBUILD PARTITION ALTER INDEX...SPLIT PARTITION
{NOPARALLEL |
PARALLEL (DEGREE {degree | DEFAULT}
[INSTANCES {instances | DEFAULT}] )}CREATE INDEX customer_ix ON customers (customer_id) TABLESPACE ind01 STORAGE (INITIAL 100M NEXT 100M PCTINCREASE 0 MAXEXTENTS 20) PARALLEL (DEGREE 4);
SQLLOAD scott/tiger CONTROL=part1.ctl DIRECT=TRUE PARALLEL=TRUE SQLLOAD scott/tiger CONTROL=part2.ctl DIRECT=TRUE PARALLEL=TRUE SQLLOAD scott/tiger CONTROL=part3.ctl DIRECT=TRUE PARALLEL=TRUE SQLLOAD scott/tiger CONTROL=part4.ctl DIRECT=TRUE PARALLEL=TRUE
SQL> EXECUTE DBMS_DEFER_SYS.SCHEDULE_PUSH (- > DESTINATION => 'finprod.world', - > INTERVAL => 'SYSDATE+1/24', - > NEXT_DATE => 'SYSDATE+1/24', - > PARALLELISM => 6);
|
New in Oracle8i
|
Oracle8
|
Comments
|
|---|---|---|
|
V$PX_SESSION
|
N/A
|
—
|
|
V$PX_SESSTAT
|
N/A
|
—
|
|
N/A
|
V$PQ_SESSTAT
|
V$PQ_SESSTAT eventually will be dropped.
|
|
V$PX_PROCESS
|
V$PQ_SLAVE
|
V$PQ_SLAVE eventually will be dropped.
|
|
V$PX_PROCESS_SYSTAT
|
V$PQ_SYSSTAT
|
|
Value
|
Meaning
|
|---|---|
|
SERIAL
|
A serial operation
|
|
No value; the column is null
|
A serial operation
|
|
SERIAL_FROM_REMOTE
|
A serial operation at a remote site
|
|
PARALLEL_FROM_SERIAL
|
A serial operation that passes output to a set of parallel slave
processes
|
|
PARALLEL_TO_PARALLEL |