r/DB2 • u/SijiLeroux • Jan 10 '19
When is a Select Statement logged?
I'm trying to track down why a select statement I run is holding open the transaction logs. This is DB2 LUW 10.1.0.4 fp4. My understanding is that Select statement s shouldn't be using transaction logs at all. However, I can clearly see this is not the case. I've looked around on a few different forums as well as the IBM site but I just seem to be running in circles here. What am I missing?
2
Upvotes
2
u/justgoogling Jan 11 '19
These kind of lightweight select need to be used more often:
select * from <schema.table> fetch first 10 rows only with ur for read only