Quote:
Originally Posted by qxz
Sorry that I am not a DBA.
|
Some folks would see it as a good thing
Quote:
Originally Posted by qxz
How to run the lock snapshot in DB2 8? Will it affect the performance of the database server?
|
Log in to the server as the DB2 instance owner. Issue "db2 update monitor switches using lock on statement on uow on timestamp on". For locks, issue "db2 get snapshot for locks on <database name>". For statements, "db2 get snapshot for dynamic sql on <database name>". Take snapshots periodically, redirecting results to a text file, until you catch the lock wait that times out.
Having snapshot monitor elements turned on does affect performance a little bit (general estimate is about 5% if all switches are on), but it's the only way to obtain diagnostic information.