Вы находитесь на странице: 1из 55

REM REM REM REM REM REM REM REM REM REM REM REM

******************************************************************** Modified: Prayoga / NWID-CJ / 2011.07.31 Prayoga / NWID-OJ / 2009.07.23 - Upgrade accompliance with Nokia NetAct OSS5.1 Prayoga / NWID-OJ / 2008.05.28 - Replace spare050744 counter with c1202 and formula related - Added end date function for spooling purposes - First trial on OSS 4.1 *********************************************************************

/********************************************************/ /* Give the script number here */ set autocommit on set verify off set feedback off define scr_nr = '2010' define hypen = '_' /* Global definitions */ start /home/nsntri/script/modul/ndp001mx.m01 /* Area selection and BTS filter creation */ start /home/nsntri/script/modul/ndp002mx.m01 /* Time period selection */ column zz new_value start_date select to_char(sysdate-(60/1440),'yyyymmdd') zz from column zz new_value start_hour select to_char(sysdate-(60/1440),'hh24') zz from column zz new_value end_date select to_char(sysdate,'yyyymmdd') zz from column zz new_value end_hour select to_char(sysdate,'hh24') zz from dual; define tim_clause1 = 'to_char(m.period_start_time,''yyyymmdd'') <= &end_date and to_char(m.period_start_time,''yyyymmdd'') >= &start_date and to_char(m.period_s tart_time,''hh24'') = &start_hour ' define time_cond_txt = ' (from &start_hour:00 to &end_hour:00)' dual;

dual; dual;

set termout on prompt prompt Collecting cell data. Please Wait...! -- set termout off create table d2_filter_&scr_nr&hyphen&unique as select m.int_id int_id ,m.bts_gid

bts_gid ,c_bts.segment_id ,c_bts.segment_name ,c_bts.cell_id cell_id ,la.la_name bts_name ,la.la_object_instance bts_id ,la.la_int_id la_int_id from p_nbsc_res_avail m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and (la.la_int_id) in (select bts_int_id from cell_doc_bts_filter_& scr_nr&hyphen&unique) group by m.int_id ,m.bts_gid ,c_bts.segment_id ,c_bts.segment_name ,c_bts.cell_id ,la.la_name ,la.la_object_instance ,la.la_int_id ; create index d2_idx_filter_&scr_nr&hyphen&unique on d2_filter_&scr_nr&hyphen&uni que(int_id,bts_gid,seg_id); create table d2_bh_&scr_nr&hyphen&unique as select m.int_id int_id ,c_bts.segment_id ,c_bts.segment_name ,c_bts.cell_id cell_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') from p_nbsc_res_avail m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' seg_id seg_name

seg_id seg_name repdate

and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&uniqu e) group by m.int_id ,c_bts.segment_id ,c_bts.segment_name ,c_bts.cell_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idxbh_&scr_nr&hyphen&unique _id,seg_id,repdate); on d2_bh_&scr_nr&hyphen&unique(int

-- set termout on prompt prompt Collecting bh traffic data. Please Wait...! -- set termout off create table d2_bh_resavail_&scr_nr&hyphen&unique as select m.int_id int_id ,c_bts.segment_id seg_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,m.period_duration period_duration ,m.busy_hour busy_hour ,sum(nvl(m.ave_busy_tch,0)) ave_busy_tch ,sum(nvl(m.res_av_denom14,0)) res_av_denom14 ,sum(decode(nvl(m.res_av_denom14,0),0,0,m.period_duration*nvl(m. ave_busy_tch,0)/nvl(m.res_av_denom14,0)/60)) tch_traffic_bh ,sum(nvl(m.ave_busy_sdcch,0)) ave_busy_sdcch ,sum(nvl(m.res_av_denom15,0)) res_av_denom15 ,sum(decode(nvl(m.res_av_denom15,0),0,0,nvl(m.ave_busy_sdcch,0)/ nvl(m.res_av_denom15,0))) sdcch_traffic_bh ,sum(nvl(m.period_duration*m.ave_tch_busy_half/60,0)) BH_HR_Traffic ,sum(nvl(m.period_duration*m.ave_tch_busy_full/60,0)) BH_FR_Traffic from rbs_ps_resavail_bts_bh m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and

(m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&unique) group by m.int_id ,c_bts.segment_id ,m.period_duration ,m.busy_hour ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idx_bh_resavail_&scr_nr&hyphen&unique on d2_bh_resavail_&scr_nr& hyphen&unique(int_id,seg_id,repdate); create table d2_bh_traffic_&scr_nr&hyphen&unique as select m.int_id int_id ,c_bts.segment_id seg_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,m.period_duration period_duration ,decode(sum(m.tch_requests_call_attempt-m.tch_seiz_att_due_sdcch _con),0,0,sum((m.tch_requests_call_attempt-m.tch_seiz_att_due_sdcch_con)-(m.succ _tch_seiz_call_attempt-m.tch_seiz_due_sdcch_con))/sum(m.tch_requests_call_attemp t-m.tch_seiz_att_due_sdcch_con)*100) tch_block_bh from RBS_PS_TRAFFIC_BTS_BH m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&unique) group by m.int_id ,c_bts.segment_id ,m.period_duration ,m.busy_hour ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idx_bh_traffic_&scr_nr&hyphen&unique on d2_bh_traffic_&scr_nr&hy phen&unique(int_id,seg_id,repdate);

-- set termout on prompt prompt Collecting traffic data. Please Wait...! -- set termout off

create table d2_traffic_&scr_nr&hyphen&unique as select m.int_id ,c_bts.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,sum(m.tch_seiz_due_sdcch_con) _due_sdcch_con ,sum(m.tch_seiz_att_due_sdcch_con) tch_seiz_att_due_sdcch_con ,sum(m.tch_succ_seiz_for_dir_acc) _seiz_for_dir_acc ,sum(m.tch_radio_fail) o_fail ,sum(m.tch_abis_fail_call) _fail_call ,sum(m.tch_a_if_fail_call) _fail_call ,sum(m.tch_tr_fail) ail ,sum(m.tch_user_act) _act ,sum(m.tch_bcsu_reset) _reset ,sum(m.tch_netw_act) _act ,sum(m.tch_act_fail_call) fail_call ,sum(m.tch_lapd_fail) _fail ,sum(m.tch_bts_fail) fail ,sum(m.tch_rf_old_ho) ld_ho ,sum(m.tch_abis_fail_old) _fail_old ,sum(m.tch_a_if_fail_old) _fail_old ,sum(m.tch_tr_fail_old) ail_old ,sum(m.tch_norm_seiz) _seiz ,sum(m.sdcch_assign+m.sdcch_ho_seiz) trf_54 ,sum(m.sdcch_radio_fail) dio_fail ,sum(m.sdcch_a_if_fail_call) if_fail_call ,sum(m.sdcch_abis_fail_call) is_fail_call ,sum(m.sdcch_user_act) er_act ,sum(m.sdcch_bcsu_reset) su_reset ,sum(m.sdcch_netw_act) tw_act ,sum(m.sdcch_bts_fail) s_fail ,sum(m.sdcch_lapd_fail) pd_fail

int_id seg_id tch_seiz

tch_succ tch_radi tch_abis tch_a_if tch_tr_f tch_user tch_bcsu tch_netw tch_act_ tch_lapd tch_bts_ tch_rf_o tch_abis tch_a_if tch_tr_f tch_norm

sdcch_ra sdcch_a_ sdcch_ab sdcch_us sdcch_bc sdcch_ne sdcch_bt sdcch_la

,sum(m.sdcch_rf_old_ho) _old_ho ,sum(m.sdcch_abis_fail_old) is_fail_old ,sum(m.sdcch_a_if_fail_old) if_fail_old ,sum(m.sdcch_seiz_att) iz_att ,sum(m.sdcch_busy_att - m.tch_seiz_due_sdcch_con) ,sum(m.sdcch_ho_seiz) _seiz ,sum(m.sdcch_assign) sign

sdcch_rf sdcch_ab sdcch_a_ sdcch_se blck_15 sdcch_ho sdcch_as

,sum(m.drop_after_tch_assign) drop_aft er_tch_assign ,sum(m.tch_call_req - m.tch_norm_seiz + m.tch_succ_seiz_for_dir_acc + m.t ch_rej_due_req_ch_a_if_crc) blck_9c_t ,sum(m.tch_call_req - m.tch_rej_due_req_ch_a_if_crc) trf_18a_ t ,sum(m.ms_tch_succ_seiz_assign_cmplt) ms_tch_succ_seiz_assign_cmplt ,sum(m.msc_o_ho_cmd) msc_o_ho_cmd ,sum(m.bsc_o_ho_cmd_assgn) bsc_o_ho_cmd_assgn ,sum(m.bts_ho_assgn) bts_ho_assgn ,sum(m.TCH_REQUESTS_CALL_ATTEMPT) tch_requests_call_attempt ,sum(m.SUCC_TCH_SEIZ_CALL_ATTEMPT) succ_tch_seiz_call_attempt ,sum(m.tch_call_req) tch_call_req ,sum(m.tch_rej_due_req_ch_a_if_crc) tch_rej_due_req_ch_a_if_crc ,sum(m.tch_full_succ_seiz) tch_full_succ_seiz ,sum(m.tch_half_succ_seiz) tch_half_succ_seiz ,sum(m.tch_rel_due_rad_fail_ph_2_3) tch_rel_due_rad_fail_ph_2_3 ,sum(nvl(m.gprs_ter_ug_rej_due_lack_pcu,0)) gprs_ter_ug_rej_due_lack_pcu ,sum(nvl(m.gprs_ter_ug_rej_due_csw_tr,0)) gprs_ter_ug_rej_due_csw_tr ,sum(nvl(m.gprs_ter_ug_rej_due_lack_psw,0)) gprs_ter_ug_rej_due_lack_psw ,sum(nvl(m.gprs_ter_upgrd_req,0)) gprs_ter_upgrd_req ,sum(m.tch_ho_seiz) tch_ho_seiz ,sum(m.sdcch_lu_attempt) sdcch_lu_attempt ,sum(m.sdcch_lu_attempt_fail) sdcch_lu_attempt_fail from p_nbsc_traffic m ,utp_legacy la ,c_bts where

&tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&unique) group by m.int_id ,c_bts.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idxtrf_&scr_nr&hyphen&unique ue(int_id,seg_id,repdate); -- set termout on prompt prompt Collecting pcu data. Please Wait...! -- set termout off create table d2_pcu_&scr_nr&hyphen&unique as select m.int_id ,c_bts.segment_id seg_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,sum(nvl(m.packet_ch_req,0)) packet_ch_req ,sum(nvl(m.NO_RADIO_RES_AVA_DL_TBF,0)) _RES_AVA_DL_TBF ,sum(nvl(m.req_1_TSL_DL,0)) 1_TSL_DL ,sum(nvl(m.req_2_TSL_DL,0)) 2_TSL_DL ,sum(nvl(m.req_3_TSL_DL,0)) 3_TSL_DL ,sum(nvl(m.req_4_TSL_DL,0)) 4_TSL_DL ,sum(nvl(m.req_5_8_TSL_DL,0)) TSL_DL ,sum(nvl(m.NO_RADIO_RES_AVA_UL_TBF,0)) _RES_AVA_UL_TBF ,sum(nvl(m.req_1_TSL_UL,0)) 1_TSL_UL ,sum(nvl(m.req_2_TSL_UL,0)) 2_TSL_UL ,sum(nvl(m.req_3_TSL_UL,0)) 3_TSL_UL ,sum(nvl(m.req_4_TSL_UL,0)) 4_TSL_UL ,sum(nvl(m.req_5_8_TSL_UL,0)) TSL_UL ,sum(nvl(m.NBR_OF_UL_TBF,0)) L_TBF ,sum(nvl(m.NBR_OF_DL_TBF,0)) L_TBF ,sum(nvl(m.UL_TBF_Establishment_Failed,0)) on d2_traffic_&scr_nr&hyphen&uniq

int_id

NO_RADIO req_ req_ req_ req_ req_5_8_ NO_RADIO req_ req_ req_ req_ req_5_8_ NBR_OF_U NBR_OF_D UL_TBF_E

stablishment_Failed ,sum(nvl(m.DL_TBF_Establishment_Failed,0)) DL_TBF_E stablishment_Failed ,sum(nvl(m.UL_EGPRS_TBF_REL_DUE_NO_RESP,0)) UL_EGPRS _TBF_REL_DUE_NO_RESP ,sum(nvl(m.DL_EGPRS_TBF_REL_DUE_NO_RESP,0)) DL_EGPRS _TBF_REL_DUE_NO_RESP ,sum(nvl(m.UL_TBF_REL_DUE_TO_SUSPEND,0)) UL_TBF_REL_ DUE_TO_SUSPEND ,sum(nvl(m.DL_TBF_REL_DUE_TO_SUSPEND,0)) DL_TBF_REL_ DUE_TO_SUSPEND ,sum(decode(nvl(AVE_DUR_UL_TBF_SUM,0),0,0,nvl(AVE_DUR_UL_TBF_DEN,0))) AVE_DUR_UL_TBF_DEN ,sum(decode(nvl(AVE_DUR_DL_TBF_SUM,0),0,0,nvl(AVE_DUR_DL_TBF_DEN,0))) AVE_DUR_DL_TBF_DEN ,sum(nvl(m.UL_TBF_REL_DUE_TO_FLUSH,0)) UL_TBF_REL_DUE_TO_FLUSH ,sum(nvl(m.DL_TBF_REL_DUE_TO_FLUSH,0)) DL_TBF_REL_DUE_TO_FLUSH ,sum(nvl(m.DL_TBF_RELEASES_DUE_DTM,0)) DL_TBF_RELEASES_DUE_DTM ,sum(nvl(m.UL_TBF_RELEASES_DUE_DTM,0)) UL_TBF_RELEASES_DUE_DTM ,sum(nvl(m.rlc_data_blocks_ul_cs1,0)) rlc_data_blocks_ul_cs1 ,sum(nvl(m.rlc_data_blocks_ul_cs2 ,0)) rlc_data_blocks_ul_cs2 ,sum(nvl(m.rlc_mac_cntrl_blocks_ul,0)) rlc_mac_cntrl_blocks_ul ,sum(nvl(m.BAD_FRAME_IND_UL_CS1,0)) BAD_FRAME_IND_UL_CS1 ,sum(nvl(m.BAD_FRAME_IND_UL_CS2,0)) BAD_FRAME_IND_UL_CS2 ,sum(nvl(m.BAD_FRAME_IND_UL_UNACK ,0)) BAD_FRAME_IND_UL_UNACK ,sum(nvl(m.IGNOR_RLC_DATA_BL_UL_DUE_BSN,0)) IGNOR_RL C_DATA_BL_UL_DUE_BSN ,sum(nvl(m.rlc_data_blocks_dl_cs1,0)) rlc_data_blocks_dl_cs1 ,sum(nvl(m.rlc_data_blocks_dl_cs2,0)) rlc_data_blocks_dl_cs2 ,sum(nvl(m.rlc_mac_cntrl_blocks_dl,0)) rlc_mac_cntrl_blocks_dl ,sum(nvl(m.RETRA_RLC_DATA_BLOCKS_DL_CS1,0)) RETRA_RL C_DATA_BLOCKS_DL_CS1 ,sum(nvl(m.RETRA_RLC_DATA_BLOCKS_DL_CS2,0)) RETRA_RL C_DATA_BLOCKS_DL_CS2 ,sum(nvl(m.period_duration,0)) pcu_period_duration ,sum(nvl(m.dl_tbf_establ_started,0)) dl_tbf_establ_started ,sum(nvl(m.ul_tbf_establ_started,0)) ul_tbf_establ_started ,sum(nvl(m.avg_vol_wght_llc_troughput_num,0)) avg_vol_wght_llc_troughput_num ,sum(nvl(m.avg_vol_wght_llc_troughput_den,0)) avg_vol_wght_llc_troughput_den ,sum(nvl(m.PACKET_IMMED_ASS_REJ_MSG,0)) PACKET_IMMED_ASS_REJ_MSG from

p_nbsc_packet_control_unit m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&unique) group by m.int_id ,c_bts.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idxpcu_&scr_nr&hyphen&unique int_id,seg_id,repdate); on d2_pcu_&scr_nr&hyphen&unique (

-- set termout on prompt prompt Collecting Coding Scheme data. Please Wait...! -- set termout off create table d2_cods_&scr_nr&hyphen&unique as select m.int_id int_id ,c_bts.segment_id seg_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,sum(nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE,0)) DL_RLC_BLOCKS_IN_ACK_MODE ,sum(nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE,0)) UL_RLC_BLOCKS_IN_ACK_MODE ,sum(nvl(m.RETRANS_RLC_DATA_BLOCKS_UL,0)) RETRANS_RLC_DATA_BLOCKS_UL ,sum(nvl(m.BAD_RLC_VALID_HDR_UL_UNACK,0)) BAD_RLC_VALID_HDR_UL_UNACK ,sum(nvl(m.UL_RLC_BLOCKS_IN_UNACK_MODE,0)) UL_RLC_BLOCKS_IN_UNACK_MODE ,sum(nvl(m.RETRANS_RLC_DATA_BLOCKS_DL,0)) RETRANS_RLC_DATA_BLOCKS_DL ,sum(nvl(m.DL_RLC_BLOCKS_IN_UNACK_MODE,0)) DL_RLC_BLOCKS_IN_UNACK_MODE ,sum(nvl(m.period_duration,0)) CS_period_duration ,sum(decode(m.coding_scheme,1,nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+m.UL_RLC_BL OCKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_MCS_1 ,sum(decode(m.coding_scheme,2,nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+m.UL_RLC_BL OCKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_MCS_2 ,sum(decode(m.coding_scheme,3,nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+m.UL_RLC_BL OCKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_MCS_3 ,sum(decode(m.coding_scheme,4,nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+m.UL_RLC_BL OCKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_MCS_4

,sum(decode(m.coding_scheme,5,nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+m.UL_RLC_BL OCKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_MCS_5 ,sum(decode(m.coding_scheme,6,nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+m.UL_RLC_BL OCKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_MCS_6 ,sum(decode(m.coding_scheme,7,0.5*nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+m.UL_RL C_BLOCKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_MCS_7 ,sum(decode(m.coding_scheme,8,0.5*nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+m.UL_RL C_BLOCKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_MCS_8 ,sum(decode(m.coding_scheme,9,0.5*nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+m.UL_RL C_BLOCKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_MCS_9 ,sum(decode(m.coding_scheme,1,nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_BLOC KS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_MCS_1 ,sum(decode(m.coding_scheme,2,nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_BLOC KS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_MCS_2 ,sum(decode(m.coding_scheme,3,nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_BLOC KS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_MCS_3 ,sum(decode(m.coding_scheme,4,nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_BLOC KS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_MCS_4 ,sum(decode(m.coding_scheme,5,nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_BLOC KS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_MCS_5 ,sum(decode(m.coding_scheme,6,nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_BLOC KS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_MCS_6 ,sum(decode(m.coding_scheme,7,0.5*nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_ BLOCKS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_MCS_7 ,sum(decode(m.coding_scheme,8,0.5*nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_ BLOCKS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_MCS_8 ,sum(decode(m.coding_scheme,9,0.5*nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_ BLOCKS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_MCS_9 ,sum(decode(m.coding_scheme,11,nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_BLO CKS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_CS_3 ,sum(decode(m.coding_scheme,12,nvl(m.DL_RLC_BLOCKS_IN_ACK_MODE+DL_RLC_BLO CKS_IN_UNACK_MODE,0),0)) DL_RLC_BLOCK_CS_4 ,sum(decode(m.coding_scheme,11,nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+UL_RLC_BLO CKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_CS_3 ,sum(decode(m.coding_scheme,12,nvl(m.UL_RLC_BLOCKS_IN_ACK_MODE+UL_RLC_BLO CKS_IN_UNACK_MODE,0),0)) UL_RLC_BLOCK_CS_4 ,sum(decode(m.coding_scheme,1,nvl(m.ul_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_ul+m.bad_rlc_valid_hdr_ul_unack+m.ul_rlc_blocks_in_unack_mode,0), 0)) XX_UL_1 ,sum(decode(m.coding_scheme,2,nvl(m.ul_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_ul+m.bad_rlc_valid_hdr_ul_unack+m.ul_rlc_blocks_in_unack_mode,0), 0)) XX_UL_2 ,sum(decode(m.coding_scheme,3,nvl(m.ul_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_ul+m.bad_rlc_valid_hdr_ul_unack+m.ul_rlc_blocks_in_unack_mode,0), 0)) XX_UL_3 ,sum(decode(m.coding_scheme,4,nvl(m.ul_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_ul+m.bad_rlc_valid_hdr_ul_unack+m.ul_rlc_blocks_in_unack_mode,0), 0)) XX_UL_4 ,sum(decode(m.coding_scheme,5,nvl(m.ul_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_ul+m.bad_rlc_valid_hdr_ul_unack+m.ul_rlc_blocks_in_unack_mode,0), 0)) XX_UL_5 ,sum(decode(m.coding_scheme,6,nvl(m.ul_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_ul+m.bad_rlc_valid_hdr_ul_unack+m.ul_rlc_blocks_in_unack_mode,0), 0)) XX_UL_6 ,sum(decode(m.coding_scheme,7,nvl(m.ul_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_ul+m.bad_rlc_valid_hdr_ul_unack+m.ul_rlc_blocks_in_unack_mode,0), 0))/2 XX_UL_7 ,sum(decode(m.coding_scheme,8,nvl(m.ul_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_ul+m.bad_rlc_valid_hdr_ul_unack+m.ul_rlc_blocks_in_unack_mode,0), 0))/2 XX_UL_8

,sum(decode(m.coding_scheme,9,nvl(m.ul_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_ul+m.bad_rlc_valid_hdr_ul_unack+m.ul_rlc_blocks_in_unack_mode,0), 0))/2 XX_UL_9 ,sum(decode(m.coding_scheme,1,nvl(m.dl_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_dl+m.dl_rlc_blocks_in_unack_mode,0),0)) XX_DL_1 ,sum(decode(m.coding_scheme,2,nvl(m.dl_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_dl+m.dl_rlc_blocks_in_unack_mode,0),0)) XX_DL_2 ,sum(decode(m.coding_scheme,3,nvl(m.dl_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_dl+m.dl_rlc_blocks_in_unack_mode,0),0)) XX_DL_3 ,sum(decode(m.coding_scheme,4,nvl(m.dl_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_dl+m.dl_rlc_blocks_in_unack_mode,0),0)) XX_DL_4 ,sum(decode(m.coding_scheme,5,nvl(m.dl_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_dl+m.dl_rlc_blocks_in_unack_mode,0),0)) XX_DL_5 ,sum(decode(m.coding_scheme,6,nvl(m.dl_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_dl+m.dl_rlc_blocks_in_unack_mode,0),0)) XX_DL_6 ,sum(decode(m.coding_scheme,7,nvl(m.dl_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_dl+m.dl_rlc_blocks_in_unack_mode,0),0)) XX_DL_7 ,sum(decode(m.coding_scheme,8,nvl(m.dl_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_dl+m.dl_rlc_blocks_in_unack_mode,0),0)) XX_DL_8 ,sum(decode(m.coding_scheme,9,nvl(m.dl_rlc_blocks_in_ack_mode+m.retrans_r lc_data_blocks_dl+m.dl_rlc_blocks_in_unack_mode,0),0)) XX_DL_9 from p_nbsc_coding_scheme m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&unique) group by m.int_id ,c_bts.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idx_cods_&scr_nr&hyphen&unique on d2_cods_&scr_nr&hyphen&uniqu e(int_id,seg_id,repdate); -- set termout on prompt prompt Collecting table_p_nbsc_power . Please Wait...! -- set termout off set termout on create table d2_p_nbsc_power_&scr_nr&hyphen&unique as select c_bts.segment_id seg_id ,-110+sum(nvl(m.ave_dl_sig_str,0))/sum(nvl(m.power_denom3,0)) dlstr ,-110+sum(nvl(m.ave_ul_sig_str,0))/sum(nvl(m.power_denom4,0)) ul str ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,43-2*sum(nvl(m.ave_ms_power,0))/sum(nvl(m.power_denom1,0)) mspwr ,avg(decode(m.trx_type,0, m.ave_ms_bs_dist*550,1, m.ave_ms_bs_dist*550 + c_bts.radius_extension)) dist from p_nbsc_power m

,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&uniqu e) group by c_bts.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idxp_nbsc_power_&scr_nr&hyphen&unique on d2_p_nbsc_power_&scr_nr &hyphen&unique(seg_id,repdate); prompt prompt Collecting QOS data. Please Wait...! create table d2_qos_&scr_nr&hyphen&unique as select m.int_id int_id ,m.segment_id seg_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,sum(nvl(m.VWTHR_NUMERATOR_GPRS,0)) VWTHR_NUMERATOR_GPRS ,sum(nvl(m.VWTHR_DENOMINATOR_GPRS,0)) VWTHR_DENOMINATOR_GPRS from P_NBSC_QOS m left outer join d2_filter_&scr_nr&hyphen&unique n on m.int_id = n.int_id and m.segment_id = n.seg_id where &tim_clause1 group by m.int_id ,m.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idx_qos_&scr_nr&hyphen&unique on d2_qos_&scr_nr&hyphen&unique( int_id,seg_id,repdate); -- set termout on prompt prompt Collecting AMR Traffic. Please Wait...! set termout off create table d2_amr_rxQual_&scr_nr&hyphen&unique as select m.int_id int_id ,c_bts.segment_id seg_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,sum(nvl(m.FREQ_UL_QUAL0,0)+nvl(m.FREQ_UL_QUAL1,0)+nvl(m.FREQ_UL_QUAL2,0)

+nvl(m.FREQ_UL_QUAL3,0)+nvl(m.FREQ_UL_QUAL4,0)+nvl(m.FREQ_UL_QUAL5,0)+nvl(m.FREQ _UL_QUAL6,0)+nvl(m.FREQ_UL_QUAL7,0))*0.48/3600 trf_119 ,sum(nvl(m.FREQ_UL_QUAL0,0)+nvl(m.FREQ_UL_QUAL1,0)+nvl(m.FREQ_UL_QUAL 2,0)+nvl(m.FREQ_UL_QUAL3,0)+nvl(m.FREQ_UL_QUAL4,0)+nvl(m.FREQ_UL_QUAL5,0)+nvl(m. FREQ_UL_QUAL6,0)+nvl(m.FREQ_UL_QUAL7,0)) ulq07 ,sum(nvl(m.FREQ_DL_QUAL0,0)+nvl(m.FREQ_DL_QUAL1,0)+nvl(m.FREQ_DL_QUAL 2,0)+nvl(m.FREQ_DL_QUAL3,0)+nvl(m.FREQ_DL_QUAL4,0)+nvl(m.FREQ_DL_QUAL5,0)+nvl(m. FREQ_DL_QUAL6,0)+nvl(m.FREQ_DL_QUAL7,0)) dlq07 ,sum(nvl(m.FREQ_UL_QUAL0,0)+nvl(m.FREQ_UL_QUAL1,0)+nvl(m.FREQ_UL_QUAL 2,0)+nvl(m.FREQ_UL_QUAL3,0)+nvl(m.FREQ_UL_QUAL4,0)+nvl(m.FREQ_UL_QUAL5,0)) ulq05 ,sum(nvl(m.FREQ_DL_QUAL0,0)+nvl(m.FREQ_DL_QUAL1,0)+nvl(m.FREQ_DL_QUAL 2,0)+nvl(m.FREQ_DL_QUAL3,0)+nvl(m.FREQ_DL_QUAL4,0)+nvl(m.FREQ_DL_QUAL5,0)) dlq05 ,sum(nvl(m.AMR_FR_MODE_1_UL_RXQUAL_0,0)+nvl(m.AMR_FR_MODE_1_UL_RXQUAL_1,0 )+nvl(m.AMR_FR_MODE_1_UL_RXQUAL_2,0)+nvl(m.AMR_FR_MODE_1_UL_RXQUAL_3,0)+nvl(m.AM R_FR_MODE_1_UL_RXQUAL_4,0)+nvl(m.AMR_FR_MODE_1_UL_RXQUAL_5,0)+nvl(m.AMR_FR_MODE_ 1_UL_RXQUAL_6,0)+nvl(m.AMR_FR_MODE_1_UL_RXQUAL_7,0)+nvl(m.AMR_FR_MODE_2_UL_RXQUA L_0,0)+nvl(m.AMR_FR_MODE_2_UL_RXQUAL_1,0)+nvl(m.AMR_FR_MODE_2_UL_RXQUAL_2,0)+nvl (m.AMR_FR_MODE_2_UL_RXQUAL_3,0)+nvl(m.AMR_FR_MODE_2_UL_RXQUAL_4,0)+nvl(m.AMR_FR_ MODE_2_UL_RXQUAL_5,0)+nvl(m.AMR_FR_MODE_2_UL_RXQUAL_6,0)+nvl(m.AMR_FR_MODE_2_UL_ RXQUAL_7,0)+nvl(m.AMR_FR_MODE_3_UL_RXQUAL_0,0)+nvl(m.AMR_FR_MODE_3_UL_RXQUAL_1,0 )+nvl(m.AMR_FR_MODE_3_UL_RXQUAL_2,0)+nvl(m.AMR_FR_MODE_3_UL_RXQUAL_3,0)+nvl(m.AM R_FR_MODE_3_UL_RXQUAL_4,0)+nvl(m.AMR_FR_MODE_3_UL_RXQUAL_5,0)+nvl(m.AMR_FR_MODE_ 3_UL_RXQUAL_6,0)+nvl(m.AMR_FR_MODE_3_UL_RXQUAL_7,0)+nvl(m.AMR_FR_MODE_4_UL_RXQUA L_0,0)+nvl(m.AMR_FR_MODE_4_UL_RXQUAL_1,0)+nvl(m.AMR_FR_MODE_4_UL_RXQUAL_2,0)+nvl (m.AMR_FR_MODE_4_UL_RXQUAL_3,0)+nvl(m.AMR_FR_MODE_4_UL_RXQUAL_4,0)+nvl(m.AMR_FR_ MODE_4_UL_RXQUAL_5,0)+nvl(m.AMR_FR_MODE_4_UL_RXQUAL_6,0)+nvl(m.AMR_FR_MODE_4_UL_ RXQUAL_7,0))*0.48/3600 trf_117 ,sum(nvl(m.AMR_HR_MODE_1_UL_RXQUAL_0,0)+nvl(m.AMR_HR_MODE_1_UL_RXQUAL_1,0 )+nvl(m.AMR_HR_MODE_1_UL_RXQUAL_2,0)+nvl(m.AMR_HR_MODE_1_UL_RXQUAL_3,0)+nvl(m.AM R_HR_MODE_1_UL_RXQUAL_4,0)+nvl(m.AMR_HR_MODE_1_UL_RXQUAL_5,0)+nvl(m.AMR_HR_MODE_ 1_UL_RXQUAL_6,0)+nvl(m.AMR_HR_MODE_1_UL_RXQUAL_7,0)+nvl(m.AMR_HR_MODE_2_UL_RXQUA L_0,0)+nvl(m.AMR_HR_MODE_2_UL_RXQUAL_1,0)+nvl(m.AMR_HR_MODE_2_UL_RXQUAL_2,0)+nvl (m.AMR_HR_MODE_2_UL_RXQUAL_3,0)+nvl(m.AMR_HR_MODE_2_UL_RXQUAL_4,0)+nvl(m.AMR_HR_ MODE_2_UL_RXQUAL_5,0)+nvl(m.AMR_HR_MODE_2_UL_RXQUAL_6,0)+nvl(m.AMR_HR_MODE_2_UL_ RXQUAL_7,0)+nvl(m.AMR_HR_MODE_3_UL_RXQUAL_0,0)+nvl(m.AMR_HR_MODE_3_UL_RXQUAL_1,0 )+nvl(m.AMR_HR_MODE_3_UL_RXQUAL_2,0)+nvl(m.AMR_HR_MODE_3_UL_RXQUAL_3,0)+nvl(m.AM R_HR_MODE_3_UL_RXQUAL_4,0)+nvl(m.AMR_HR_MODE_3_UL_RXQUAL_5,0)+nvl(m.AMR_HR_MODE_ 3_UL_RXQUAL_6,0)+nvl(m.AMR_HR_MODE_3_UL_RXQUAL_7,0)+nvl(m.AMR_HR_MODE_4_UL_RXQUA L_0,0)+nvl(m.AMR_HR_MODE_4_UL_RXQUAL_1,0)+nvl(m.AMR_HR_MODE_4_UL_RXQUAL_2,0)+nvl (m.AMR_HR_MODE_4_UL_RXQUAL_3,0)+nvl(m.AMR_HR_MODE_4_UL_RXQUAL_4,0)+nvl(m.AMR_HR_ MODE_4_UL_RXQUAL_5,0)+nvl(m.AMR_HR_MODE_4_UL_RXQUAL_6,0)+nvl(m.AMR_HR_MODE_4_UL_ RXQUAL_7,0))*0.48/3600 trf_118 from p_nbsc_rx_qual m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and

c_bts.conf_name = '<ACTUAL>' and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&uniqu e) group by m.int_id ,c_bts.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idxamr_rxQual_&scr_nr&hyphen&unique on d2_amr_rxQual_&scr_nr&hyp hen&unique(int_id,seg_id,repdate); -- set termout on prompt prompt Collecting ho data. Please Wait...! -- set termout off create table d2_ho_&scr_nr&hyphen&unique as select m.int_id int_id ,c_bts.segment_id seg_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,sum(nvl(m.msc_i_sdcch_tch,0)) msc_i_sdcch_tch ,sum(nvl(m.bsc_i_sdcch_tch,0)) bsc_i_sdcch_tch ,sum(nvl(m.cell_sdcch_tch,0)) cell_sdcch_tch ,sum(nvl(m.cell_tch_tch,0)) cell_tch _tch ,sum(nvl(m.msc_i_tch_tch,0)) msc_i_tch_tch ,sum(nvl(m.bsc_i_tch_tch,0)) bsc_i_tch_tch ,sum(nvl(m.msc_o_tch_tch,0)) msc_o_tch_tch ,sum(nvl(m.bsc_o_tch_tch,0)) bsc_o_tch_tch ,sum(nvl(m.msc_o_succ_ho,0)) msc_o_succ_ho ,sum(nvl(m.bsc_o_succ_ho,0)) bsc_o_succ_ho ,sum(nvl(m.cell_succ_ho,0)) cell_succ_ho ,sum(nvl(m.cell_tch_tch,0)+nvl(m.cell_sdcch_tch,0)+nvl(m.cell_sdcch,0)) ho_27 ,sum(nvl(m.msc_o_tch_tch_at,0)+nvl(m.msc_o_sdcch_tch_at,0)+nvl(m.msc_o_sd cch_at,0)) ho_9 ,sum(nvl(m.bsc_o_tch_tch_at,0)+nvl(m.bsc_o_sdcch_tch_at,0)+nvl(m.bsc_o_sd cch_at,0)) ho_11 ,sum(nvl(m.cell_tch_tch_at,0)+nvl(m.cell_sdcch_tch_at,0)+nvl(m.cell_sdcch _at,0)) ho_24 ,sum(nvl(m.cell_tch_tch_at,0) + nvl(m.cell_sdcch_at,0)) ho_12 ,sum(nvl(m.HO_ATT_INTER_BAND_TCH,0)) HO_ATT_INTER_BAND_TCH ,sum(nvl(m.SUCCESSFUL_HO_INTER_BAND_TCH,0)) SUCCESSFUL_HO_INTER_BAND_TCH ,sum(nvl(m.HO_ATTEMPT_INTERBAND_DUE_LEVEL,0)) HO_ATTEMPT_INTERBAND_DUE_LEVEL ,sum(nvl(m.SUCC_HO_INTER_BAND_DUE_LEVEL,0)) SUCC_HO_INTER_BAND_DUE_LEVEL ,decode(sum(nvl(m.HO_ATT_INTER_BAND_TCH,0)),0,0,sum(nvl(m.SUCCESSFUL_HO_I NTER_BAND_TCH,0))/sum(nvl(m.HO_ATT_INTER_BAND_TCH,0))*100) HO_interBand_load ,decode(sum(nvl(m.HO_ATTEMPT_INTERBAND_DUE_LEVEL,0)),0,0,sum(nvl(m.SUCC_H O_INTER_BAND_DUE_LEVEL,0))/sum(nvl(m.HO_ATTEMPT_INTERBAND_DUE_LEVEL,0))*100)

HO_interBand_Level ,sum(nvl(m.msc_o_fail_lack,0)) msc_o_fail_lack ,sum(nvl(m.bsc_o_fail_lack,0)) bsc_o_fail_lack ,sum(nvl(m.cell_fail_lack,0)) cell_fail_lack ,sum(nvl(m.bsc_i_unsucc_a_int_circ_type,0)+nvl(m.msc_controlled_in_ho,0)+ nvl(m.ho_unsucc_a_int_circ_type,0)-nvl(m.msc_o_sdcch_tch,0)-nvl(m.bsc_o_sdcch_tc h,0)-nvl(m.cell_sdcch_tch,0)) blck_9c_h ,sum(nvl(m.bsc_i_unsucc_a_int_circ_type,0)+nvl(m.msc_controlled_in_ho,0)+ nvl(m.ho_unsucc_a_int_circ_type,0)) trf_18a_h ,sum(nvl(m.msc_i_succ_ho,0)) msc_i_succ_ho ,sum(nvl(m.bsc_i_succ_ho,0)) bsc_i_succ_ho ,sum(nvl(msc_i_tch_tch_at,0)+nvl(msc_i_sdcch_tch_at,0)+nvl(msc_i_sdcch_at ,0)+nvl(msc_o_tch_tch_at,0)+nvl(msc_o_sdcch_tch_at,0)+nvl(msc_o_sdcch_at,0)+nvl( bsc_o_tch_tch_at,0)+nvl(bsc_o_sdcch_tch_at,0)+nvl(bsc_o_sdcch_at,0)+nvl(bsc_i_t ch_tch_at,0)+nvl(bsc_i_sdcch_tch_at,0)+nvl(bsc_i_sdcch_at,0)+nvl(cell_tch_tch_at ,0)+nvl(cell_sdcch_tch_at,0)+nvl(cell_sdcch_at,0)) hfr_1a_denum from p_nbsc_ho m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&uniqu e) group by m.int_id ,c_bts.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idxho_&scr_nr&hyphen&unique on d2_ho_&scr_nr&hyphen&unique(in t_id,seg_id,repdate); -- set termout on prompt prompt Collecting res avail data. Please Wait...! -- set termout off

create table d2_seg_resavail_&scr_nr&hyphen&unique as select a.int_id int_id ,c_bts.segment_id seg_id ,a.repdate repdate ,decode(sum(a.ava_1d_den),0,0,sum(a.ava_1d_num)/sum(a.ava_1d_den)) ava_1d ,sum(a.ava_1d_num)

ava_1d_num ,sum(a.ava_1d_den) ava_1d_den ,sum(a.trf_24c) trf_24c ,sum(a.trf_12b) trf_12b ,sum(a.clear_request_by_bsc_on_tch) clear_re quest_by_bsc_on_tch ,sum(a.ave_permanent_GPRS_ch) ave_permanent_GPRS_ch ,sum(a.available_fr) available_fr ,sum(a.available_hr) available_hr ,sum(a.available_dr) available_dr ,sum(a.Available_GPRS) Available_GPRS ,sum(a.facch_call_setup_fail_paging) facch_call_setup _fail_paging ,sum(a.trf_28) trf_28 ,sum(a.trf_4a) trf_4a from (select m.int_id int_id ,m.bts_gid bts_gid ,la.la_int_id la_int_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repd ate ,sum(m.ave_avail_tch_sum/m.ave_avail_tch_den+m.ave_GPRS_c hannels_sum/m.ave_GPRS_channels_den)*100 ava_1d_num ,sum(m.ave_non_avail_tch+m.ave_avail_tch_sum/m.ave_avail_ tch_den+m.ave_GPRS_channels_sum/m.ave_GPRS_channels_den) ava_1d_den ,sum(m.period_duration*m.ave_busy_tch/m.res_av_denom14/60 ) trf_24c ,sum(m.ave_busy_tch/m.res_av_denom14) trf_12b ,sum(nvl(m.clear_request_by_bsc_on_tch, 0)) clear_request_by_bsc_on_tch ,decode(sum(nvl(m.ave_permanent_GPRS_ch_den,0)),0,0,sum(n vl(ave_permanent_GPRS_ch_sum,0))/sum(nvl(m.ave_permanent_GPRS_ch_den,0))) ave_permanent_GPRS_ch ,decode(sum(nvl(m.ave_avail_TCH_den,0)),0,0,(sum(nvl(m.av e_avail_TCH_sum,0))/sum(nvl(m.ave_avail_TCH_den,0)))-(avg(m.ave_tch_avail_half)/ 2)) available_fr ,decode((sum(nvl(m.ave_avail_TCH_den,0))*sum(nvl(m.res_av _denom2,0))),0,0,(sum(nvl(m.ave_avail_TCH_sum,0))/sum(nvl(m.ave_avail_TCH_den,0) ))-(sum(nvl(m.ave_avail_full_TCH,0))/sum(nvl(m.res_av_denom2,0)))) available_hr ,decode(sum(m.res_av_denom2),0,0,sum(m.ave_avail_full_TCH )/sum(m.res_av_denom2)) + avg(m.ave_tch_avail_half)/2 - decode(sum(m.ave_avail_ TCH_den),0,0,Sum(m.ave_avail_TCH_sum)/sum(m.ave_avail_TCH_den)) available_dr ,decode(sum(nvl(m.ave_GPRS_channels_den,0)),0,0,sum(nvl(a

ve_GPRS_channels_sum,0))/sum(nvl(m.ave_GPRS_channels_den,0))) Available_GPRS ,sum(nvl(m.facch_call_setup_fail_paging,0)) facch_call_setup_fail_paging ,max(nvl(peak_busy_sdcch,0)) trf_28 ,decode(sum(decode(nvl(m.ave_sdcch_hold_tim,0),0,0,nvl(m. res_av_denom16,0))),0,0,sum(nvl(m.ave_sdcch_hold_tim,0))/(sum(decode(nvl(m.ave_s dcch_hold_tim,0),0,0,nvl(m.res_av_denom16,0)))*100)) trf_4a from p_nbsc_res_avail m ,utp_legacy la where &tim_clause1 and m.bts_gid = la.la_co_gid and (m.bts_gid) in (select bts_gid from d2_filter_&scr _nr&hyphen&unique) group by m.int_id ,m.bts_gid ,la.la_int_id ,to_char(m.period_start_time,'dd /mm/yyyy-hh24:mi') ) a left outer join c_bts on a.la_int_id = c_bts.int_id where c_bts.conf_name = '<ACTUAL>' group by a.int_id ,c_bts.segment_id ,a.repdate ; create index d2_idxres_seg_&scr_nr&hyphen&unique on d2_seg_resavail_&scr_nr&hy phen&unique(int_id,seg_id,repdate);

-- set termout on prompt prompt Collecting service data. Please Wait...! -- set termout off create table d2_service_&scr_nr&hyphen&unique as select m.int_id int_id ,c_bts.segment_id seg_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ,sum(nvl(m.tch_new_call_assign,0)) call_assign ,sum(nvl(m.dropped_calls,0))

repdate tch_new_

dropped_calls ,sum(nvl(m.conver_started,0)) conver_s tarted ,sum(nvl(m.tch_norm_release,0)) tch_norm _release ,sum(nvl(m.t3101_expired,0)) t3101_expired from p_nbsc_service m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&uniqu e) group by m.int_id ,c_bts.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idxsrv_&scr_nr&hyphen&unique on d2_service_&scr_nr&hyphen&uniq ue(int_id,seg_id,repdate); set termout on prompt prompt Collecting res access data. Please Wait...! -- set termout off create table d2_access_&scr_nr&hyphen&unique as select m.int_id int_id ,c_bts.segment_id seg_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') repdate ,sum(nvl(m.ch_req_msg_rec,0)) ch_req_msg_rec ,sum(nvl(m.rej_seiz_att_due_dist,0)) rej_seiz_att_due_dist ,sum(nvl(m.bcsu_overload_lower_limit,0)) bcsu_overload_lower_limit ,sum(nvl(m.bcsu_overload_upper_limit,0)) bcsu_overload_upper_limit ,sum(nvl(m.bcsu_overload_deleted_rach,0)) bcsu_overload_deleted_rach ,sum(nvl(m.ghost_ccch_res,0)-nvl(m.rej_seiz_att_due_dist,0)) ,sum(nvl(m.succ_sdcch_sms_est,0)) succ_sdcch_sms_est ,sum(nvl(m.unsucc_sdcch_sms_est,0)) unsucc_sdcch_sms_est ,sum(nvl(m.sdcch_loc_upd,0)) sdcch_loc_upd

rach_6

,sum(nvl(m.succ_seiz_term,0)) succ_seiz_term ,sum(nvl(m.succ_seiz_orig,0)) succ_seiz_orig ,sum(nvl(m.paging_msg_sent,0)) paging _msg_sent ,sum(nvl(m.cs_paging_msg_sent,0)) cs_pag ing_msg_sent ,sum(nvl(m.ps_paging_msg_sent,0)) ps_pag ing_msg_sent ,sum(nvl(m.delete_paging_command,0)) delete_paging_command from p_nbsc_res_access m ,utp_legacy la ,c_bts where &tim_clause1 and m.bts_gid = la.la_co_gid and la.la_int_id = c_bts.int_id and c_bts.conf_name = '<ACTUAL>' and (m.bts_gid) in (select bts_gid from d2_filter_&scr_nr&hyphen&uniqu e) group by m.int_id ,c_bts.segment_id ,to_char(m.period_start_time,'dd/mm/yyyy-hh24:mi') ; create index d2_idxacc_&scr_nr&hyphen&unique on d2_access_&scr_nr&hyphen&uniqu e(int_id,seg_id,repdate); -- set termout on prompt prompt Combining measurement data. Please Wait...! -- set termout off create table d2_final_&scr_nr&hyphen&unique as SELECT a.int_id ,a.repdate ,a.seg_id ,a.seg_name ,a.cell_id from d2_bh_&scr_nr&hyphen&unique a ; create index d2_idxfnl_&scr_nr&hyphen&unique on d2_final_&scr_nr&hyphen&unique(i nt_id,seg_id,repdate); set termout on prompt prompt Altering column into final table. Please Wait...! -- set termout off

alter table d2_final_&scr_nr&hyphen&unique add ( BH number(1 2) ,CSSR number(12,2) ,DCR number(12,2) ,dcr_29 number(12,2) ,dcr_v2 number(12,2) ,DCR_Siemens1 number(12,2) ,DCR_Siemens2 number(12,2) ,HOSR number(12,2) ,tch_block number(12,2) ,sdcch_block number(12,2) ,sdcch_drop_rate number(12,2) ,TASR number(12,2) ,Traffic number(12,2) ,BH_Traffic number(12,2) ,BH_HR_Traffic number(12,2) ,BH_FR_Traffic number(12,2) ,BH_TCH_Block number(12,2) ,FR_traffic number(12,2) ,HR_Traffic number(12,2) ,SDCCH_Traffic number(12,2) ,BH_SDCCH_Traffic number(12,2) ,SMS_SD_Attempt number(12) ,SMS_SD_Fail_Rate number(12,2) ,SDCCH_LU number(12,2) ,SDCCH_MOC number(12,2) ,SDCCH_MTC number(12,2) ,Available_FR number(12) ,Available_HR number(12) ,Available_DR number(12) ,Available_GPRS number(12,2) ,tbf_15 number(12,2) ,tbf_16 number(12,2) ,tbf_15_denom number(12,2) ,tbf_16_denom number(12,2) ,trf_212c number(12,2) ,trf_213c number(12,2) ,trf_214a number(12,2) ,trf_215a number(12,2) ,trf_119 number(12,2) ,ulq05 number(12,2) ,dlq05 number(12,2) ,ulq07 number(12,2) ,dlq07 number(12,2) ,trf_117 number(12,2) ,trf_118 number(12,2) ,TCHblkNom_b1 number(12) ,TCHblkDenom_b1 number(12) ,TCHblkNom_b2 number(12) ,TCHblkDenom_b2 number(12) ,tch_new_call_assign number(12) ,dropped_calls number(12) ,conver_started number(12) ,tch_norm_release number(12) ,msc_i_sdcch_tch number(12) ,bsc_i_sdcch_tch number(12) ,cell_sdcch_tch number(12)

,msc_i_tch_tch ,bsc_i_tch_tch ,msc_o_tch_tch ,bsc_o_tch_tch ,msc_o_succ_ho ,bsc_o_succ_ho ,ava_1d 2,2) ,ava_1d_num ,ava_1d_den ,trf_24c ,trf_2d ,blck_9c_h ,trf_18a_h ,ho_27 ,ho_9 ,ho_11 ,ho_24 ,ho_12 ,ho_att_inter_band_tch number(12) number(12)

number(12) number(12) number(12) number(12) number(12) number(12) number(1 number(12) number(12) number(12,2) number(12,2) number(12) number(12) number(12) number(12) number(12) number(12) number(12) ,successful_ho_inter_band_tch ,ho_attempt_interband_due_level

number(12) ,succ_ho_inter_band_due_level number(12) ,ho_interband_load number(12,2) ,ho_interband_level number(12,2) ,msc_o_fail_lack number(12) ,bsc_o_fail_lack number(12) ,cell_fail_lack number(12) ,ch_req_msg_rec number(12) ,rej_seiz_att_due_dist number(12) ,bcsu_overload_lower_limit number(12) ,bcsu_overload_upper_limit number(12) ,bcsu_overload_deleted_rach number(12) ,rach_6 number(12) ,rach_7 number(12,2) ,succ_sdcch_sms_est number(12) ,unsucc_sdcch_sms_est number(12) ,sdcch_loc_upd number(12) ,succ_seiz_term number(12) ,succ_seiz_orig number(12) ,tch_seiz_due_sdcch_con number(12) ,tch_succ_seiz_for_dir_acc number(12) ,tch_radio_fail number(12) ,tch_abis_fail_call number(12) ,tch_a_if_fail_call number(12) ,tch_tr_fail number(12) ,tch_user_act number(12) ,tch_bcsu_reset number(12) ,tch_netw_act number(12) ,tch_act_fail_call number(12) ,tch_lapd_fail number(12) ,tch_bts_fail number(12) ,tch_rf_old_ho number(12) ,tch_abis_fail_old number(12)

,tch_a_if_fail_old number(12) ,tch_tr_fail_old number(12) ,tch_norm_seiz number(12) ,trf_54 number(12) ,sdcch_radio_fail number(12) ,sdcch_a_if_fail_call number(12) ,sdcch_abis_fail_call number(12) ,sdcch_user_act number(12) ,sdcch_bcsu_reset number(12) ,sdcch_netw_act number(12) ,sdcch_bts_fail number(12) ,sdcch_lapd_fail number(12) ,sdcch_rf_old_ho number(12) ,sdcch_abis_fail_old number(12) ,sdcch_a_if_fail_old number(12) ,sdcch_seiz_att number(12) ,blck_15 number(12) ,sdcch_ho_seiz number(12) ,sdcch_assign number(12) ,drop_after_tch_assign number(12) ,blck_9c_t number(12) ,trf_18a_t number(12) ,clear_request_by_bsc_on_tch number(12) ,ms_tch_succ_seiz_assign_cmplt number(12) ,cell_tch_tch number(12) ,t3101_expired number(12) ,cell_succ_ho number(12) ,msc_o_ho_cmd number(12) ,bsc_o_ho_cmd_assgn number(12) ,bts_ho_assgn number(12) ,tch_requests_call_attempt number(12) ,succ_tch_seiz_call_attempt number(12) ,tch_call_req number(12) ,tch_rej_due_req_ch_a_if_crc number(12) ,ave_gprs_channels_sum number(12,2) ,ave_gprs_channels_den number(12,2) ,ave_avail_tch_sum number(12,2) ,ave_avail_tch_den number(12,2) ,ave_avail_full_tch number(12,2) ,res_av_denom2 number(12,2) ,ave_tch_avail_half number(12,2) ,ave_tch_busy_half number(12,2) ,ave_tch_busy_full number(12,2) ,res_avail_period_duration number(12) ,ave_permanent_GPRS_ch_sum number(12,2) ,ave_permanent_GPRS_ch_den number(12,2) ,ave_permanent_GPRS_ch number(12,2) ,tch_seiz_att_due_sdcch_con number(12) ,ave_busy_sdcch number(12,2) ,res_av_denom15 number(12) ,packet_ch_req number(12) ,NO_RADIO_RES_AVA_DL_TBF number(12) ,req_1_TSL_DL number(12) ,req_2_TSL_DL number(12) ,req_3_TSL_DL number(12) ,req_4_TSL_DL number(12) ,req_5_8_TSL_DL number(12) ,NO_RADIO_RES_AVA_UL_TBF number(12) ,req_1_TSL_UL number(12) ,req_2_TSL_UL number(12)

,req_3_TSL_UL number(12) ,req_4_TSL_UL number(12) ,req_5_8_TSL_UL number(12) ,NBR_OF_UL_TBF number(12) ,NBR_OF_DL_TBF number(12) ,UL_TBF_Establishment_Failed number(12) ,DL_TBF_Establishment_Failed number(12) ,UL_EGPRS_TBF_REL_DUE_NO_RESP number(12) ,DL_EGPRS_TBF_REL_DUE_NO_RESP number(12) ,UL_TBF_REL_DUE_TO_SUSPEND number(12) ,DL_TBF_REL_DUE_TO_SUSPEND number(12) ,AVE_DUR_UL_TBF_DEN number(12) ,AVE_DUR_DL_TBF_DEN number(12) ,UL_TBF_REL_DUE_TO_FLUSH number(12) ,DL_TBF_REL_DUE_TO_FLUSH number(12) ,DL_TBF_RELEASES_DUE_DTM number(12) ,UL_TBF_RELEASES_DUE_DTM number(12) ,rlc_data_blocks_ul_cs1 number(12) ,rlc_data_blocks_ul_cs2 number(12) ,rlc_mac_cntrl_blocks_ul number(12) ,BAD_FRAME_IND_UL_CS1 number(12) ,BAD_FRAME_IND_UL_CS2 number(12) ,BAD_FRAME_IND_UL_UNACK number(12) ,IGNOR_RLC_DATA_BL_UL_DUE_BSN number(12) ,rlc_data_blocks_dl_cs1 number(12) ,rlc_data_blocks_dl_cs2 number(12) ,rlc_mac_cntrl_blocks_dl number(12) ,RETRA_RLC_DATA_BLOCKS_DL_CS1 number(12) ,RETRA_RLC_DATA_BLOCKS_DL_CS2 number(12) ,pcu_period_duration number(12) ,DL_RLC_BLOCKS_IN_ACK_MODE number(12) ,UL_RLC_BLOCKS_IN_ACK_MODE number(12) ,RETRANS_RLC_DATA_BLOCKS_UL number(12) ,BAD_RLC_VALID_HDR_UL_UNACK number(12) ,UL_RLC_BLOCKS_IN_UNACK_MODE number(12) ,RETRANS_RLC_DATA_BLOCKS_DL number(12) ,DL_RLC_BLOCKS_IN_UNACK_MODE number(12) ,CS_period_duration number(12) ,UL_RLC_BLOCK_MCS_1 number(12) ,UL_RLC_BLOCK_MCS_2 number(12) ,UL_RLC_BLOCK_MCS_3 number(12) ,UL_RLC_BLOCK_MCS_4 number(12) ,UL_RLC_BLOCK_MCS_5 number(12) ,UL_RLC_BLOCK_MCS_6 number(12) ,UL_RLC_BLOCK_MCS_7 number(12) ,UL_RLC_BLOCK_MCS_8 number(12) ,UL_RLC_BLOCK_MCS_9 number(12) ,DL_RLC_BLOCK_MCS_1 number(12) ,DL_RLC_BLOCK_MCS_2 number(12) ,DL_RLC_BLOCK_MCS_3 number(12) ,DL_RLC_BLOCK_MCS_4 number(12) ,DL_RLC_BLOCK_MCS_5 number(12) ,DL_RLC_BLOCK_MCS_6 number(12) ,DL_RLC_BLOCK_MCS_7 number(12) ,DL_RLC_BLOCK_MCS_8 number(12) ,DL_RLC_BLOCK_MCS_9 number(12) ,DL_RLC_BLOCK_CS_3 number(12) ,DL_RLC_BLOCK_CS_4 number(12) ,UL_RLC_BLOCK_CS_3 number(12) ,UL_RLC_BLOCK_CS_4 number(12)

,tch_full_succ_seiz ,tch_half_succ_seiz ,tch_rel_due_rad_fail_ph_2_3 ,gprs_ter_ug_rej_due_lack_pcu ,gprs_ter_ug_rej_due_csw_tr ,gprs_ter_ug_rej_due_lack_psw ,gprs_ter_upgrd_req number(12) ,tch_ho_seiz number(12) ,dl_tbf_establ_started 2) ,ul_tbf_establ_started 2) ,tbf_77 number(12,2) ,blck_22a number(12,2) ,trf_13e number(12,2) ,tbf_34a number(12,2) ,dcr_31a number(12,2) ,facch_call_setup_fail_paging ,sdr_1a number(12,2) ,msc_ho_wcdma_ran_succ 2) ,msc_to_wcdma_ran_succ_tch_ho ,msc_tch_ho_wcdma_ran_att 2)

number(12) number(12) number(12) number(12) number(12) number(12)

number(1 number(1

number(12) number(1 number(12) number(1

,msc_tch_ho_from_wcdma_ran_att number(12) ,msc_i_succ_ho number(12) ,bsc_i_succ_ho number(12) ,hfr_1a_denum number(12) ,hfr_1a number(12,2) ,hfr_32a number(12,2) ,avg_vol_wght_llc_troughput_num number(12) ,avg_vol_wght_llc_troughput_den number(12) ,llc_3a number(12,2) ,trf_28 number(12) ,ave_sdcch_hold_tim number(12) ,res_av_denom16 number(12) ,count_hour number(12) ,trf_4a number(12,2) ,trf_12b number(12,2) ,trf_78c

number(12,2) ,trf_79c number(12,2) ,XX_UL_1 number(12) ,XX_UL_2 number(12) ,XX_UL_3 number(12) ,XX_UL_4 number(12) ,XX_UL_5 number(12) ,XX_UL_6 number(12) ,XX_UL_7 number(12) ,XX_UL_8 number(12) ,XX_UL_9 number(12) ,XX_DL_1 number(12) ,XX_DL_2 number(12) ,XX_DL_3 number(12) ,XX_DL_4 number(12) ,XX_DL_5 number(12) ,XX_DL_6 number(12) ,XX_DL_7 number(12) ,XX_DL_8 number(12) ,XX_DL_9 number(12) ,VWTHR_NUMERATOR_GPRS 2) ,VWTHR_DENOMINATOR_GPRS 2) ,llc_4a number(12,2) ,PACKET_IMMED_ASS_REJ_MSG 2) ,paging_msg_sent ,cs_paging_msg_sent ,ps_paging_msg_sent ,delete_paging_command ,sdcch_lu_attempt ,sdcch_lu_attempt_fail ,dlstr number(12,2) ,ulstr number(12,2) ,mspwr number(12,2) ,dist ); -- set termout on number(12) number(12) number(12) number(12) number(12) number(12) number(1 number(1 number(1

number(12,2)

prompt prompt Updating traffic data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( tch_seiz_due_sdcch_con ,tch_seiz_att_due_sdcch_con ,tch_succ_seiz_for_dir_acc ,tch_radio_fail ,tch_abis_fail_call ,tch_a_if_fail_call ,tch_tr_fail ,tch_user_act ,tch_bcsu_reset ,tch_netw_act ,tch_act_fail_call ,tch_lapd_fail ,tch_bts_fail ,tch_rf_old_ho ,tch_abis_fail_old ,tch_a_if_fail_old ,tch_tr_fail_old ,tch_norm_seiz ,trf_54 ,sdcch_radio_fail ,sdcch_a_if_fail_call ,sdcch_abis_fail_call ,sdcch_user_act ,sdcch_bcsu_reset ,sdcch_netw_act ,sdcch_bts_fail ,sdcch_lapd_fail ,sdcch_rf_old_ho ,sdcch_abis_fail_old ,sdcch_a_if_fail_old ,sdcch_seiz_att ,blck_15 ,sdcch_ho_seiz ,sdcch_assign ,drop_after_tch_assign ,blck_9c_t ,trf_18a_t ,ms_tch_succ_seiz_assign_cmplt ,msc_o_ho_cmd ,bsc_o_ho_cmd_assgn ,bts_ho_assgn ,tch_requests_call_attempt ,succ_tch_seiz_call_attempt ,tch_call_req ,tch_rej_due_req_ch_a_if_crc ,tch_full_succ_seiz ,tch_half_succ_seiz ,tch_rel_due_rad_fail_ph_2_3 ,gprs_ter_ug_rej_due_lack_pcu ,gprs_ter_ug_rej_due_csw_tr ,gprs_ter_ug_rej_due_lack_psw ,gprs_ter_upgrd_req ,tch_ho_seiz ,sdcch_lu_attempt

,sdcch_lu_attempt_fail )= (select tch_seiz_due_sdcch_con ,tch_seiz_att_due_sdcch_con ,tch_succ_seiz_for_dir_acc ,tch_radio_fail ,tch_abis_fail_call ,tch_a_if_fail_call ,tch_tr_fail ,tch_user_act ,tch_bcsu_reset ,tch_netw_act ,tch_act_fail_call ,tch_lapd_fail ,tch_bts_fail ,tch_rf_old_ho ,tch_abis_fail_old ,tch_a_if_fail_old ,tch_tr_fail_old ,tch_norm_seiz ,trf_54 ,sdcch_radio_fail ,sdcch_a_if_fail_call ,sdcch_abis_fail_call ,sdcch_user_act ,sdcch_bcsu_reset ,sdcch_netw_act ,sdcch_bts_fail ,sdcch_lapd_fail ,sdcch_rf_old_ho ,sdcch_abis_fail_old ,sdcch_a_if_fail_old ,sdcch_seiz_att ,blck_15 ,sdcch_ho_seiz ,sdcch_assign ,drop_after_tch_assign ,blck_9c_t ,trf_18a_t ,ms_tch_succ_seiz_assign_cmplt ,msc_o_ho_cmd ,bsc_o_ho_cmd_assgn ,bts_ho_assgn ,tch_requests_call_attempt ,succ_tch_seiz_call_attempt ,tch_call_req ,tch_rej_due_req_ch_a_if_crc ,tch_full_succ_seiz ,tch_half_succ_seiz ,tch_rel_due_rad_fail_ph_2_3 ,gprs_ter_ug_rej_due_lack_pcu ,gprs_ter_ug_rej_due_csw_tr ,gprs_ter_ug_rej_due_lack_psw ,gprs_ter_upgrd_req ,tch_ho_seiz ,sdcch_lu_attempt ,sdcch_lu_attempt_fail from d2_traffic_&scr_nr&hyphen&unique t

where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate ); -- set termout on prompt prompt Updating bh traffic data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( BH ,BH_Traffic ,BH_SDCCH_Traffic ,BH_HR_Traffic ,BH_FR_Traffic )= (select busy_hour ,tch_traffic_bh ,sdcch_traffic_bh ,BH_HR_Traffic ,BH_FR_Traffic from d2_bh_resavail_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate and rownum = 1 ); update d2_final_&scr_nr&hyphen&unique r set ( BH_TCH_Block )= (select tch_block_bh from d2_bh_traffic_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate and rownum = 1 ); set termout on prompt prompt Updating t_p_nbsc_power data into new table. Please Wait...! -- set termout off

update d2_final_&scr_nr&hyphen&unique r set ( dlstr ,ulstr ,mspwr ,dist )= (select dlstr ,ulstr ,mspwr ,dist from d2_p_nbsc_power_&scr_nr&hyphen&unique t where r.seg_id = t.seg_id and r.repdate = t.repdate ); -- set termout on prompt prompt Updating AMR data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( trf_119 ,trf_117 ,trf_118 ,ulq05 ,dlq05 ,ulq07 ,dlq07 )= (select trf_119 ,trf_117 ,trf_118 ,ulq05 ,dlq05 ,ulq07 ,dlq07 from d2_amr_rxQual_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate );

update d2_final_&scr_nr&hyphen&unique r set ( VWTHR_NUMERATOR_GPRS

,VWTHR_DENOMINATOR_GPRS ,llc_4a )= (select VWTHR_NUMERATOR_GPRS ,VWTHR_DENOMINATOR_GPRS ,decode(VWTHR_DENOMINATOR_GPRS,0,0, VWTHR_NUMERA TOR_GPRS*8/(VWTHR_DENOMINATOR_GPRS*10)) from d2_qos_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate );

-- set termout on prompt prompt Updating ho data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( msc_i_sdcch_tch ,bsc_i_sdcch_tch ,cell_sdcch_tch ,msc_i_tch_tch ,bsc_i_tch_tch ,msc_o_tch_tch ,bsc_o_tch_tch ,msc_o_succ_ho ,bsc_o_succ_ho ,blck_9c_h ,trf_18a_h ,ho_27 ,ho_9 ,ho_11 ,ho_24 ,ho_12 ,HO_ATT_INTER_BAND_TCH ,SUCCESSFUL_HO_INTER_BAND_TCH ,HO_ATTEMPT_INTERBAND_DUE_LEVEL ,SUCC_HO_INTER_BAND_DUE_LEVEL ,HO_interBand_load ,HO_interBand_Level

,msc_o_fail_lack ,bsc_o_fail_lack ,cell_fail_lack ,cell_tch_tch ,cell_succ_ho ,msc_i_succ_ho ,bsc_i_succ_ho ,hfr_1a_denum )= (select msc_i_sdcch_tch ,bsc_i_sdcch_tch ,cell_sdcch_tch ,msc_i_tch_tch ,bsc_i_tch_tch ,msc_o_tch_tch ,bsc_o_tch_tch ,msc_o_succ_ho ,bsc_o_succ_ho ,blck_9c_h ,trf_18a_h ,ho_27 ,ho_9 ,ho_11 ,ho_24 ,ho_12 ,HO_ATT_INTER_BAND_TCH ,SUCCESSFUL_HO_INTER_BAND_TCH ,HO_ATTEMPT_INTERBAND_DUE_LEVEL ,SUCC_HO_INTER_BAND_DUE_LEVEL ,HO_interBand_load ,HO_interBand_Level ,msc_o_fail_lack ,bsc_o_fail_lack ,cell_fail_lack ,cell_tch_tch ,cell_succ_ho ,msc_i_succ_ho ,bsc_i_succ_ho ,hfr_1a_denum from d2_ho_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate ); -- set termout on prompt prompt Updating availability data into new table. Please Wait...! -- set termout off

update d2_final_&scr_nr&hyphen&unique r

set ( ava_1d ,ava_1d_num ,ava_1d_den ,trf_24c ,trf_12b ,clear_request_by_bsc_on_tch ,ave_permanent_GPRS_ch ,available_fr ,available_hr ,available_dr ,Available_GPRS ,facch_call_setup_fail_paging ,trf_28 ,trf_4a )= (select ava_1d ,ava_1d_num ,ava_1d_den ,trf_24c ,trf_12b ,clear_request_by_bsc_on_tch ,ave_permanent_GPRS_ch ,available_fr ,available_hr ,available_dr ,Available_GPRS ,facch_call_setup_fail_paging ,trf_28 ,trf_4a from d2_seg_resavail_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate );

-- set termout on prompt prompt Updating service data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( tch_new_call_assign ,dropped_calls ,conver_started ,tch_norm_release ,t3101_expired )= (select tch_new_call_assign ,dropped_calls

,conver_started ,tch_norm_release ,t3101_expired from d2_service_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate ); -- set termout on prompt prompt Updating pcu data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( packet_ch_req ,tbf_15 ,tbf_16 ,tbf_15_denom ,tbf_16_denom ,NO_RADIO_RES_AVA_DL_TBF ,req_1_TSL_DL ,req_2_TSL_DL ,req_3_TSL_DL ,req_4_TSL_DL ,req_5_8_TSL_DL ,NO_RADIO_RES_AVA_UL_TBF ,req_1_TSL_UL ,req_2_TSL_UL ,req_3_TSL_UL ,req_4_TSL_UL ,req_5_8_TSL_UL ,NBR_OF_UL_TBF ,NBR_OF_DL_TBF ,UL_TBF_Establishment_Failed ,DL_TBF_Establishment_Failed ,UL_EGPRS_TBF_REL_DUE_NO_RESP ,DL_EGPRS_TBF_REL_DUE_NO_RESP ,UL_TBF_REL_DUE_TO_SUSPEND ,DL_TBF_REL_DUE_TO_SUSPEND ,AVE_DUR_UL_TBF_DEN ,AVE_DUR_DL_TBF_DEN ,UL_TBF_REL_DUE_TO_FLUSH ,DL_TBF_REL_DUE_TO_FLUSH ,DL_TBF_RELEASES_DUE_DTM ,UL_TBF_RELEASES_DUE_DTM ,rlc_data_blocks_ul_cs1 ,rlc_data_blocks_ul_cs2 ,rlc_mac_cntrl_blocks_ul ,BAD_FRAME_IND_UL_CS1 ,BAD_FRAME_IND_UL_CS2 ,BAD_FRAME_IND_UL_UNACK ,IGNOR_RLC_DATA_BL_UL_DUE_BSN ,rlc_data_blocks_dl_cs1 ,rlc_data_blocks_dl_cs2

,rlc_mac_cntrl_blocks_dl ,RETRA_RLC_DATA_BLOCKS_DL_CS1 ,RETRA_RLC_DATA_BLOCKS_DL_CS2 ,pcu_period_duration ,dl_tbf_establ_started ,ul_tbf_establ_started ,avg_vol_wght_llc_troughput_num ,avg_vol_wght_llc_troughput_den ,PACKET_IMMED_ASS_REJ_MSG )= (select packet_ch_req ,decode((req_1_TSL_UL+req_2_TSL_UL+req_3_TSL_UL+req_4_TSL_UL+req_5_8_TSL _UL),0,0,100*NO_RADIO_RES_AVA_UL_TBF/(req_1_TSL_UL+req_2_TSL_UL+req_3_TSL_UL+req _4_TSL_UL+req_5_8_TSL_UL)) ,decode((req_1_TSL_DL+req_2_TSL_DL+req_3_TSL_DL+req_4_TSL_DL+req_5_8_TSL _DL),0,0,100*NO_RADIO_RES_AVA_DL_TBF/(req_1_TSL_DL+req_2_TSL_DL+req_3_TSL_DL+req _4_TSL_DL+req_5_8_TSL_DL)) ,(req_1_TSL_UL+req_2_TSL_UL+req_3_TSL_UL+req_4_TSL_UL+req_5_8_TSL_UL) ,(req_1_TSL_DL+req_2_TSL_DL+req_3_TSL_DL+req_4_TSL_DL+req_5_8_TSL_DL) ,NO_RADIO_RES_AVA_DL_TBF ,req_1_TSL_DL ,req_2_TSL_DL ,req_3_TSL_DL ,req_4_TSL_DL ,req_5_8_TSL_DL ,NO_RADIO_RES_AVA_UL_TBF ,req_1_TSL_UL ,req_2_TSL_UL ,req_3_TSL_UL ,req_4_TSL_UL ,req_5_8_TSL_UL ,NBR_OF_UL_TBF ,NBR_OF_DL_TBF ,UL_TBF_Establishment_Failed ,DL_TBF_Establishment_Failed ,UL_EGPRS_TBF_REL_DUE_NO_RESP ,DL_EGPRS_TBF_REL_DUE_NO_RESP ,UL_TBF_REL_DUE_TO_SUSPEND ,DL_TBF_REL_DUE_TO_SUSPEND ,AVE_DUR_UL_TBF_DEN ,AVE_DUR_DL_TBF_DEN ,UL_TBF_REL_DUE_TO_FLUSH ,DL_TBF_REL_DUE_TO_FLUSH ,DL_TBF_RELEASES_DUE_DTM ,UL_TBF_RELEASES_DUE_DTM ,rlc_data_blocks_ul_cs1 ,rlc_data_blocks_ul_cs2 ,rlc_mac_cntrl_blocks_ul ,BAD_FRAME_IND_UL_CS1 ,BAD_FRAME_IND_UL_CS2 ,BAD_FRAME_IND_UL_UNACK ,IGNOR_RLC_DATA_BL_UL_DUE_BSN ,rlc_data_blocks_dl_cs1 ,rlc_data_blocks_dl_cs2 ,rlc_mac_cntrl_blocks_dl ,RETRA_RLC_DATA_BLOCKS_DL_CS1 ,RETRA_RLC_DATA_BLOCKS_DL_CS2 ,pcu_period_duration ,dl_tbf_establ_started

,ul_tbf_establ_started ,avg_vol_wght_llc_troughput_num ,avg_vol_wght_llc_troughput_den ,PACKET_IMMED_ASS_REJ_MSG from d2_pcu_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate ); -- set termout on prompt prompt Updating coding data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( trf_214a ,trf_215a ,DL_RLC_BLOCKS_IN_ACK_MODE ,UL_RLC_BLOCKS_IN_ACK_MODE ,RETRANS_RLC_DATA_BLOCKS_UL ,BAD_RLC_VALID_HDR_UL_UNACK ,UL_RLC_BLOCKS_IN_UNACK_MODE ,RETRANS_RLC_DATA_BLOCKS_DL ,DL_RLC_BLOCKS_IN_UNACK_MODE ,CS_period_duration ,UL_RLC_BLOCK_MCS_1 ,UL_RLC_BLOCK_MCS_2 ,UL_RLC_BLOCK_MCS_3 ,UL_RLC_BLOCK_MCS_4 ,UL_RLC_BLOCK_MCS_5 ,UL_RLC_BLOCK_MCS_6 ,UL_RLC_BLOCK_MCS_7 ,UL_RLC_BLOCK_MCS_8 ,UL_RLC_BLOCK_MCS_9 ,DL_RLC_BLOCK_MCS_1 ,DL_RLC_BLOCK_MCS_2 ,DL_RLC_BLOCK_MCS_3 ,DL_RLC_BLOCK_MCS_4 ,DL_RLC_BLOCK_MCS_5 ,DL_RLC_BLOCK_MCS_6 ,DL_RLC_BLOCK_MCS_7 ,DL_RLC_BLOCK_MCS_8 ,DL_RLC_BLOCK_MCS_9 ,DL_RLC_BLOCK_CS_3 ,DL_RLC_BLOCK_CS_4 ,UL_RLC_BLOCK_CS_3 ,UL_RLC_BLOCK_CS_4 ,XX_UL_1 ,XX_UL_2 ,XX_UL_3 ,XX_UL_4 ,XX_UL_5 ,XX_UL_6

,XX_UL_7 ,XX_UL_8 ,XX_UL_9 ,XX_DL_1 ,XX_DL_2 ,XX_DL_3 ,XX_DL_4 ,XX_DL_5 ,XX_DL_6 ,XX_DL_7 ,XX_DL_8 ,XX_DL_9 )= (select ((UL_RLC_BLOCK_MCS_1*22 + UL_RLC_BLOCK_MCS_2*28+UL_RLC_BLOCK_MCS_3*37+UL _RLC_BLOCK_MCS_4*44+UL_RLC_BLOCK_MCS_5*56+UL_RLC_BLOCK_MCS_6*74+UL_RLC_BLOCK_MCS _7*112+UL_RLC_BLOCK_MCS_8*136+UL_RLC_BLOCK_MCS_9*148)/1024) ,((DL_RLC_BLOCK_MCS_1*22 + DL_RLC_BLOCK_MCS_2*28+DL_RLC_BLOCK_MCS_3*37+D L_RLC_BLOCK_MCS_4*44+DL_RLC_BLOCK_MCS_5*56+DL_RLC_BLOCK_MCS_6*74+DL_RLC_BLOCK_MC S_7*112+DL_RLC_BLOCK_MCS_8*136+DL_RLC_BLOCK_MCS_9*148)/1024) ,DL_RLC_BLOCKS_IN_ACK_MODE ,UL_RLC_BLOCKS_IN_ACK_MODE ,RETRANS_RLC_DATA_BLOCKS_UL ,BAD_RLC_VALID_HDR_UL_UNACK ,UL_RLC_BLOCKS_IN_UNACK_MODE ,RETRANS_RLC_DATA_BLOCKS_DL ,DL_RLC_BLOCKS_IN_UNACK_MODE ,CS_period_duration ,UL_RLC_BLOCK_MCS_1 ,UL_RLC_BLOCK_MCS_2 ,UL_RLC_BLOCK_MCS_3 ,UL_RLC_BLOCK_MCS_4 ,UL_RLC_BLOCK_MCS_5 ,UL_RLC_BLOCK_MCS_6 ,UL_RLC_BLOCK_MCS_7 ,UL_RLC_BLOCK_MCS_8 ,UL_RLC_BLOCK_MCS_9 ,DL_RLC_BLOCK_MCS_1 ,DL_RLC_BLOCK_MCS_2 ,DL_RLC_BLOCK_MCS_3 ,DL_RLC_BLOCK_MCS_4 ,DL_RLC_BLOCK_MCS_5 ,DL_RLC_BLOCK_MCS_6 ,DL_RLC_BLOCK_MCS_7 ,DL_RLC_BLOCK_MCS_8 ,DL_RLC_BLOCK_MCS_9 ,DL_RLC_BLOCK_CS_3 ,DL_RLC_BLOCK_CS_4 ,UL_RLC_BLOCK_CS_3 ,UL_RLC_BLOCK_CS_4 ,XX_UL_1 ,XX_UL_2 ,XX_UL_3 ,XX_UL_4 ,XX_UL_5 ,XX_UL_6 ,XX_UL_7 ,XX_UL_8 ,XX_UL_9 ,XX_DL_1

,XX_DL_2 ,XX_DL_3 ,XX_DL_4 ,XX_DL_5 ,XX_DL_6 ,XX_DL_7 ,XX_DL_8 ,XX_DL_9 from d2_cods_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate ); set termout on prompt prompt Updating access data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( ch_req_msg_rec ,rej_seiz_att_due_dist ,bcsu_overload_lower_limit ,bcsu_overload_upper_limit ,bcsu_overload_deleted_rach ,rach_6 ,rach_7 ,succ_sdcch_sms_est ,unsucc_sdcch_sms_est ,sdcch_loc_upd ,succ_seiz_term ,succ_seiz_orig ,paging_msg_sent ,cs_paging_msg_sent ,ps_paging_msg_sent ,delete_paging_command )= (select ch_req_msg_rec ,rej_seiz_att_due_dist ,bcsu_overload_lower_limit ,bcsu_overload_upper_limit ,bcsu_overload_deleted_rach ,rach_6 ,decode(ch_req_msg_rec,0,0,100-(((rach_6+bcsu_overload_lower_lim it+bcsu_overload_upper_limit+bcsu_overload_deleted_rach)/ch_req_msg_rec)*100)) ,succ_sdcch_sms_est ,unsucc_sdcch_sms_est ,sdcch_loc_upd ,succ_seiz_term ,succ_seiz_orig ,paging_msg_sent ,cs_paging_msg_sent ,ps_paging_msg_sent

,delete_paging_command from d2_access_&scr_nr&hyphen&unique t where r.int_id = t.int_id and r.seg_id = t.seg_id and r.repdate = t.repdate ); -- set termout on prompt prompt Updating last formula data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( tch_block )= ( decode((tch_requests_call_attempt-tch_seiz_att_due_sdcch_con),0, 0,((tch_requests_call_attempt-tch_seiz_att_due_sdcch_con)-(succ_tch_seiz_call_at tempt-tch_seiz_due_sdcch_con))/(tch_requests_call_attempt-tch_seiz_att_due_sdcch _con)*100) ); update d2_final_&scr_nr&hyphen&unique r set ( sdcch_block )= ( decode(sdcch_seiz_att,0,0,blck_15/sdcch_seiz_att*100) ); update d2_final_&scr_nr&hyphen&unique r set ( sdcch_drop_rate )= ( decode((sdcch_assign + sdcch_ho_seiz),0,0,(sdcch_radio_fail+sdcc h_rf_old_ho+sdcch_user_act+sdcch_bcsu_reset+sdcch_netw_act+sdcch_bts_fail+sdcch_ lapd_fail+sdcch_a_if_fail_call+sdcch_a_if_fail_old)/(sdcch_assign + sdcch_ho_sei z)*100) ); update d2_final_&scr_nr&hyphen&unique r set ( sdr_1a )= ( decode((sdcch_assign + sdcch_ho_seiz),0,0,(sdcch_radio_fail+sdcc h_rf_old_ho+sdcch_user_act+sdcch_bcsu_reset+sdcch_netw_act+sdcch_abis_fail_call+ sdcch_abis_fail_old+sdcch_bts_fail+sdcch_lapd_fail+sdcch_a_if_fail_call+sdcch_a_ if_fail_old)/(sdcch_assign + sdcch_ho_seiz)*100) ); update d2_final_&scr_nr&hyphen&unique r set (

SMS_SD_Attempt )= ( (succ_sdcch_sms_est+unsucc_sdcch_sms_est) ); update d2_final_&scr_nr&hyphen&unique r set ( TASR )= ( decode(tch_norm_seiz,0,0,100-((tch_norm_seiz-ms_tch_succ_seiz_as sign_cmplt)/tch_norm_seiz*100)) ); update d2_final_&scr_nr&hyphen&unique r set ( CSSR )= ( (((100-tch_block)/100)*((100-sdcch_block)/100)*((100-sdcch_drop_ rate)/100)*TASR) ); update d2_final_&scr_nr&hyphen&unique r set ( HOSR )= ( decode((msc_o_ho_cmd + bsc_o_ho_cmd_assgn + bts_ho_assgn),0,0,(m sc_o_succ_ho+bsc_o_succ_ho+cell_succ_ho)/(msc_o_ho_cmd + bsc_o_ho_cmd_assgn + bt s_ho_assgn)*100) ); update d2_final_&scr_nr&hyphen&unique r set ( hfr_1a )= ( decode((hfr_1a_denum),0,0,(msc_i_succ_ho+msc_o_succ_ho+bsc_i_suc c_ho+bsc_o_succ_ho+cell_succ_ho)/(hfr_1a_denum)*100) ); update d2_final_&scr_nr&hyphen&unique r set ( DCR )= ( decode((tch_new_call_assign+msc_i_sdcch_tch+bsc_i_sdcch_tch+cell _sdcch_tch+tch_seiz_due_sdcch_con+msc_i_tch_tch + bsc_i_tch_tch-(msc_o_tch_tch + bsc_o_tch_tch)),0,0,(drop_after_tch_assign)/(tch_new_call_assign+msc_i_sdcch_tc h+bsc_i_sdcch_tch+cell_sdcch_tch+tch_seiz_due_sdcch_con+msc_i_tch_tch + bsc_i_tc h_tch-(msc_o_tch_tch + bsc_o_tch_tch))*100) ); update d2_final_&scr_nr&hyphen&unique r set ( dcr_31a )= (

decode((tch_norm_seiz+msc_i_sdcch_tch+bsc_i_sdcch_tch+cell_sdcch _tch+tch_succ_seiz_for_dir_acc+tch_seiz_due_sdcch_con),0,0,(tch_radio_fail+tch_r f_old_ho+tch_abis_fail_call+facch_call_setup_fail_paging+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_bt s_fail+tch_user_act+tch_bcsu_reset+tch_netw_act+tch_act_fail_call)/(tch_norm_sei z+msc_i_sdcch_tch+bsc_i_sdcch_tch+cell_sdcch_tch+tch_succ_seiz_for_dir_acc+tch_s eiz_due_sdcch_con)*100) ); update d2_final_&scr_nr&hyphen&unique r set ( DCR_Siemens1 )= ( decode((tch_new_call_assign+msc_i_sdcch_tch+bsc_i_sdcch_tch+cell _sdcch_tch+tch_seiz_due_sdcch_con+msc_i_tch_tch + bsc_i_tch_tch-(bsc_o_tch_tch)) ,0,0,(drop_after_tch_assign)/(tch_new_call_assign+msc_i_sdcch_tch+bsc_i_sdcch_tc h+cell_sdcch_tch+tch_seiz_due_sdcch_con+msc_i_tch_tch + bsc_i_tch_tch-(bsc_o_tch _tch))*100) ); update d2_final_&scr_nr&hyphen&unique r set ( DCR_Siemens2 )= ( decode((tch_full_succ_seiz+tch_half_succ_seiz+msc_i_sdcch_tch+bs c_i_sdcch_tch+cell_sdcch_tch+tch_seiz_due_sdcch_con-bsc_o_tch_tch),0,0 ,(Dropped_Calls)/(tch_full_succ_seiz+tch_half_succ_seiz+msc_i_sd cch_tch+bsc_i_sdcch_tch+cell_sdcch_tch+tch_seiz_due_sdcch_con-bsc_o_tch_tch)*100 ) ); update d2_final_&scr_nr&hyphen&unique r set ( dcr_v2 )= ( decode((tch_full_succ_seiz+tch_half_succ_seiz+msc_i_sdcch_tch+bs c_i_sdcch_tch+cell_sdcch_tch+tch_seiz_due_sdcch_con-(msc_o_tch_tch + bsc_o_tch_t ch)),0,0,(drop_after_tch_assign)/(tch_full_succ_seiz+tch_half_succ_seiz+msc_i_sd cch_tch+bsc_i_sdcch_tch+cell_sdcch_tch+tch_seiz_due_sdcch_con-(msc_o_tch_tch + b sc_o_tch_tch))*100) ); update d2_final_&scr_nr&hyphen&unique r set ( dcr_29 )= ( decode((tch_radio_fail-tch_rel_due_rad_fail_ph_2_3+tch_rf_old_ho +tch_lapd_fail+tch_bts_fail+tch_user_act+tch_bcsu_reset+tch_netw_act+tch_act_fai l_call+tch_abis_fail_old+tch_tr_fail_old+tch_norm_release),0,0,(tch_radio_fail-t ch_rel_due_rad_fail_ph_2_3+tch_rf_old_ho+tch_lapd_fail+tch_bts_fail+tch_user_act +tch_bcsu_reset+tch_netw_act+tch_act_fail_call+tch_abis_fail_old+tch_tr_fail_old )/(tch_radio_fail-tch_rel_due_rad_fail_ph_2_3+tch_rf_old_ho+tch_lapd_fail+tch_bt s_fail+tch_user_act+tch_bcsu_reset+tch_netw_act+tch_act_fail_call+tch_abis_fail_ old+tch_tr_fail_old+tch_norm_release)*100) );

update d2_final_&scr_nr&hyphen&unique r set ( Traffic )= ( trf_24c ); update d2_final_&scr_nr&hyphen&unique r set ( FR_traffic )= ( (ave_tch_busy_full) ); update d2_final_&scr_nr&hyphen&unique r set ( HR_Traffic )= ( (ave_tch_busy_half) ); update d2_final_&scr_nr&hyphen&unique r set ( SDCCH_Traffic )= ( decode(res_av_denom15,0,0,ave_busy_sdcch/res_av_denom15) ); update d2_final_&scr_nr&hyphen&unique r set ( SMS_SD_Fail_Rate )= ( decode((succ_sdcch_sms_est+unsucc_sdcch_sms_est),0,0,unsucc_sdcc h_sms_est/(succ_sdcch_sms_est+unsucc_sdcch_sms_est)*100) ); update d2_final_&scr_nr&hyphen&unique r set ( SDCCH_LU )= ( decode(sdcch_seiz_att,0,0,sdcch_loc_upd/sdcch_seiz_att*100) ); update d2_final_&scr_nr&hyphen&unique r set ( SDCCH_MOC )= ( decode(sdcch_seiz_att,0,0,succ_seiz_orig/sdcch_seiz_att*100) ); update d2_final_&scr_nr&hyphen&unique r set ( SDCCH_MTC

)= ( decode(sdcch_seiz_att,0,0,succ_seiz_term/sdcch_seiz_att*100) );

update d2_final_&scr_nr&hyphen&unique r set ( trf_2d )= ( decode((tch_norm_seiz+msc_i_sdcch_tch+bsc_i_sdcch_tch+cell_sdcch _tch+tch_seiz_due_sdcch_con),0,0,trf_24c*3600/(tch_norm_seiz+msc_i_sdcch_tch+bsc _i_sdcch_tch+cell_sdcch_tch+tch_seiz_due_sdcch_con)) );

update d2_final_&scr_nr&hyphen&unique r set ( trf_13e )= ( decode((tch_norm_seiz+msc_i_sdcch_tch+bsc_i_sdcch_tch+cell_sdcch _tch+tch_seiz_due_sdcch_con),0,0,100* (tch_ho_seiz - (msc_i_sdcch_tch + bsc_i_sdcch_tch) - cell_sdcch_ tch - cell_tch_tch)/(tch_norm_seiz+msc_i_sdcch_tch+bsc_i_sdcch_tch+cell_sdcch_tc h+tch_seiz_due_sdcch_con)) );

update d2_final_&scr_nr&hyphen&unique r set ( llc_3a )= ( decode(avg_vol_wght_llc_troughput_den,0,0,avg_vol_wght_llc_troug hput_num*8/(avg_vol_wght_llc_troughput_den*10)) ); update d2_final_&scr_nr&hyphen&unique r set ( trf_212c )= ( ((rlc_data_blocks_ul_cs1*20+rlc_data_blocks_ul_cs2*30+(nvl(UL_RL C_BLOCK_CS_3,0)*36+nvl(UL_RLC_BLOCK_CS_4,0)*50))/1024) ); update d2_final_&scr_nr&hyphen&unique r set ( trf_213c )= ( ((rlc_data_blocks_dl_cs1*20+rlc_data_blocks_dl_cs2*30+(nvl(DL_RL C_BLOCK_CS_3,0)*36+nvl(DL_RLC_BLOCK_CS_4,0)*50))/1024) );

update d2_final_&scr_nr&hyphen&unique r set ( trf_212c )= ( ((rlc_data_blocks_ul_cs1*20+rlc_data_blocks_ul_cs2*30+(nvl(UL_RL C_BLOCK_CS_3,0)*36+nvl(UL_RLC_BLOCK_CS_4,0)*50))/1024) ); -- set termout on prompt prompt Updating trf_78c into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( trf_78c )= ( decode(pcu_period_duration,0,0,(rlc_data_blocks_ul_cs1 + rlc_dat a_blocks_ul_cs2 + rlc_mac_cntrl_blocks_ul + bad_frame_ind_ul_cs1 + bad_frame_ind _ul_cs2 + bad_frame_ind_ul_unack + ignor_rlc_data_bl_ul_due_bsn+nvl(XX_UL_1,0)+n vl(XX_UL_2,0)+nvl(XX_UL_3,0)+nvl(XX_UL_4,0)+nvl(XX_UL_5,0)+nvl(XX_UL_6,0)+nvl(XX _UL_7,0)+nvl(XX_UL_8,0)+nvl(XX_UL_9,0))/(pcu_period_duration*60*50)) ); prompt prompt Updating trf_79c into new table. Please Wait...! update d2_final_&scr_nr&hyphen&unique r set ( trf_79c )= ( decode(pcu_period_duration,0,0,(rlc_data_blocks_dl_cs1 + rlc_dat a_blocks_dl_cs2 + rlc_mac_cntrl_blocks_dl + retra_rlc_data_blocks_dl_cs1 + retra _rlc_data_blocks_dl_cs2+nvl(XX_DL_1,0)+nvl(XX_DL_2,0)+nvl(XX_DL_3,0)+nvl(XX_DL_4 ,0)+nvl(XX_DL_5,0)+nvl(XX_DL_6,0)+nvl(XX_DL_7,0)+nvl(XX_DL_8,0)+nvl(XX_DL_9,0))/ (pcu_period_duration*60*50)) ); -- set termout on prompt prompt Updating data into new table. Please Wait...! -- set termout off update d2_final_&scr_nr&hyphen&unique r set ( trf_213c )= ( ((rlc_data_blocks_dl_cs1*20+rlc_data_blocks_dl_cs2*30+(nvl(DL_RL C_BLOCK_CS_3,0)*36+nvl(DL_RLC_BLOCK_CS_4,0)*50))/1024) ); update d2_final_&scr_nr&hyphen&unique r set (

tbf_77 )= ( decode((dl_tbf_establ_started + ul_tbf_establ_started),0,0,100*( nbr_of_dl_tbf + nbr_of_ul_tbf - dl_tbf_establishment_failed - dl_egprs_tbf_rel_d ue_no_resp - ul_tbf_establishment_failed - ul_egprs_tbf_rel_due_no_resp)/(dl_tbf _establ_started + ul_tbf_establ_started)) ); update d2_final_&scr_nr&hyphen&unique r set ( tbf_34a )= ( decode((nbr_of_dl_tbf + nbr_of_ul_tbf - dl_tbf_establishment_fai led - dl_egprs_tbf_rel_due_no_resp - ul_tbf_establishment_failed - ul_egprs_tbf_ rel_due_no_resp - UL_TBF_REL_DUE_TO_FLUSH - DL_TBF_REL_DUE_TO_FLUSH - UL_TBF_REL _DUE_TO_SUSPEND - DL_TBF_REL_DUE_TO_SUSPEND),0,0,100-100*(nbr_of_dl_tbf + nbr_of _ul_tbf - dl_tbf_establishment_failed - dl_egprs_tbf_rel_due_no_resp - ul_tbf_es tablishment_failed - ul_egprs_tbf_rel_due_no_resp - UL_TBF_REL_DUE_TO_FLUSH - DL _TBF_REL_DUE_TO_FLUSH - UL_TBF_REL_DUE_TO_SUSPEND - DL_TBF_REL_DUE_TO_SUSPEND AVE_DUR_UL_TBF_DEN - AVE_DUR_DL_TBF_DEN)/(nbr_of_dl_tbf + nbr_of_ul_tbf - dl_tbf _establishment_failed - dl_egprs_tbf_rel_due_no_resp - ul_tbf_establishment_fail ed - ul_egprs_tbf_rel_due_no_resp - UL_TBF_REL_DUE_TO_FLUSH - DL_TBF_REL_DUE_TO_ FLUSH - UL_TBF_REL_DUE_TO_SUSPEND - DL_TBF_REL_DUE_TO_SUSPEND)) ); update d2_final_&scr_nr&hyphen&unique r set ( tbf_34a )= ( decode(greatest(100-tbf_34a,0),0,100,tbf_34a) ); update d2_final_&scr_nr&hyphen&unique r set ( hfr_32a )= ( decode(bts_ho_assgn,0,0,cell_succ_ho/bts_ho_assgn*100) ); update d2_final_&scr_nr&hyphen&unique r set ( blck_22a )= ( decode((gprs_ter_ug_rej_due_csw_tr + gprs_ter_ug_rej_due_lack_ps w + gprs_ter_ug_rej_due_lack_pcu),0,0,100*(gprs_ter_ug_rej_due_csw_tr + gprs_ter _ug_rej_due_lack_psw + gprs_ter_ug_rej_due_lack_pcu)/(gprs_ter_upgrd_req)) ); -- set termout on prompt prompt Printing Result . Please Wait...! set termout off

set set set set set set set set set set set

colsep , headsep off underline off echo off heading on feedback off pages 0 emb on newp none linesize 6000 trimspool on trimout on verify off termout off

spool &1 column cellid column repdate ' column tanggal column bscname ' column busyhour column drop_after_tch_assign ment_drops' column tch_new_call_assign ll_assign' column msc_i_sdcch_tch h_tch' column bsc_i_sdcch_tch h_tch' column cell_sdcch_tch _tch' column msc_i_tch_tch tch' column bsc_i_tch_tch tch' column msc_o_tch_tch tch' column bsc_o_tch_tch tch' column tch_seiz_due_sdcch_con ue_sdcch_con' column tch_succ_seiz_for_dir_acc eiz_for_dir_acc' column tch_radio_fail fail' column tch_abis_fail_call ail_call' column tch_a_if_fail_call ail_call' column tch_tr_fail l' column tch_user_act ct' column tch_bcsu_reset eset' column tch_netw_act ct' column tch_act_fail_call il_call' column tch_lapd_fail format 999999 format a20 format a13 format A20 heading 'CELL ID' heading 'DateHour heading 'Tanggal' heading 'BSC Name

format a5 heading 'Hour' format 99999999999PR heading 'tch_assign format 99999999999PR heading 'tch_new_ca format 99999999999PR heading 'msc_i_sdcc format 99999999999PR heading 'bsc_i_sdcc format 99999999999PR heading 'cell_sdcch format 99999999999PR heading 'msc_i_tch_ format 99999999999PR heading 'bsc_i_tch_ format 99999999999PR heading 'msc_o_tch_ format 99999999999PR heading 'bsc_o_tch_ format 99999999999PR heading 'tch_seiz_d format 99999999999PR heading 'tch_succ_s format 99999999999PR heading 'tch_radio_ format 99999999999PR heading 'tch_abis_f format 99999999999PR heading 'tch_a_if_f format 99999999999PR heading 'tch_tr_fai format 99999999999PR heading 'tch_user_a format 99999999999PR heading 'tch_bcsu_r format 99999999999PR heading 'tch_netw_a format 99999999999PR heading 'tch_act_fa format 99999999999PR heading 'tch_lapd_f

ail' column tch_bts_fail il' column tch_rf_old_ho _ho' column tch_abis_fail_old ail_old' column tch_a_if_fail_old ail_old' column tch_tr_fail_old l_old' column tch_norm_seiz eiz' column trf_54 ures' column sdcch_radio_fail o_fail' column sdcch_a_if_fail_call _fail_call' column sdcch_abis_fail_call _fail_call' column sdcch_user_act _act' column sdcch_bcsu_reset _reset' column sdcch_netw_act _act' column sdcch_bts_fail fail' column sdcch_lapd_fail _fail' column sdcch_rf_old_ho ld_ho' column sdcch_abis_fail_old _fail_old' column sdcch_a_if_fail_old _fail_old' column sdcch_ho_seiz eiz' column sdcch_assign gn' column ava_1d_num tch' column ava_1d_den column column ests' column lls' column blck_15 sdcch_seiz_att blocked_calls new_calls

format 99999999999PR heading 'tch_bts_fa format 99999999999PR heading 'tch_rf_old format 99999999999PR heading 'tch_abis_f format 99999999999PR heading 'tch_a_if_f format 99999999999PR heading 'tch_tr_fai format 99999999999PR heading 'tch_norm_s format 99999999999PR heading 'sdcch_seiz format 99999999999PR heading 'sdcch_radi format 99999999999PR heading 'sdcch_a_if format 99999999999PR heading 'sdcch_abis format 99999999999PR heading 'sdcch_user format 99999999999PR heading 'sdcch_bcsu format 99999999999PR heading 'sdcch_netw format 99999999999PR heading 'sdcch_bts_ format 99999999999PR heading 'sdcch_lapd format 99999999999PR heading 'sdcch_rf_o format 99999999999PR heading 'sdcch_abis format 99999999999PR heading 'sdcch_a_if format 99999999999PR heading 'sdcch_ho_s format 99999999999PR heading 'sdcch_assi format 99999999999PR heading 'available_ format 99999999999PR heading 'all_tch' format 99999999999PR heading 'blocked' format 99999999999PR heading 'sdcch_requ format 99999999999PR heading 'blocked_ca format 99999999999PR heading 'new_calls' format 9999999990.90 heading 'tch_time' format 99999999999PR heading 'msc_succes format 99999999999PR heading 'bsc_succes format 99999999999PR heading 'intra_cell

column trf_24c column msc_o_succ_ho ses' column bsc_o_succ_ho ses' column ho_27 _successes'

column ho_9 format 99999999999PR heading 'outgoing_m sc' column ho_11 format 99999999999PR heading 'outgoing_b sc' column ho_24 format 99999999999PR heading 'intra_cell _ho_attempts' column msc_o_fail_lack format 99999999999PR heading 'msc_blocke d' column bsc_o_fail_lack format 99999999999PR heading 'bsc_blocke d' column cell_fail_lack format 99999999999PR heading 'intra_cell _blocked' column trf_18a format 99999999999PR heading 'trf_18a' column blck_9c format 99999999999PR heading 'blck_9c' column packet_ch_req format 99999999999PR heading 'packet_ch_ req' column ch_req_msg_rec format 99999999999PR heading 'ch_req_msg _rec' column rej_seiz_att_due_dist format 99999999999PR heading 'rej_seiz_a tt_due_dist' column rach_6 format 99999999999PR heading 'rach_illeg al_estcause' column bcsu_overload_lower_limit format 99999999999PR heading 'bcsu_overl oad_lower_limit' column bcsu_overload_upper_limit format 99999999999PR heading 'bcsu_overl oad_upper_limit' column bcsu_overload_deleted_rach format 99999999999PR heading 'bcsu_overl oad_deleted_rach' column trf_117 format 999990.90 heading 'Traffic_AMR_Full_erl' column trf_118 format 9 99990.90 heading 'Traffic_AMR_Half_erl' column rach_7 format 999990.90 heading 'RACH Success Rate' column Mean_Holding_Time format 999990.90 heading 'Mean_Holding_Time (s)' column trf_28 format 99999999999PR heading 'Peak_Busy_SDCCH_Seizures_trf_28' column trf_4a format 999990.90 heading 'SDCCH_hold_time_trf_4a_(s)' column trf_12b format 999990.90 heading 'trf_12b (erlang)' column NBR_OF_DL_TBF format 9999999999990 heading 'NBR_OF_DL_TBF' column NBR_OF_UL_TBF format 9999999999990 heading 'NBR_OF_UL_TBF' column DL_TBF_ESTABLISHMENT_FAILED format 9999999999990 heading 'DL_TBF_ESTABLIS HMENT_FAILED' column UL_TBF_ESTABLISHMENT_FAILED format 9999999999990 heading 'UL_TBF_ESTABLIS HMENT_FAILED' column DL_EGPRS_TBF_REL_DUE_NO_RESP format 9999999999990 heading 'DL_EGPRS_TBF_R EL_DUE_NO_RESP' column UL_EGPRS_TBF_REL_DUE_NO_RESP format 9999999999990 heading 'UL_EGPRS_TBF_R EL_DUE_NO_RESP' column AVE_DUR_DL_TBF_DEN format 9999999999990 heading 'AVE_DUR_DL_TBF' column AVE_DUR_UL_TBF_DEN format 9999999999990 heading 'AVE_DUR_UL_TBF' column DL_TBF_REL_DUE_TO_FLUSH format 9999999999990 heading 'DL_TBF_REL_DUE_TO_F LUSH' column UL_TBF_REL_DUE_TO_FLUSH format 9999999999990 heading 'UL_TBF_REL_DUE_TO_F LUSH' column DL_TBF_REL_DUE_TO_SUSPEND format 9999999999990 heading 'DL_TBF_REL_DUE_TO _SUSPEND'

column UL_TBF_REL_DUE_TO_SUSPEND format 9999999999990 heading 'UL_TBF_REL_DUE_TO _SUSPEND' column DL_TBF_RELEASES_DUE_DTM format 9999999999990 heading 'DL_TBF_RELEASES_DUE _DTM' column UL_TBF_RELEASES_DUE_DTM format 999990.90 heading 'UL_TBF_RELEASES_DUE_DTM' column paging_msg_sent format 9999999999990 heading 'paging_msg _sent' column cs_paging_msg_sent format 9999999999990 heading 'cs_paging_ msg_sent' column ps_paging_msg_sent format 9999999999990 heading 'ps_paging_ msg_sent' column delete_paging_command format 999990.90 heading 'delete_paging_command' column sdcch_lu_attempt format 99999999999PR heading 'sdcch_lu_attempt' column sdcch_lu_attempt_fail format 999990.90 heading 'sdcch_lu_attempt_fail' select a.repdate Repdate ,a.cell_id cell_id ,a.seg_name segment_name ,a.seg_id seg_id ,la_bsc.la_name bscname ,a.BH busy_hour ,sum(nvl(a.CSSR,0)) CSSR ,sum(nvl(a.DCR,0)) DCR ,sum(nvl(a.dcr_31a,0)) dcr_31a ,sum(nvl(a.DCR_Siemens2,0)) DCR_Siemens2 ,sum(nvl(a.HOSR,0)) HOSR ,sum(nvl(a.hfr_1a,0)) hfr_1a ,sum(nvl(a.tch_block,0)) tch_block ,sum(nvl(a.sdcch_block,0)) sdcch_block ,sum(nvl(a.sdcch_drop_rate,0)) sdcch_drop_rate ,sum(nvl(a.sdr_1a,0)) sdr_1a ,sum(nvl(a.TASR,0)) TASR ,sum(nvl(a.BH_Traffic, 0)) BH_Traffic ,sum(nvl(a.BH_HR_Traffic,0)) BH_HR_Traffic ,sum(nvl(a.BH_FR_Traffic,0)) BH_FR_Traffic ,sum(nvl(a.BH_TCH_Block,0)) BH_TCH_Block

,sum(nvl(a.trf_12b,0)) trf_12b ,sum(nvl(a.Traffic,0)) Traffic ,sum(nvl(a.FR_traffic,0)) FR_traffic ,sum(nvl(a.HR_Traffic,0)) HR_Traffic ,sum(nvl(a.trf_117,0)) trf_117 ,sum(nvl(a.trf_118,0)) trf_118 ,sum(nvl(a.SDCCH_Traffic,0)) SDCCH_Traffic ,sum(nvl(a.BH_SDCCH_Traffic,0)) BH_SDCCH_Traffic ,sum(nvl(a.trf_2d,0)) Mean_Holding_Time ,sum(nvl(a.trf_28,0)) trf_28 ,sum(nvl(a.trf_4a,0)) trf_4a ,sum(nvl(a.SMS_SD_Attempt,0)) SMS_SD_Attempt ,sum(nvl(a.SMS_SD_Fail_Rate,0)) SMS_SD_Fail_Rate ,sum(nvl(a.SDCCH_LU,0)) SDCCH_LU ,sum(nvl(a.SDCCH_MOC,0)) SDCCH_MOC ,sum(nvl(a.SDCCH_MTC,0)) SDCCH_MTC ,sum(nvl(a.ava_1d,0)) TCH_Availability ,sum(nvl(a.Available_FR,0)) Available_FR ,sum(nvl(a.Available_HR,0)) Available_HR ,sum(nvl(a.Available_DR,0)) Available_DR ,sum(nvl(a.Available_GPRS,0)) Available_GPRS ,sum(nvl(a.ave_permanent_GPRS_ch,0)) ave_permanent_GPRS_ch ,sum(nvl(a.trf_212c,0)) GPRS_UL_payload_data_kB ,sum(nvl(a.trf_213c,0)) GPRS_DL_payload_data_kB ,sum(nvl(a.trf_214a,0)) EGPRS_UL_payload_data_kB ,sum(nvl(a.trf_215a,0)) EGPRS_DL_payload_data_kB ,sum(nvl(a.trf_78c,0)) trf_78c_erlang ,sum(nvl(a.trf_79c,0)) trf_79c_erlang ,sum(nvl(a.llc_3a,0)) llc_3a ,sum(nvl(a.llc_4a,0)) llc_4a

,sum(nvl(a.tbf_15,0)) UL_mlslot_allocation_blocking ,sum(nvl(a.tbf_16,0)) DL_mlslot_allocation_blocking ,sum(nvl(a.tbf_15_denom,0)) UL_mlslot_allocation ,sum(nvl(a.tbf_16_denom,0)) DL_mlslot_allocation ,sum(nvl(a.NO_RADIO_RES_AVA_UL_TBF,0)) NO_RADIO_RES_AVA_UL_TBF ,sum(nvl(a.NO_RADIO_RES_AVA_DL_TBF,0)) NO_RADIO_RES_AVA_DL_TBF ,sum(nvl(a.gprs_ter_ug_rej_due_lack_pcu,0)) gprs_ter_ug_rej_due_lack_pcu ,sum(nvl(a.blck_22a,0)) territory_upgrade_rejection ,sum(nvl(a.tbf_77,0)) TBF_Establisment_Success_Rate ,sum(nvl(a.tbf_34a,0)) TBF_Success_Ratio ,sum(nvl(a.ho_12,0)) intra_cell_HO_Attempt ,sum(nvl(a.ho_9,0)) + sum(nvl(a.ho_11,0)) inter_cell_HO_Attempt ,sum(nvl(a.hfr_32a,0)) intra_cell_HOSR ,decode(sum(nvl(a.ho_24,0)),0,0,100*sum(nvl(a.ho_27,0))/sum(nvl(a.ho_24,0 ))) intra_cell_HO_SuccessRate ,sum(nvl(a.HO_interBand_load,0)) HO_interBand_load ,sum(nvl(a.HO_interBand_Level,0)) HO_interBand_Level ,sum(nvl(a.HO_ATT_INTER_BAND_TCH,0)) HO_ATT_INTER_BAND_TCH ,sum(nvl(a.SUCCESSFUL_HO_INTER_BAND_TCH,0)) SUCCESSFUL_HO_INTER_BAND_TCH ,sum(nvl(a.HO_ATTEMPT_INTERBAND_DUE_LEVEL,0)) HO_ATTEMPT_INTERBAND_DUE_LEVEL ,sum(nvl(a.SUCC_HO_INTER_BAND_DUE_LEVEL,0)) SUCC_HO_INTER_BAND_DUE_LEVEL ,sum(nvl(a.trf_13e,0)) HO_to_Call_Ratio ,sum(nvl(a.drop_after_tch_assign,0)) drop_aft er_tch_assign ,sum(nvl(a.tch_new_call_assign,0)) tch_new_ call_assign ,sum(nvl(a.dropped_calls,0)) dropped_calls ,sum(nvl(a.conver_started,0)) conver_started ,sum(nvl(a.tch_norm_release,0)) tch_norm_release ,sum(nvl(a.msc_i_sdcch_tch,0)) msc_i_sd cch_tch ,sum(nvl(a.bsc_i_sdcch_tch,0)) bsc_i_sd cch_tch ,sum(nvl(a.cell_sdcch_tch,0)) cell_sdc ch_tch ,sum(nvl(a.tch_seiz_due_sdcch_con,0)) tch_seiz _due_sdcch_con

,sum(nvl(a.msc_i_tch_tch,0)) h_tch ,sum(nvl(a.bsc_i_tch_tch,0)) h_tch ,sum(nvl(a.msc_o_tch_tch,0)) h_tch ,sum(nvl(a.bsc_o_tch_tch,0)) h_tch ,sum(nvl(a.tch_succ_seiz_for_dir_acc,0)) _seiz_for_dir_acc ,sum(nvl(a.tch_radio_fail,0)) o_fail ,sum(nvl(a.tch_abis_fail_call,0)) _fail_call ,sum(nvl(a.tch_a_if_fail_call,0)) _fail_call ,sum(nvl(a.tch_tr_fail,0)) ail ,sum(nvl(a.tch_user_act,0)) _act ,sum(nvl(a.tch_bcsu_reset,0)) _reset ,sum(nvl(a.tch_netw_act,0)) _act ,sum(nvl(a.tch_act_fail_call,0)) fail_call ,sum(nvl(a.tch_lapd_fail,0)) _fail ,sum(nvl(a.tch_bts_fail,0)) fail ,sum(nvl(a.tch_rf_old_ho,0)) ld_ho ,sum(nvl(a.tch_abis_fail_old,0)) _fail_old ,sum(nvl(a.tch_a_if_fail_old,0)) _fail_old ,sum(nvl(a.tch_tr_fail_old,0)) ail_old ,sum(nvl(a.tch_norm_seiz,0)) _seiz ,sum(nvl(a.trf_54,0)) ,sum(nvl(a.sdcch_radio_fail,0)) dio_fail ,sum(nvl(a.sdcch_a_if_fail_call,0)) if_fail_call ,sum(nvl(a.sdcch_abis_fail_call,0)) is_fail_call ,sum(nvl(a.sdcch_user_act,0)) er_act ,sum(nvl(a.sdcch_bcsu_reset,0)) su_reset ,sum(nvl(a.sdcch_netw_act,0)) tw_act ,sum(nvl(a.sdcch_bts_fail,0)) s_fail ,sum(nvl(a.sdcch_lapd_fail,0)) pd_fail ,sum(nvl(a.sdcch_rf_old_ho,0)) _old_ho

msc_i_tc bsc_i_tc msc_o_tc bsc_o_tc tch_succ tch_radi tch_abis tch_a_if tch_tr_f tch_user tch_bcsu tch_netw tch_act_ tch_lapd tch_bts_ tch_rf_o tch_abis tch_a_if tch_tr_f tch_norm trf_54 sdcch_ra sdcch_a_ sdcch_ab sdcch_us sdcch_bc sdcch_ne sdcch_bt sdcch_la sdcch_rf

,sum(nvl(a.sdcch_abis_fail_old,0)) sdcch_ab is_fail_old ,sum(nvl(a.sdcch_a_if_fail_old,0)) sdcch_a_ if_fail_old ,sum(nvl(a.sdcch_ho_seiz,0)) sdcch_ho _seiz ,sum(nvl(a.sdcch_assign,0)) sdcch_as sign ,sum(nvl(a.ava_1d_num,0)) ava_1d_n um ,sum(nvl(a.ava_1d_den,0)) ava_1d_d en ,sum(nvl(a.blck_15,0)) blck_15 ,sum(nvl(a.sdcch_seiz_att,0)) sdcch_se iz_att ,sum(nvl(((a.tch_requests_call_attempt-a.tch_seiz_att_due_sdcch_con)-(a.s ucc_tch_seiz_call_attempt-a.tch_seiz_due_sdcch_con)),0)) blocked_ calls ,sum(nvl(a.tch_requests_call_attempt,0)) + sum(nvl(a.tch_seiz_att_due_sdc ch_con,0)) new_calls ,sum(nvl(a.msc_o_succ_ho,0)) msc_o_su cc_ho ,sum(nvl(a.bsc_o_succ_ho,0)) bsc_o_su cc_ho ,sum(nvl(a.ho_27,0)) ho_27 ,sum(nvl(a.ho_9,0)) ,sum(nvl(a.ho_11,0)) ,sum(nvl(a.ho_24,0)) ,sum(nvl(a.msc_o_fail_lack,0)) il_lack ,sum(nvl(a.bsc_o_fail_lack,0)) il_lack ,sum(nvl(a.cell_fail_lack,0)) l_lack ,sum(nvl(a.packet_ch_req,0)) h_req ,sum(nvl(a.ch_req_msg_rec,0)) sg_rec ,sum(nvl(a.rej_seiz_att_due_dist,0)) _att_due_dist ,sum(nvl(a.rach_6,0)) ,sum(nvl(a.bcsu_overload_lower_limit,0)) rload_lower_limit ,sum(nvl(a.bcsu_overload_upper_limit,0)) rload_upper_limit ,sum(nvl(a.bcsu_overload_deleted_rach,0)) rload_deleted_rach ,sum(nvl(a.clear_request_by_bsc_on_tch,0)) clear_request_by_bsc_on_tch ,sum(nvl(a.ms_tch_succ_seiz_assign_cmplt,0)) ms_tch_succ_seiz_assign_cmplt ,sum(nvl(a.cell_tch_tch,0)) cell_tch_tch ,sum(nvl(a.t3101_expired,0)) t3101_expired rej_seiz rach_6 bcsu_ove bcsu_ove bcsu_ove ch_req_m packet_c cell_fai bsc_o_fa ho_9 ho_11 ho_24 msc_o_fa

,sum(nvl(a.cell_succ_ho,0)) cell_succ_ho ,sum(nvl(a.msc_o_ho_cmd,0)) msc_o_ho_cmd ,sum(nvl(a.bsc_o_ho_cmd_assgn,0)) bsc_o_ho_cmd_assgn ,sum(nvl(a.bts_ho_assgn,0)) bts_ho_assgn ,sum(nvl(a.tch_requests_call_attempt,0)) tch_requests_call_attempt ,sum(nvl(a.succ_tch_seiz_call_attempt,0)) succ_tch_seiz_call_attempt ,sum(nvl(a.tch_call_req,0)) tch_call_req ,sum(nvl(a.tch_rej_due_req_ch_a_if_crc,0)) tch_rej_due_req_ch_a_if_crc ,sum(nvl(a.succ_sdcch_sms_est,0)) succ_sdcch_sms_est ,sum(nvl(a.unsucc_sdcch_sms_est,0)) unsucc_sdcch_sms_est ,sum(nvl(a.sdcch_loc_upd,0)) sdcch_loc_upd ,sum(nvl(a.succ_seiz_term,0)) succ_seiz_term ,sum(nvl(a.succ_seiz_orig,0)) succ_seiz_orig ,sum(nvl(a.res_avail_period_duration,0)) res_avail_period_duration ,sum(nvl(a.tch_full_succ_seiz,0)) tch_full_succ_seiz ,sum(nvl(a.tch_half_succ_seiz,0)) tch_half_succ_seiz ,sum(nvl(a.tch_rel_due_rad_fail_ph_2_3,0)) tch_rel_due_rad_fail_ph_2_3 ,sum(nvl(a.dcr_v2,0)) dcr_v2 ,sum(nvl(a.dcr_29,0)) dcr_29 ,sum(nvl(a.rach_7,0)) rach_7 ,sum(nvl(a.NBR_OF_UL_TBF,0)) NBR_OF_UL_TBF ,sum(nvl(a.NBR_OF_DL_TBF,0)) NBR_OF_DL_TBF ,sum(nvl(a.UL_TBF_Establishment_Failed,0)) stablishment_Failed ,sum(nvl(a.DL_TBF_Establishment_Failed,0)) stablishment_Failed ,sum(nvl(a.UL_EGPRS_TBF_REL_DUE_NO_RESP,0)) _TBF_REL_DUE_NO_RESP ,sum(nvl(a.DL_EGPRS_TBF_REL_DUE_NO_RESP,0)) _TBF_REL_DUE_NO_RESP ,sum(nvl(a.UL_TBF_REL_DUE_TO_SUSPEND,0)) DUE_TO_SUSPEND ,sum(nvl(a.DL_TBF_REL_DUE_TO_SUSPEND,0)) DUE_TO_SUSPEND ,sum(nvl(AVE_DUR_UL_TBF_DEN,0)) UL_TBF_DEN ,sum(nvl(AVE_DUR_DL_TBF_DEN,0)) AVE_DUR_DL_TBF_DEN ,sum(nvl(a.UL_TBF_REL_DUE_TO_FLUSH,0))

UL_TBF_E DL_TBF_E UL_EGPRS DL_EGPRS UL_TBF_REL_ DL_TBF_REL_ AVE_DUR_

UL_TBF_REL_DUE_TO_FLUSH ,sum(nvl(a.DL_TBF_REL_DUE_TO_FLUSH,0)) DL_TBF_REL_DUE_TO_FLUSH ,sum(nvl(a.DL_TBF_RELEASES_DUE_DTM,0)) DL_TBF_RELEASES_DUE_DTM ,sum(nvl(a.UL_TBF_RELEASES_DUE_DTM,0)) UL_TBF_RELEASES_DUE_DTM ,sum(nvl(a.VWTHR_NUMERATOR_GPRS,0)) VWTHR_NUMERATOR_GPRS ,sum(nvl(a.VWTHR_DENOMINATOR_GPRS,0)) VWTHR_DENOMINATOR_GPRS ,sum(nvl(a.PACKET_IMMED_ASS_REJ_MSG,0)) PACKET_IMMED_ASS_REJ_MSG ,sum(nvl(a.paging_msg_sent,0)) paging_msg_sent ,sum(nvl(a.cs_paging_msg_sent,0)) cs_paging_msg_sent ,sum(nvl(a.ps_paging_msg_sent,0)) ps_paging_msg_sent ,sum(nvl(a.delete_paging_command,0)) delete_paging_command ,sum(nvl(a.sdcch_lu_attempt,0)) sdcch_lu_attempt ,sum(nvl(a.sdcch_lu_attempt_fail,0)) sdcch_lu_attempt_fail ,sum(nvl(a.ulq05,0)) ulq05 ,sum(nvl(a.dlq05,0)) dlq05 ,sum(nvl(a.ulq07,0)) ulq07 ,sum(nvl(a.dlq07,0)) dlq07 ,sum(nvl(a.dlstr,0)) dlstr ,sum(nvl(a.ulstr,0)) ulstr ,sum(nvl(a.mspwr,0)) mspwr ,sum(nvl(a.dist,0)) dist from d2_final_&scr_nr&hyphen&unique a ,utp_legacy la_bsc where a.int_id = la_bsc.la_int_id and la_bsc.la_object_instance != '0' Group by a.repdate ,a.cell_id ,a.seg_name ,a.seg_id ,la_bsc.la_name ,a.BH Order by a.repdate ,a.cell_id ; /************************************************/ spool off drop index d2_idxmaxtch_&scr_nr&hyphen&unique; drop index d2_idxtch_&scr_nr&hyphen&unique; drop index d2_idxtrf_&scr_nr&hyphen&unique;

drop index d2_idxho_&scr_nr&hyphen&unique ; drop index d2_idxres_&scr_nr&hyphen&unique; drop index d2_idxsrv_&scr_nr&hyphen&unique; drop index d2_idxfnl_&scr_nr&hyphen&unique; drop index d2_idxacc_&scr_nr&hyphen&unique; drop index d2_idxbh_&scr_nr&hyphen&unique; drop index d2_idxpcu_&scr_nr&hyphen&unique; drop index d2_idx_cods_&scr_nr&hyphen&unique; drop index d2_idx_bh_resavail_&scr_nr&hyphen&unique; drop index d2_idxamr_rxQual_&scr_nr&hyphen&unique; drop index d2_idx_qos_&scr_nr&hyphen&unique; drop index d2_idxres_seg_&scr_nr&hyphen&unique; drop index d2_idx_filter_&scr_nr&hyphen&unique; create index d2_idxp_nbsc_power_&scr_nr&hyphen&unique; drop index d2_idx_bh_traffic_&scr_nr&hyphen&unique; drop table d2_maxtch_&scr_nr&hyphen&unique; drop table d2_tch_&scr_nr&hyphen&unique; drop table d2_bh_&scr_nr&hyphen&unique; drop table d2_traffic_&scr_nr&hyphen&unique; drop table d2_ho_&scr_nr&hyphen&unique; drop table d2_resavail_&scr_nr&hyphen&unique; drop table d2_service_&scr_nr&hyphen&unique; drop table d2_access_&scr_nr&hyphen&unique; drop table d2_final_&scr_nr&hyphen&unique; drop table d2_pcu_&scr_nr&hyphen&unique; drop table d2_cods_&scr_nr&hyphen&unique; drop table d2_bh_resavail_&scr_nr&hyphen&unique; drop table d2_amr_rxQual_&scr_nr&hyphen&unique; drop table d2_qos_&scr_nr&hyphen&unique; drop table d2_seg_resavail_&scr_nr&hyphen&unique; drop table d2_filter_&scr_nr&hyphen&unique; drop table d2_bh_traffic_&scr_nr&hyphen&unique; create table d2_p_nbsc_power_&scr_nr&hyphen&unique as exit; exit; /************************************************/