سؤال

It works with SELECT and UPDATE statements.

Are there some more statements with which it works?

I was able to use it with create, but am not sure if the hint was actually considered.

SQL> create /*+ PARALLEL */ table t1
( id number,
name varchar2(40));

Table created.

SQL>

Except INSERT and UPDATE, when all is the PARALLEL hint considered?

هل كانت مفيدة؟

المحلول

The Data Warehousing Guide has a chapter on parallel operations that goes over what operations can be parallelized.

You can't parallel-ize a simple CREATE TABLE statement (nor would you want to-- there wouldn't be enough work to be able to parcel it out to multiple worker threads). You can, however, parallel-ize a CREATE TABLE AS SELECT statement either by specifying the PARALLEL hint in the SELECT or by using the PARALLEL keyword in the CREATE.

نصائح أخرى

Oracle supports parallel processing for a wide range of operations, including queries, DDL, and DML:

  1. Queries that involve table or index range scans
  2. Bulk insert, update, or delete operations
  3. Table and index creation
  4. The collection of object statistics using DBMS_STATS
  5. Backup and recovery operations using Recovery Manager (RMAN)
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى dba.stackexchange
scroll top