Here's my question...
I usually do SQL Server development, and I am used to the way that SQL Server manages table locks. Meaning, that I hardly notice when someone locks a table with an update, etc., it may block other SQL statements against that table. Once the first statement completes, the next statement executes.
All of this is managed by SQL Server though, so from the client side, all I notice is an excessive query time (maybe), but no errors.
Anyway, I'm now trying to run queries against a DB2 database. I've already caused problems with our mainframe people. They've told me that they can't have anyone else reading records from the tables because they run large updates at various times.
That part isn't unusual, but they claim that if they can't immediately lock the table, it causes a DB2 error to be generated.
I guess my question is, why doesn't DB2 manage the blocks like SQL Server? Why won't either my statement, or there statement just wait for the first one to complete... and then carry on as normal? Is there an easy way for me to read a view, or mirror of the table, that won't cause a block?
Thanks
I usually do SQL Server development, and I am used to the way that SQL Server manages table locks. Meaning, that I hardly notice when someone locks a table with an update, etc., it may block other SQL statements against that table. Once the first statement completes, the next statement executes.
All of this is managed by SQL Server though, so from the client side, all I notice is an excessive query time (maybe), but no errors.
Anyway, I'm now trying to run queries against a DB2 database. I've already caused problems with our mainframe people. They've told me that they can't have anyone else reading records from the tables because they run large updates at various times.
That part isn't unusual, but they claim that if they can't immediately lock the table, it causes a DB2 error to be generated.
I guess my question is, why doesn't DB2 manage the blocks like SQL Server? Why won't either my statement, or there statement just wait for the first one to complete... and then carry on as normal? Is there an easy way for me to read a view, or mirror of the table, that won't cause a block?
Thanks