ewang1205
asked on
Parallel hint not working in an insert
Here is my INSERT pseudo code. How come parallel not working? Working on another insert in the same database with same source table. Thanks.
INSERT /*+ append */ INTO BIG_TABLE
SELECT /*+ index (source_table my_idx1) parallel_index(source_tabl e, my_idx1,14)
DISTINCT ...
FROM
(SELECT /*+ index (source_table my_idx1) parallel_index(source_tabl e, my_idx1,14)
from ....big query)
where ...
INSERT /*+ append */ INTO BIG_TABLE
SELECT /*+ index (source_table my_idx1) parallel_index(source_tabl
DISTINCT ...
FROM
(SELECT /*+ index (source_table my_idx1) parallel_index(source_tabl
from ....big query)
where ...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Might be limitation on parallel. Will parallel still work if I have ROLLUP function in the SQL query? Thanks.
ASKER
Looks like parallel doesn't work on ROLLUP function in the SQL query. I tried without ROLLUP function in the SQL query and parallel hint works.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Parallelism doesnt work for query part .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
SQL> show parameter parallel;
NAME TYPE VALUE
--------------------------
fast_start_parallel_rollba
parallel_adaptive_multi_us
parallel_automatic_tuning boolean FALSE
parallel_execution_message
parallel_instance_group string
parallel_max_servers integer 385
parallel_min_percent integer 0
parallel_min_servers integer 0
parallel_server boolean FALSE
parallel_server_instances integer 1
parallel_threads_per_cpu integer 2
recovery_parallelism integer 0