If you happen to use Oracle WebCenter Content and use it's replication technology , one of key monitors will be on indexer/archiver
The batch information of replication indicates usage pattern, ucm performace .....etc
A few sql to share how to monitor batches in Oracle WebCenter Content.
Obviously you can twist them with different time period.
How many batches per day
select count( distinct substr(a.dbatchfile, 1, instr(a.dbatchfile, '/') - 1) ) num_batchfile from archivehistory a where dactiondate > sysdate - 1
Total size of batches per day
select sum(d.dfilesize)/1024/1024 totalsize_MB
from archivehistory a, documents d
where a.did = d.did
and d.disprimary = 1
and a.dactiondate > sysdate - 1
Average size of batches per day
select
(
select sum(d.dfilesize)/1024/1024 totalsize_MB
from archivehistory a, documents d
where a.did = d.did
and d.disprimary = 1
and a.dactiondate > sysdate - 1
)
/
(
select count( distinct substr(a.dbatchfile, 1, instr(a.dbatchfile, '/') - 1) ) num_batchfile from archivehistory a where dactiondate > sysdate - 1
) avg_size_MB from dual
No comments:
Post a Comment