db2 => update db cfg for ACCLOG using logfilsiz 1000
DB20000I The UPDATE DATABASE CONFIGURATION command completed successfully.
DB21026I For most configuration parameters, all applications must disconnect
from this database before the changes become effective.
db2 => update db cfg for ACCLOG using logsecond 100
DB20000I The UPDATE DATABASE CONFIGURATION command completed successfully.
DB21026I For most configuration parameters, all applications must disconnect
from this database before the changes become effective.
db2 => quit
2. ¹Ýµå½Ã ¼öÁ¤ÇØ¾ß ÇÒ ±¸¼ºÆÄÀÏ
2.1 [bin/env.bat]
.......
set ANALYSIS_HOME=e:applicationanalysis
set JAVA_HOME=e:applicationanalysisjdk1.2.2
.....
set CLASSPATH=%CLASSPATH%;d:sqllibjavadb2java.zip;
set CLASSPATH=%CLASSPATH%;d:sqllibjava
untime.zip
....
ÆíÁý ¿¹)
.......
set ANALYSIS_HOME=C:analysis
set JAVA_HOME=C:analysisjdk1.2.2
.....
set CLASSPATH=%CLASSPATH%;C:SQLLIBjavadb2java.zip;
set CLASSPATH=%CLASSPATH%;C:SQLLIBjava
untime.zip
select substr(shorturl,1,80), count(*), sum(elapsed), sum(elapsed)/count(*) from analysis where shorturl like ``%Servlet`` or shorturl like ``%.jsp`` group by shorturl order by count(*) desc
select substr(shorturl,1,80), count(*), sum(elapsed), sum(elapsed)/count(*) from analysis group by shorturl order by count(*) desc
select substr(shorturl,1,80), count(*), sum(elapsed), sum(elapsed)/count(*) from analysis group by shorturl order by sum(elapsed) desc
select substr(shorturl,1,80), count(*), sum(elapsed), sum(elapsed)/count(*) from analysis group by shorturl order by sum(elapsed)/count(*) desc
select substr(x1.u,1,80), sum_elapsed, cnt, avert, totalsize, avesize, tpm, tpm/(20.0*60.0) as tps from (select shorturl as u, max (c) as tpm from ( select shorturl, count(*) as c from analysis where starttime >= ``2002-07-23-09.50.00`` and starttime < ``2002-07-23-10.00.00`` and (shorturl like ``%/servlet/%`` or shorturl like ``%.jsp`` ) group by shorturl, date(starttime), hour(starttime), minute(starttime)/5 ) as x group by shorturl ) as x1, (select count(*) as cnt, sum(elapsed)/count(*) as avert, sum(elapsed) as sum_elapsed, sum(data_size) as totalsize, sum(data_size)/count(*) as avesize, shorturl as u from analysis where starttime >= ``2002-07-23-09.50.00`` and starttime < ``2002-07-23-10.00.00`` and (shorturl like ``%/servlet/%`` or shorturl like ``%.jsp`` ) group by shorturl ) as x2 where x1.u = x2.u order by sum_elapsed desc
select shorturl, sum(elapsed) as SUM_elapsed, count(*) as CNT, sum(elapsed)/count(*) as RT, sum(data_size) as TotalSIZE, sum(data_size)/count(*) as AveDATA, count(*)/(4.0*3600.0) as tps from analysis where host = ``seoul`` and starttime >= ``2002-07-26-13.00.00`` and starttime < ``2002-07-26-18.00.00`` and (shorturl like ``%/servlet/%`` or shorturl like ``%.jsp`` ) group by shorturl order by SUM_elapsed desc
select subip, count(distinct ip), count(*), count(*)/count(distinct ip), sum(elapsed), sum(elapsed)/count(distinct ip) from analysis where not (shorturl like ``%/servlet/%`` or shorturl like ``%.jsp``) group by subip order by sum(elapsed)/count(distinct ip) desc