| |
|
If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
|
 |

12-12-11, 15:51
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 34
|
|
|
what should I monitor?
|
|
Hello,
I need advice,
I need to know if all is well there to prevent problems, which snapshots should I check? or what should I check?, need runstats?
What should I check to make sure everything is okay?
Thanks
|
|

12-12-11, 15:59
|
|
:-)
|
|
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
|
|
Quote:
Originally Posted by robert_tr
What should I check to make sure everything is okay?
|
For that you'll need to check everything, I presume.
|
|

12-12-11, 16:04
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 34
|
|
|
|
Quote:
Originally Posted by n_i
For that you'll need to check everything, I presume.
|
Thanks but, how to?
|
|

12-12-11, 19:38
|
|
Registered User
|
|
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
|
|
Here is what I do, the simplest and basic thing :
Keep a job open on each database server , watch for
1) Connections executing, lockwait
and
2) Long running queries
I check above every 20 mins, and based on some logic, dump snapshots for database, applications and locks , if certain situation arises. The job will send me an email when it takes snapshot, so that I can review them.
Long Running SQL may help identify bad access paths due to changes in some database objects.
So in brief, database, application,lock snapsots are very useful.
Regards
|
|

12-13-11, 00:38
|
|
Registered User
|
|
Join Date: Nov 2011
Location: Shen Zhen,China
Posts: 37
|
|
what I'm monitoring:
runstats
reorgchk
tablespaces
file systems
OS performance
db2diag.log
db2notify file
db2set/dbm/db cfg
history file
backups info
log files
reorg
database objects info
|
|

12-13-11, 21:02
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 34
|
|
Quote:
Originally Posted by wolaos123
what I'm monitoring:
runstats
reorgchk
tablespaces
file systems
OS performance
db2diag.log
db2notify file
db2set/dbm/db cfg
history file
backups info
log files
reorg
database objects info
|
Thanks, but what I need to check in tablespaces, history file, backups info and how???
|
|

12-13-11, 21:04
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 34
|
|
Quote:
Originally Posted by DBFinder
Here is what I do, the simplest and basic thing :
Keep a job open on each database server , watch for
1) Connections executing, lockwait
and
2) Long running queries
I check above every 20 mins, and based on some logic, dump snapshots for database, applications and locks , if certain situation arises. The job will send me an email when it takes snapshot, so that I can review them.
Long Running SQL may help identify bad access paths due to changes in some database objects.
So in brief, database, application,lock snapsots are very useful.
Regards
|
OK, thank you. How to get a lock and dump snapshots? thanks
|
|

12-13-11, 21:10
|
|
Registered User
|
|
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
|
|
Quote:
Originally Posted by robert_tr
OK, thank you. How to get a lock and dump snapshots? thanks
|
db2 get snapshot for locks on <mydb>
db2 get snapshot for applications on <mydb>
db2 get snapshot for database on <mydb>
:
:
db2 get snapshot for all on <mydb>
Check here GET SNAPSHOT command
HTH
PS : all this info is available via SQL commands querying snapshot views and/or snapshot functions. So you can use programming ( a strong plus of DB2) to simplify and customize for your need.
|
Last edited by DBFinder; 12-13-11 at 21:14.
|

12-13-11, 22:09
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 34
|
|
Quote:
Originally Posted by DBFinder
db2 get snapshot for locks on <mydb>
db2 get snapshot for applications on <mydb>
db2 get snapshot for database on <mydb>
:
:
db2 get snapshot for all on <mydb>
Check here GET SNAPSHOT command
HTH
PS : all this info is available via SQL commands querying snapshot views and/or snapshot functions. So you can use programming ( a strong plus of DB2) to simplify and customize for your need.
|
Thank you very much!!!!!!!!!!!!!!!!
|
|

12-13-11, 23:30
|
|
Registered User
|
|
Join Date: Nov 2011
Location: Shen Zhen,China
Posts: 37
|
|
Quote:
Originally Posted by robert_tr
Thanks, but what I need to check in tablespaces, history file, backups info and how???
|
what:
tablespaces type,auto resize,auto storage,pagesize,status,utilization,etc.
how many backups avilable,archiving the expiring backups,check if availbel for restoration,...
archive and truncate history,list history file content...
how:
shell programming
|
|

12-14-11, 01:35
|
|
Registered User
|
|
Join Date: Jan 2003
Posts: 1,570
|
|
|
|

12-14-11, 02:00
|
|
Registered User
|
|
Join Date: Jul 2011
Posts: 19
|
|
To prevent problems :
1. Performance releted problem: need to check stats_time, reorgchk, applications are in lock wait or not, number of connections, bufferpool hit ratio. ( as of now I can figure out only this )
2. Log : need to check log utilization percentage, db2diag.log, to avoid disk full error check mount points of arachive logs.
3. Bottleneck : best option use db2top,its having bottleneck option (B).
4. Tablespace : tablespace state, free pages available, high water mark, space available in mount points.
So many things are there, as of now I am able to figure out only above things.
|
Last edited by niteshtheone; 12-14-11 at 02:05.
|

12-14-11, 17:46
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 34
|
|
Thanks at all!!!! I will try.
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|