oracle docs
first check if the parallel query option is enabled:
At SQLPLUS
==========
- SQL>select * from v$option;
PARAMETER VALUE
-------------------------
Parallel execution TRUE
General stats:
select * from V$PX_PROCESS_SYSSTAT;
your own:select * from v$pq_sesstat;To make the query use parallelism, use one of three options:
- set the degree of parallelism for the table: ALTER TABLE t PARALLEL 2;
- use ALTER SESSION FORCE PARALLEL QUERY
- give a hint within the sql itself: SELECT /*+ PARALLEL(t,2) */ * from t;
No comments:
Post a Comment