AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

batchExecute deadlock with oracle

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
fred
Guest





PostPosted: Tue Jul 19, 2005 8:38 pm    Post subject: batchExecute deadlock with oracle Reply with quote



I'm running parallel java threads each concurrently processing
addbatch() / batchExecute() statements. The set of rows being operated
on by any thread are guaranteed independent. But It's still getting
deadlocks. If I read oracle's enterprise manage console output
correctly I seem to be setting up exclusive table locks - but i don't
know where they are coming from - i only have simple prepared inserts &
updates (no Lock table statements). The tables do have (deferred)
referential constraints.

I was under the impression that oracle only implicitly set up row locks
and didn't escalate these to table locks of itself.

Does any body have any pointers as to what might be happening or where
I can find any documents about concurrent batchExecute processing

Thanks for any assistance Fred

Back to top
joeNOSPAM@BEA.com
Guest





PostPosted: Tue Jul 19, 2005 11:12 pm    Post subject: Re: batchExecute deadlock with oracle Reply with quote



Hi. I suspect your deferred constraints. If only for a test,
can you run without them? Deferred constraints refer
to a trasnaction completing. It may simply be that you
are causing your deadlocks in the garden-variety way.
Is that possible?

Joe Weinstein at BEA

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.