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.

Questions:
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?
ciphersolAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sdstuberCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ciphersolAuthor Commented:
I believe you misunderstood my first question but your answer to question 2 answers my first question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.