Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Parallel query in Oracle 11g

teradata0802Apr 16 2015 — edited Apr 16 2015

We use Oracle 11g DB on windows2008R2.

We wrote very long and heavy SELECT SQL query usign several table join and sub-queries and it take very long time to get result.

We did SQL statement tuning as much as we can do so far. ( I will get the Execution Plan and ADDM, etc access right)

I today notice about Parallel query function.

Where could I write parallel hint phrases in very long SELECT SQL query ?

In each selected tables like below ?

/sample in Oracle Doc/

SELECT /*+ PARALLEL(employees 4) PARALLEL(departments 4)

       USE_HASH(employees) ORDERED */ MAX(salary), AVG(salary)

FROM employees, departments

WHERE employees.department_id = departments.department_id

GROUP BY employees.department_id;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2015
Added on Apr 16 2015
2 comments
264 views