- 論壇徽章:
- 0
|
請(qǐng)教:如何確定一個(gè)application 的id號(hào)?
比如:
(1)update switchs:
update monitor switches using bufferpool on lock on sort on statement on table on uow on
(2)Get Snapshot:
get snapshot for all on <db name>;
(3)Search for specifice information in the snapshot result:
a.the most frequently executed statements:
UNIX:
grep -n " Number of executions" snap.out | grep -v "= 0" | sort -k 5,5rn | more
Windows:
findstr /C:" Number of executions" snap.out | findstr /V /C:"= 0"
b.Most execution time
grep -n " Total execution time" snap.out | grep -v "= 0.0" | sort -k 5,5rn | more
findstr /C:" Total execution time" snap.out | findstr /V /C:"= 0.0" |sort /R
c.Statement Text
grep -n " Statement text" snap.out | more
findstr /C:"Statement text" snap.out
d.deadlock
UNIX:
grep -n "Deadlocks detected" snap.out | grep -v "= 0" | more
Windows:
findstr /C:"Deadlocks detected" snap.out | findstr /V /C:"= 0" |
|