Chapter 4. Using Parallel Execution
In Chapter 3, we introduced Oracle’s parallel execution features and talked about the concepts behind how they work. These features include:
Parallel query
Parallel DML
Parallel DDL
Parallel data loading
Parallel recovery
Parallel replication propagation
In this chapter, we’ll describe how to use each of these features and show you how to take advantage of them. Most of these features come with a list of restrictions and caveats that may affect your ability to use them in a given situation. We’ll describe those as well.
Throughout this chapter, we assume that you’re familiar with the basic Oracle features being discussed. This isn’t, for example, a tutorial on recovery or replication. The focus is always on the parallel features that can be applied to the task at hand. If you’re familiar with DML and DDL, for example, you won’t have any problem following the discussion of how to parallelize those types of statements. The same is true for the other types of operations covered in this chapter.
Parallel Query
Parallel query is the most commonly used of Oracle’s parallel execution features. It was the first parallel execution feature to be developed by Oracle and was introduced in Oracle7 (release 7.1) as the Oracle Parallel Query Option (PQO). Parallel execution can significantly reduce the elapsed time for large queries, but it doesn’t apply to every query. To parallelize a SELECT statement, the following conditions must be met:
At least one of the tables ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access