1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| CURSOR c_http is
select
HOST
,DATE_HTTP
,NBYTEDN
,NBSESSTCP
,kpi.unite_s(AVG_SYN_SYNACK)
,kpi.unite_s(AVG_SYNACK_ACK)
,kpi.sum_s(AVG_SYN_SYNACK, AVG_SYNACK_ACK)
,kpi.unite_s(DELAYREQANS)
,NBGET
,NBPOST
,OTHERREQ
,NB1XX
,NB2XX
,NB3XX
,NB4XX
,NB5XX
,NBOTHERANS
from kpi.http_ods;
TYPE array_http is table of c_http%rowtype;
http_data array_http;
begin
open c_http;
loop
fetch c_http
bulk collect into http_data
limit 1000;
begin
for i in 1..http_data.count
insert into kpi.http
values http_data(i);
end;
exit when c_http%notfound;
end loop;
close c_http;
end kpi.http_modif; |
Partager