Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Control for "Isolation level" at SELECT statement level
Dave Hau wrote:
> "Yong Huang" <yong321_at_yahoo.com> wrote in message
> news:b3cb12d6.0308190645.7999320e_at_posting.google.com...
>
>>"Dave Hau" <davehau-no-spam-123_at_no-spam.netscape.net> wrote in message
>>>If what you're asking is whether you can have a select statement within >>
>>>transaction, that has an isolation level different than the isolation >>
>>>of the transaction, no you cannot do that in Oracle. >>> >>>Cheers, >>>Dave >> >>Dave, >> >>A little addition. How about have an autonomous transaction inside the >>"parent" transaction? Then you should be able to use a different >>isolation level from that in the "parent". >> >>Yong Huang
Yong, I was thinking for Case #2, you might be able to use "SELECT ... FOR UPDATE" which will hold exclusive locks on all the rows of the result set until you commit the transaction. But I believe "SELECT ... FOR UPDATE" will only guarantee repeatable read, not phantom-free read. Correct me if I'm wrong. The documentation is not entirely clear on this issue.
This way you would be able to do a "repeatable-read" select statement within a "read-committed" transaction.
>
> Cheers,
> Dave
>
>
Received on Tue Aug 19 2003 - 14:08:40 CDT