Every morning we have a process that issues numerous requests (~ 10000) to DB2 on the AS400 / iSeries / i6 (regardless of what it currently calls), over the past 2 months, operators complained that our request was blocking a couple of files. preventing the completion of their night processing. Queries are very simplified, for example
Select [FieldName] from OpenQuery('<LinkedServerName>', 'Select [FieldName] from [LibraryName].[FieldName] where [SomeField]=[SomeParameter]')
I am not an expert on the iSeries side of the house and wondered if anyone had any understanding of lock escalation in terms of AS400 / Db2. The identifier that causes the lock was confirmed as the identifier with which we registered our linked server, and we know it most likely because [Library] and [FileName] correspond to the request that we issue.
It has just begun recently. Is it possible that our select statements, which cause the AS400 to escalate locks? The problem is that they are not produced without manual intervention.
source
share