Parallel hint not working in an insert

Posted on 2008-10-16
Medium Priority
Last Modified: 2012-05-05
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_table, my_idx1,14)
                DISTINCT  ...
                  (SELECT /*+ index (source_table my_idx1)  parallel_index(source_table, my_idx1,14)
                                 from ....big query)
            where ...
Question by:ewang1205
  • 5
  • 2
LVL 27

Assisted Solution

sujith80 earned 400 total points
ID: 22737369
what is the result of the following from sqlplus:

show parameter parallel

Author Comment

ID: 22740846
Here is the results.  Parallel works on this server because some other parallel queries work fine.  I guess my query may be too complex.

SQL> show parameter parallel;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ---------
fast_start_parallel_rollback         string      LOW
parallel_adaptive_multi_user         boolean     TRUE
parallel_automatic_tuning            boolean     FALSE
parallel_execution_message_size      integer     2152
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

Author Comment

ID: 22744003
Might be limitation on parallel.  Will parallel still work if I have ROLLUP function in the SQL query?  Thanks.
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.


Author Comment

ID: 22757808
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.  
LVL 27

Assisted Solution

sujith80 earned 400 total points
ID: 22775316
the settings looks fine to me.

Parallelism doesnt work for query part or the insert part? or for both?

Author Comment

ID: 22778367
Parallelism doesnt work for query part .  

Accepted Solution

ewang1205 earned 0 total points
ID: 22835824
I conclude the parallel doesn't always work.  It doesn't work where the query is too complex.  In my case, the query has analytical function called rollup, the parallel  doesn't work.  I will accept my answer as solution if there is no other objections.  Thanks.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question