Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I change isolation level in Oracle?

I'm writting a transaction in Oracle. Can I change isolation level within this transaction for one select statement? Now I have Read Commit, and I want within transaction change this once to serializable and next back to the read commit.

Best Regards, Gregory

like image 597
GrzesiekO Avatar asked Jan 17 '26 22:01

GrzesiekO


1 Answers

In SQL, you can use the SET TRANSACTION statement

For example:

set transaction isolation level serializable;  
set transaction isolation level read committed;
like image 200
Rob van Wijk Avatar answered Jan 19 '26 19:01

Rob van Wijk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!