Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> What is Parallel DML?

What is Parallel DML?

From: Dino Hsu <dino1_at_ms1.hinet.net>
Date: Sat, 21 Jul 2001 07:58:06 +0800
Message-ID: <0lghlt4hu21jpal9rg24i8juvg9lnvghaq@4ax.com>

Dear all,

In a book, it says:
"In Oracle, you have the power of parallel DML and query to speed your
direct path along. In the code block that follows, notice the select statement has an embedded parallel query hint. Query and DML operation allows parallelism by generating multiple I/O processes that either draw more data into memory or write query. It requires that you first enable parallel DML in your session, using the alter session enable parallel DML statement, which must be executed at the beginning of the transaction if it is to be used at all during the transaction. The following code block demonstrates how you can mix and match hints in your direct-path insert statements:

ALTER SESSION ENABLE PARALLEL DML; INSERT /*+APPEND */ INTO spanky.employees NOLOGGING (select /*+PARALLEL(athena.employees,4) */ *  from athena.emplyees);

INSERT /*+PARALLEL(spanky.empoyees,4) */ INTO spanky.employees NOLOGGING
(select /*+PARALLEL(athena.employees,4) */ *  from athena.employees);
"

I don't fully understand the purpose and significance of using parallel DML yet, can anyone further explain this? What is difference between 'with' and 'without' parallel DML? Thanks in advance.

Dino Received on Fri Jul 20 2001 - 18:58:06 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US