Dear Colleagues,
If you have some script, that does weekly, monthly reporting of db growth sizes, please help me. I have been trying for quite some time now.
Was trying to develop a script myself, (to analyse the SAP ASE database growth on weekly or monthly basis). I am using SAP on AIX. I did post it on SAP on AIX form, but in vain.
I have the following files as input (file1.in and file2.in)
% cat file1.in
dbname LogTotal(MB) DataTotal(MB) DataUsed(MB) DataFree(MB) DataPercentfull
------------------------------ ------------ ------------- ------------ ------------ ---------------
master 0 248 33 215 13.31
tempdb 0 5144 20 5124 0.39
model 0 24 14 10 58.33
E10 26564 328576 187013 141563 56.92
saptools 600 10240 3042 7198 29.71
saptempdb 0 10240 53 10187 0.52
sybsystemdb 0 48 14 34 29.17
sybsystemprocs 0 200 132 68 66.00
sybmgmtdb 0 320 122 198 38.13
% cat file2.in
dbname LogTotal(MB) DataTotal(MB) DataUsed(MB) DataFree(MB) DataPercentfull
------------------------------ ------------ ------------- ------------ ------------ ---------------
master 0 248 43 215 13.31
tempdb 0 5144 30 5124 0.39
model 0 24 18 10 58.33
E10 26564 328576 197013 141563 56.92
saptools 600 10240 3142 7198 29.71
saptempdb 0 10240 93 10187 0.52
sybsystemdb 0 48 84 34 29.17
sybsystemprocs 0 200 192 68 66.00
sybmgmtdb 0 320 222 198 38.13
I was trying to compare the files ( file1.in and file2.in ) for the only coloum DataUsed(MB) and give me the result/change in percentage.
The output should be something like:-
Growth Percentage :-
.1%
-1%
.4%
1%
100%
.4%
.7%
.4%
1%
Any help highly appreciated ..
Kind Regards,
Ajith Prabhakaran