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 

Thread safety while using BFiles

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





PostPosted: Thu Jan 26, 2006 10:12 am    Post subject: Thread safety while using BFiles Reply with quote



Hi,
I have a question about using the Bfile datatype. I am aware that
Bfiles are read-only and that you must use a stored procedure to write
the file out to the DB server or place it there yourself. My question
is how do you ensure thread safety while doing this? If the Bfile was
read-write you could rely on the DB to lock the row. Is there a way to
do this within the procedure?
thanks in advance
Dan

Back to top
sybrandb@yahoo.com
Guest





PostPosted: Thu Jan 26, 2006 12:21 pm    Post subject: Re: Thread safety while using BFiles Reply with quote



You can use the Oracle provided dbms_lock package to raise your own
locks.

--
Sybrand Bakker
Senior Oracle DBA

Back to top
Daniel Burke
Guest





PostPosted: Thu Jan 26, 2006 2:36 pm    Post subject: Re: Thread safety while using BFiles Reply with quote



Thanks Sybrand, I'll give have a look at that

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.