Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ISOLATION LEVEL

RE: ISOLATION LEVEL

From: Kerber, Andrew W. <Andrew.Kerber_at_umb.com>
Date: Tue, 10 Jul 2007 09:43:27 -0500
Message-ID: <D40740337A3B524FA81DB598D2D7EBB3097A8673@x6009a.umb.corp.umb.com>


If there is no ddl to run, then it appears to me that set transaction read only is the command Oracle designed for this situation. Or, as Niall stated, use an anonymous block.  

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of DBA Deepak Sent: Tuesday, July 10, 2007 4:09 AM
To: oracle-l
Subject: ISOLATION LEVEL  

Hi All,  

Have a doubt on transaction isolation.  

My requirement is to query several tables several times inside a piece of code. The data needs to be consistent across multiple queries. The underlying tables are subjected to change during the execution of the piece of code.  

I have two options to be used inside my piece of code to achieve consistent/repeatable reads.  

1> to use SET TRANSACTION READ ONLY;

2> to use ALTER SESSION SET ISOLATION_LEVEL=SERIALIZABLE;  

My question is which option is preferable and why? Is there any performance issues with one of these in the above mentioned scenarios?  

Need your valuable feedback.

-- 
Regards,

Deepak
Oracle DBA 


------------------------------------------------------------------------------
NOTICE:  This electronic mail message and any attached files are confidential.  The information is exclusively for the use of the individual or entity intended as the recipient.  If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited.  If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system. Thank you.

==============================================================================


--
http://www.freelists.org/webpage/oracle-l
Received on Tue Jul 10 2007 - 09:43:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US