prefect 发表于 2009-08-05 14:27

monitor instance tools【分享】

3個小shell,分享給大家
dblist 是看當前online上Database信息:
08/05/09 14:23:07      Informix Database Report   for mis@mis
Database      Dbspace                Date      Logging Buffered Other
Name            Name       Owner       Created   Enabled LoggingInfo
bvic            dbs07      informix   10/14/2006    Y       N

dbsfree 是看dbspace信息
08/05/09 14:24:30         Informix Dbspaces Report         for mis@mis
DbsnumDbsname       Chunknum   Dbssize(Page)   Dbsfree(Page)      FreePresent(%)
1   rootdbs            1         2000000               829               0.0
2   phydbs             1         2000000             49947               2.5
3   logdbs             4         8000000             19938               0.2

syslocks 是看當前online lock情況
Report on locks for an Informix online engine database
1 = dbsname/tablename
2 = owner name
3 = waiter name
0 = Exit this program
Sort by (1,2,3,0)
1
Collecting lock info from the sysmaster database...
Database selected.

1893 row(s) unloaded.

Database closed.

08/05/09 14:26:18         Informix Locks Report         for mis@mis
Database:Table         Owner      Row Id Type Type Desc            Waiter
ds:sysdistrib             java         0 IS   intent shared lock   
ds:sysdistrib             java         0 IS   intent shared lock   
ds:sysdistrib             java         0 IS   intent shared lock

koolkite 发表于 2009-08-05 15:07

呵呵,不错,

wuicpp 发表于 2009-08-05 22:03

:-),看过原版的,挺老的了,不过应该鼓励,:-)
页: [1]
查看完整版本: monitor instance tools【分享】