• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 962
  • Last Modified:

dbms_parallel_execute - partioned table

I'm using dbms_parallel_execute to insert records into a partitioned table (64 partitions).  

* I created the chunks so that the chunks were created using "create_chunks_by_sql".  The chunks were created so that the the first chunk is for the 1st partition, the 2nd chunk is for the 2nd partition, ... the 64th chunk is for partition 64, and this repeats.  This helps to ensure the inserts are distributed across the partitions evenly.

* I incorrectly assumed that Oracle assigns the 1st chunk, the chunk with the lowest chunk_id number, and then the next and so on until completion.  It appears that it selects a group of about 40 chunks in sequential order (unassigned) from anywhere (random) and then grabs another set and so on.  

* I'm interested in running a performance test using a varying number of parallel processes to acquire the best number of processes.  The test would be a little more accurate if the records sets (chunks) were processed in order.

1)  What is the method Oracle uses for assigning the chunk for processing?
2) Is there a configuration setting to force oracle to do the chunks in a given order? I'm interested in doing as little programming to accomplish this.  I know you can process the chunks using a 'user-defined framework".
3) Any other ideas?
1 Solution
1 - you write that yourself.  You provide a rowid rule, numeric column rule or other custom sql that determines which rows are in which chunks

2 - it's "parallel" so ordering doesn't really apply - you should assume simultaneous or random ordering

3 - if you really want them in particular order, then you don't want to use parallel execution.
Write your own serialized logic that will time the processes in whatever order you want with whatever dependencies you need
ciphersolAuthor Commented:
I believe you misunderstood my first question but your answer to question 2 answers my first question.
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now