We help IT Professionals succeed at work.
Get Started

parallel insert on non-partitioned tables using dbms_parallel_execute.

mallelaajay
mallelaajay asked
on
2,998 Views
Last Modified: 2012-05-12
Hi,
    I have a requirement where i need to do a parallel insert into 8 tables using dbms_parallel_execute. The requirement is as below:

create chunks by SQL:    select distinct level_key, level_key from chunk_table.

chunk_table would be as below:

level_key      table_name
-----------   ------------------
101            sales_level101
102            sales_level102
  -                 -        -      -
108            sales_level108

I need to do a parallel insert into all 8 tables by mentioning parallel level 8. My run_task SQL should be as below

insert into table_name select /*+ parallel(stg, 8) */ from staging_table stg where level_key=:start_id

All the 8 different sales level of data is in the staging_table. Based on level_key, the data should be inserted into respective tables.

Is this possible? It at all, please give some ideas.
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE