- 经验
- 119
- 分贝
- 0
- 家园分
- 1181
- 在线时间:
- 22 小时
- 最后登录:
- 2020-5-8
- 帖子:
- 42
- 精华:
- 0
- 注册时间:
- 2008-3-24
- UID:
- 222479
注册:2008-3-24
|
/* seg cell kpi info */
select to_char(tra.period_start_time,'yyyymmddhh') Sdate,
to_char(tra.period_start_time,'hh24') Stime,
o_bsc.name bsc_name,
--c_bts.cell_id cell_id,
--tra.segment_id seg_id,
round(sum(ave_busy_tch/res_av_denom14),2) "TCH erl",
round(sum(ava.ave_tch_busy_full),2) "全速率erl",
round(sum(ava.ave_tch_busy_half),2) "半速率erl",
round(sum(ava.ave_busy_sdcch/ava.res_av_denom15),2) "sd erl",
sum(tra.tch_call_req-tra.tch_norm_seiz)-
sum(ho.msc_o_sdcch_tch+ho.bsc_o_sdcch_tch)-sum(ho.cell_sdcch_tch)+
sum(tra.tch_succ_seiz_for_dir_acc)-
sum(tra.tch_rej_due_req_ch_a_if_crc-
(ho.bsc_i_unsucc_a_int_circ_type+ho.msc_controlled_in_ho+
ho.ho_unsucc_a_int_circ_type)) "tch拥塞次数",
decode(sum(tra.tch_call_req)-sum(tra.tch_rej_due_req_ch_a_if_crc
-(ho.bsc_i_unsucc_a_int_circ_type+ho.msc_controlled_in_ho
+ ho.ho_unsucc_a_int_circ_type)),0,0,
round(100*(sum(tra.tch_call_req - tra.tch_norm_seiz)
- sum(msc_o_sdcch_tch + bsc_o_sdcch_tch + cell_sdcch_tch)
+ sum(tra.tch_succ_seiz_for_dir_acc)
- sum(tra.tch_rej_due_req_ch_a_if_crc
-(bsc_i_unsucc_a_int_circ_type
+ msc_controlled_in_ho
+ ho_unsucc_a_int_circ_type)))/(sum(tra.tch_call_req)
- sum(tra.tch_rej_due_req_ch_a_if_crc
-(ho.bsc_i_unsucc_a_int_circ_type
+ ho.msc_controlled_in_ho
+ ho.ho_unsucc_a_int_circ_type))),2)) "tch拥塞率",
--sum(tra.sdcch_busy_att) "sd原始拥塞次数",
sum(tra.sdcch_busy_att-tra.tch_seiz_due_sdcch_con) "sd拥塞次数",
--round(100*decode(sum(tra.sdcch_seiz_att),0,0,sum(tra.sdcch_busy_att)/sum(tra.sdcch_seiz_att)),2) "sd原始拥塞率",
round(100*decode(sum(tra.sdcch_seiz_att),0,0,
sum(tra.sdcch_busy_att-tra.tch_seiz_due_sdcch_con)/sum(tra.sdcch_seiz_att)),2) "sd拥塞率",
sum(tra.tch_norm_seiz)-sum(tra.tch_succ_seiz_for_dir_acc) + sum(ho.msc_i_sdcch_tch+ho.bsc_i_sdcch_tch)+
sum(ho.cell_sdcch_tch)+ sum(tra.tch_seiz_due_sdcch_con) "试呼次数",
sum(tra.tch_radio_fail+tra.tch_rf_old_ho+tra.tch_abis_fail_call+tra.tch_abis_fail_old+tra.tch_a_if_fail_call+
tra.tch_a_if_fail_old+tra.tch_tr_fail+tra.tch_tr_fail_old+tra.tch_lapd_fail+tra.tch_bts_fail+tra.tch_user_act+
tra.tch_bcsu_reset+tra.tch_netw_act+tra.tch_act_fail_call) "TCH掉话数",
round(decode((sum(tra.tch_norm_seiz) /*(normal calls)*/
+sum(msc_i_sdcch_tch+bsc_i_sdcch_tch+cell_sdcch_tch) /* ;(DR calls)*/
-sum(tra.tch_succ_seiz_for_dir_acc) /*;ref.2*/
+ sum(tra.tch_seiz_due_sdcch_con) /*calls started as FACCH call setup*/
- sum(serv.tch_re_est_assign)),0,0,
100*(sum(tch_radio_fail+tch_rf_old_ho+tch_abis_fail_call+
tch_abis_fail_old+tch_a_if_fail_call+tch_a_if_fail_old+
tch_tr_fail+tch_tr_fail_old+tch_lapd_fail+
tch_bts_fail+tch_user_act+tch_bcsu_reset+tch_netw_act+
tch_act_fail_call)
-sum(serv.tch_re_est_assign)) /*(call re-establishments)*/ /(sum(tra.tch_norm_seiz) /*(normal calls)*/
+sum(msc_i_sdcch_tch+bsc_i_sdcch_tch+cell_sdcch_tch) /* ;(DR calls)*/
-sum(tra.tch_succ_seiz_for_dir_acc) /*;ref.2*/
+sum(tra.tch_seiz_due_sdcch_con) /*calls started as FACCH call setup*/
-sum(serv.tch_re_est_assign))),2) /*(call re-establishments)*/ "掉话率dcr_3j",
sum(ho.msc_i_tch_tch_at+ho.msc_i_sdcch_tch_at+ho.msc_i_sdcch_at+
ho.msc_o_tch_tch_at+ho.msc_o_sdcch_tch_at+ho.msc_o_sdcch_at+
ho.bsc_i_tch_tch_at+ho.bsc_i_sdcch_tch_at+ho.bsc_i_sdcch_at+
ho.bsc_o_tch_tch_at+ho.bsc_o_sdcch_tch_at+ho.bsc_o_sdcch_at+
ho.cell_tch_tch_at+ho.cell_sdcch_tch_at+ho.cell_sdcch_at) "全部切换请求数",
round(100*decode(sum(msc_i_tch_tch_at+msc_i_sdcch_tch_at+msc_i_sdcch_at+
msc_o_tch_tch_at+msc_o_sdcch_tch_at+msc_o_sdcch_at+
bsc_o_tch_tch_at+bsc_o_sdcch_tch_at+bsc_o_sdcch_at+
bsc_i_tch_tch_at+bsc_i_sdcch_tch_at+bsc_i_sdcch_at+
cell_tch_tch_at+cell_sdcch_tch_at+cell_sdcch_at),0,0,
1-sum(msc_i_succ_ho+msc_o_succ_ho+bsc_i_succ_ho+bsc_o_succ_ho+cell_succ_ho)/
sum(msc_i_tch_tch_at+msc_i_sdcch_tch_at+msc_i_sdcch_at+
msc_o_tch_tch_at+msc_o_sdcch_tch_at+msc_o_sdcch_at+
bsc_o_tch_tch_at+bsc_o_sdcch_tch_at+bsc_o_sdcch_at+
bsc_i_tch_tch_at+bsc_i_sdcch_tch_at+bsc_i_sdcch_at+
cell_tch_tch_at+cell_sdcch_tch_at+cell_sdcch_at)),2) "切换失败率",
sum(ho.msc_o_tch_tch_at + ho.msc_i_tch_tch_at +
ho.bsc_o_tch_tch_at + ho.bsc_i_tch_tch_at + ho.cell_tch_tch_at) "TCH切换请求数",
sum(ho.msc_o_tch_tch + ho.msc_i_tch_tch + ho.bsc_o_tch_tch + ho.bsc_i_tch_tch + ho.cell_tch_tch) "TCH切换成功次数",
sum(msc_i_tch_tch_at+bsc_i_tch_tch_at) "tch切入请求数",
sum(msc_i_tch_tch+bsc_i_tch_tch) "tch切入成功数",
round(sum(decode(ava.res_av_denom4,0,0,ava.ave_idle_f_tch_1/ava.res_av_denom4)),2) "干扰带1",
round(sum(decode(ava.res_av_denom5,0,0,ava.ave_idle_f_tch_2/ava.res_av_denom5)),2) "干扰带2",
round(sum(decode(ava.res_av_denom6,0,0,ava.ave_idle_f_tch_3/ava.res_av_denom6)),2) "干扰带3",
round(sum(decode(ava.res_av_denom7,0,0,ava.ave_idle_f_tch_4/ava.res_av_denom7)),2) "干扰带4",
round(sum(decode(ava.res_av_denom8,0,0,ava.ave_idle_f_tch_5/ava.res_av_denom8)),2) "干扰带5",
round(decode(sum(ava.ave_idle_f_tch_1/ava.res_av_denom4
+ava.ave_idle_f_tch_2/ava.res_av_denom5+ava.ave_idle_f_tch_3/ava.res_av_denom6
+ava.ave_idle_f_tch_4/ava.res_av_denom7+ava.ave_idle_f_tch_5/ava.res_av_denom8),0,0,
1-(sum(ava.ave_idle_f_tch_1/ava.res_av_denom4))/sum(ava.ave_idle_f_tch_1/ava.res_av_denom4
+ava.ave_idle_f_tch_2/ava.res_av_denom5+ava.ave_idle_f_tch_3/ava.res_av_denom6
+ava.ave_idle_f_tch_4/ava.res_av_denom7+ava.ave_idle_f_tch_5/ava.res_av_denom8)),2) out_band1,
sum(tra.tch_radio_fail) tch_radio_fail,
sum(tra.tch_rf_old_ho) tch_rf_old_ho,
sum(tra.tch_abis_fail_call) tch_abis_fail_call,
sum(tra.tch_abis_fail_old) tch_abis_fail_old,
sum(tra.tch_a_if_fail_call) tch_a_if_fail_call,
sum(tra.tch_a_if_fail_old) tch_a_if_fail_old,
sum(tra.tch_tr_fail) tch_tr_fail,
sum(tra.tch_tr_fail_old) tch_tr_fail_old,
sum(tra.tch_lapd_fail) tch_lapd_fail,
sum(tra.tch_bts_fail) tch_bts_fail,
sum(tra.tch_user_act) tch_user_act,
sum(tra.tch_bcsu_reset) tch_bcsu_reset,
sum(tra.tch_netw_act) tch_netw_act,
sum(tra.tch_act_fail_call) tch_act_fail_call,
sum(tra.sdcch_radio_fail) sdcch_radio_fail,
sum(tra.sdcch_rf_old_ho) sdcch_rf_old_ho,
sum(tra.sdcch_user_act) sdcch_user_act,
sum(tra.sdcch_bcsu_reset) sdcch_bcsu_reset,
sum(tra.sdcch_netw_act) sdcch_netw_act,
sum(tra.sdcch_abis_fail_call) sdcch_abis_fail_call,
sum(tra.sdcch_abis_fail_old) sdcch_abis_fail_old,
sum(tra.sdcch_bts_fail) sdcch_bts_fail,
sum(tra.sdcch_lapd_fail) sdcch_lapd_fail,
sum(tra.sdcch_a_if_fail_call) sdcch_a_if_fail_call,
sum(tra.sdcch_a_if_fail_old) sdcch_a_if_fail_old,
sum(tra.sdcch_assign) sdcch_assign,
sum(tra.sdcch_ho_seiz) sdcch_ho_seiz,
sum(tra.sdcch_lu_attempt) sdcch_lu_attempt,
sum(tra.sdcch_lu_attempt_fail) sdcch_lu_attempt_fail,
sum(tra.sdcch_moc_seiz_att) sdcch_moc_seiz_att,
sum(tra.sdcch_mtc_seiz_att) sdcch_mtc_seiz_att,
sum(serv.t3101_expired) t3101_expired
from p_nbsc_traffic tra,p_nbsc_res_avail ava,p_nbsc_ho ho,p_nbsc_service serv,c_bts, objects o_bsc
where tra.period_start_time=ava.period_start_time and tra.period_start_time=ho.period_start_time
and tra.period_start_time=serv.period_start_time
and tra.int_id=ava.int_id and tra.int_id=ho.int_id and tra.int_id=serv.int_id
and tra.bts_int_id=ava.bts_int_id and tra.bts_int_id=ho.bts_int_id
and tra.bts_int_id=serv.bts_int_id
and tra.bts_int_id=c_bts.int_id and tra.int_id=o_bsc.int_id
and c_bts.conf_name='<ACTUAL>' and o_bsc.name <> 'BSC 0'
and o_bsc.name <> 'BSC0'
and o_bsc.name like 'XYBSC%'
and to_char(tra.period_start_time,'yyyymmddhh') between &Sdate and &Edate
and to_char(tra.period_start_time,'hh24') in (&stime)
--and c_bts.cell_id in (&CI)
group by
to_char(tra.period_start_time,'yyyymmddhh')
,o_bsc.name
,to_char(tra.period_start_time,'hh24')
--,c_bts.cell_id
--,tra.segment_id
|
|