Sie sind auf Seite 1von 6

ORA-01843: not a valid month 'CDMA_RAN_NBH_SOUTH_27_Sep_2013_11hrs.txt', 'CDMA_RAN_NBH_NORTH_27_Sep_2013_11hrs.txt' update CDMA_MSTR set CALL_QUALITY_REFERENCE = '0.

00' where CALL_QUALITY_REFERENC E = 'NULL'; commit; CDMA_RAN_NBH_EAST_27_Sep_2013_11hrs.txt

---START OF EXT_CDMA_RAN PROCESS ---DROPPING OF EXTERNAL TABLE IF EXISTING --CREATION OF EXTERNAL TABLE ----INSERTING VALUES IN TABLE CDMA_RAN FROM EXTERNAL TABLE EXT_CDMA_RAN --END OF CDMA_RAN DATA PROCESS ---*************************************************************

________________________________________________________________________________ ________________________________________________ ---START OF EXT_MSC_CDMA PROCESS ---DROPPING OF EXTERNAL TABLE IF EXISTING DROP TABLE NETWORKKPI.EXT_MSC_CDMA CASCADE CONSTRAINTS; ---CREATION OF EXTERNAL TABLE CREATE TABLE NETWORKKPI.EXT_MSC_CDMA ( PMM_DATETIME CHAR(20 BYTE), REGION VARCHAR2(6 BYTE), CIRCLE VARCHAR2(100 BYTE), SWITCH_NAME VARCHAR2(100 BYTE), TOTAL_SWITCH_TRAFFIC NUMBER ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY DIR_MSC_CDMA ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE FIELDS TERMINATED BY '|' LRTRIM MISSING FIELD VALUES ARE NULL ) LOCATION (DIR_MSC_CDMA: 'CDMA_ZTE_TRAFF_27_Sep_2013_11hrs.txt', 'CDMA_LUCI_TRAFF_27_Sep_2013_11hrs.txt', 'CDMA_HU_TRAFF_27_Sep_2013_11hrs.txt') ) REJECT LIMIT UNLIMITED NOPARALLEL NOMONITORING; ----INSERTING VALUES IN TABLE MSC_CDMA FROM EXTERNAL TABLE EXT_MSC_CDMA INSERT INTO MSC_CDMA(PMM_DATE_TIME,REGION,CIRCLE,SWITCH_NAME,TOTAL_SWITCH_TRAFFI C) SELECT TO_DATE(PMM_DATETIME,'MON DD YYYY HH:MI AM'),REGION,CIRCLE,SWITCH_NAME,T OTAL_SWITCH_TRAFFIC FROM EXT_MSC_CDMA

COMMIT; --END OF MSC_CDMA DATA PROCESS ---****************************************** ---********START OF EXT_MSC_GSM PROCESS *********** ---DROPPING OF EXTERNAL TABLE IF EXISTING DROP TABLE NETWORKKPI.EXT_MSC_GSM CASCADE CONSTRAINTS; --CREATION OF EXTERNAL TABLE CREATE TABLE NETWORKKPI.EXT_MSC_GSM ( PMM_DATETIME CHAR(20 BYTE), REGION VARCHAR2(6 BYTE), CIRCLE VARCHAR2(100 BYTE), SWITCH_NAME VARCHAR2(100 BYTE), TOTAL_SWITCH_TRAFFIC NUMBER ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY DIR_MSC_GSM ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE FIELDS TERMINATED BY '|' LRTRIM MISSING FIELD VALUES ARE NULL ) LOCATION (DIR_MSC_GSM:'GSM_HU_TRAFF_27_Sep_2013_11hrs.txt') ) REJECT LIMIT UNLIMITED NOPARALLEL NOMONITORING; ----INSERTING VALUES IN TABLE MSC_GSM FROM EXTERNAL TABLE EXT_MSC_GSM INSERT INTO MSC_GSM(PMM_DATE_TIME,REGION,CIRCLE,SWITCH_NAME,TOTAL_SWITCH_TRAFFIC ) SELECT TO_DATE(PMM_DATETIME,'MON DD YYYY HH:MI AM'),REGION,CIRCLE,SWITCH_NAME,T OTAL_SWITCH_TRAFFIC FROM EXT_MSC_GSM COMMIT; --END OF MSC_GSM DATA PROCESS ---************************************************************* ---START OF EXT_CDMA_RAN PROCESS ---DROPPING OF EXTERNAL TABLE IF EXISTING DROP TABLE NETWORKKPI.EXT_CDMA_RAN CASCADE CONSTRAINTS; --CREATION OF EXTERNAL TABLE CREATE TABLE NETWORKKPI.EXT_CDMA_RAN ( PMM_DATETIME CHAR(30 BYTE), REGION VARCHAR2(6 BYTE), CIRCLE VARCHAR2(100 BYTE), MSC_NAME VARCHAR2(50 BYTE), BSC_NAME VARCHAR2(50 BYTE), SDCA VARCHAR2(50 BYTE), TOWN VARCHAR2(50 BYTE), CELL VARCHAR2(100 BYTE),

SITE_ID RCS_ID SECTOR CALL_COMPLETION_RATE_NUM CALL_COMPLETION_RATE_DEN CALL_COMPLETION_RATE CALL_SETUP_SUCCESS_RATE_NUM CALL_SETUP_SUCCESS_RATE_DEN CALL_SETUP_SUCCESS_RATE RF_BLOCK_RATE_NUM RF_BLOCK_RATE_DEN RF_BLOCK_RATE CALL_QUALITY_REFERENCE

VARCHAR2(15 BYTE), VARCHAR2(15 BYTE), VARCHAR2(20 BYTE), CHAR(20 BYTE), CHAR(20 BYTE), CHAR(20 BYTE), CHAR(20 BYTE), CHAR(20 BYTE), CHAR(20 BYTE), CHAR(20 BYTE), CHAR(20 BYTE), CHAR(20 BYTE), CHAR(20 BYTE)

) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY DIR_CDMA_RAN ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE FIELDS TERMINATED BY '|' LRTRIM MISSING FIELD VALUES ARE NULL ) LOCATION (DIR_CDMA_RAN: 'CDMA_RAN_NBH_EAST_27_Sep_2013_11hrs.txt', 'CDMA_RAN_NBH_SOUTH_27_Sep_2013_11hrs.txt', 'CDMA_RAN_NBH_NORTH_27_Sep_2013_11hrs.txt'

) ) REJECT LIMIT UNLIMITED NOPARALLEL NOMONITORING; ----INSERTING VALUES IN TABLE CDMA_MSTR FROM EXTERNAL TABLE EXT_CDMA_RAN INSERT INTO CDMA_MSTR(PMM_DATETIME,REGION,CIRCLE,MSC_NAME,BSC_NAME,SDCA,TOWN,CEL L,SITE_ID,RCS_ID,SECTOR,CALL_COMPLETION_RATE_NUM,CALL_COMPLETION_RATE_DEN,CALL_C OMPLETION_RATE,CALL_SETUP_SUCCESS_RATE_NUM,CALL_SETUP_SUCCESS_RATE_DEN,CALL_SETU P_SUCCESS_RATE,RF_BLOCK_RATE_NUM,RF_BLOCK_RATE_DEN,RF_BLOCK_RATE,CALL_QUALITY_RE FERENCE) SELECT TO_DATE(PMM_DATETIME,'MON DD YYYY HH:MI AM'),REGION,CIRCLE,MSC_NAME,BSC_ NAME,SDCA,TOWN,CELL,SITE_ID,RCS_ID,SECTOR,CALL_COMPLETION_RATE_NUM,CALL_COMPLETI ON_RATE_DEN,CALL_COMPLETION_RATE,CALL_SETUP_SUCCESS_RATE_NUM,CALL_SETUP_SUCCESS_ RATE_DEN,CALL_SETUP_SUCCESS_RATE,RF_BLOCK_RATE_NUM,RF_BLOCK_RATE_DEN,RF_BLOCK_RA TE,CALL_QUALITY_REFERENCE FROM EXT_CDMA_RAN; COMMIT; ----UPDATING VALUES IN TABLE CDMA_MSTR WHERE COLUMN CALL_QUALITY_REFERENCE IS NU LL WITH 0.00 update CDMA_MSTR set CALL_QUALITY_REFERENCE = '0.00' where CALL_QUALITY_REFERENC E = 'NULL'; commit; --END OF CDMA_RAN DATA PROCESS ---************************************************************* ---START OF EXT_GSM_RAN PROCESS ---DROPPING OF EXTERNAL TABLE IF EXISTING DROP TABLE NETWORKKPI.EXT_GSM_RAN CASCADE CONSTRAINTS;

--CREATION OF EXTERNAL TABLE CREATE TABLE NETWORKKPI.EXT_GSM_RAN ( PMM_DATETIME CHAR(25 BYTE), REGION VARCHAR2(6 BYTE), CIRCLE VARCHAR2(100 BYTE), MSC_NAME CHAR(100 BYTE), BSC_NAME CHAR(100 BYTE), SDCA VARCHAR2(100 BYTE), LAC_ID CHAR(5 BYTE), TOWN VARCHAR2(100 BYTE), BTS_NAME VARCHAR2(100 BYTE), SITE_ID CHAR(30 BYTE), CELL_NAME CHAR(30 BYTE), DROP_CALL_NUM CHAR(20 BYTE), DROP_CALL_DEN CHAR(20 BYTE), DROP_CALL_RATE CHAR(20 BYTE), SDCCH_CONGESTION_NUM CHAR(20 BYTE), SDCCH_CONGESTION_DEN CHAR(20 BYTE), SDCCH_CONGESTION_RATE CHAR(20 BYTE), CALL_SETUP_SUCCESS_RATE_NUM CHAR(20 BYTE), CALL_SETUP_SUCCESS_RATE_DEN CHAR(20 BYTE), CALL_SETUP_SUCCESS_RATE CHAR(20 BYTE), TCH_CONGESTION_NUM CHAR(20 BYTE), TCH_CONGESTION_DEN CHAR(20 BYTE), TCH_CONGESTION_RATE CHAR(20 BYTE), RX_QUALITY_DL_NUM CHAR(20 BYTE), RX_QUALITY_DL_DEN CHAR(20 BYTE), RX_QUALITY_DL_0_5 CHAR(20 BYTE) ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY DIR_GSM_RAN ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE FIELDS TERMINATED BY '|' LRTRIM MISSING FIELD VALUES ARE NULL ) LOCATION (DIR_GSM_RAN: 'GSM_RAN_NBH_EAST_27_Sep_2013_10hrs.txt', 'GSM_RAN_NBH_SOUTH_27_Sep_2013_10hrs.txt', 'GSM_RAN_NBH_NORTH_27_Sep_2013_10hrs.txt' ) ) REJECT LIMIT UNLIMITED NOPARALLEL NOMONITORING; ----INSERTING VALUES IN TABLE CDMA_RAN FROM EXTERNAL TABLE EXT_CDMA_RAN INSERT INTO GSM_MSTR(PMM_DATETIME,REGION,CIRCLE,MSC_NAME,BSC_NAME,SDCA,LAC_ID,TO WN,BTS_NAME,SITE_ID,CELL_NAME,DROP_CALL_NUM,DROP_CALL_DEN,DROP_CALL_RATE,SDCCH_C ONGESTION_NUM,SDCCH_CONGESTION_DEN,SDCCH_CONGESTION_RATE,CALL_SETUP_SUCCESS_RATE _NUM,CALL_SETUP_SUCCESS_RATE_DEN,CALL_SETUP_SUCCESS_RATE,TCH_CONGESTION_NUM,TCH_ CONGESTION_DEN,TCH_CONGESTION_RATE,RX_QUALITY_DL_NUM,RX_QUALITY_DL_DEN,RX_QUALIT Y_DL_0_5) SELECT TO_DATE(PMM_DATETIME,'MON DD YYYY HH:MI AM'),REGION,CIRCLE,MSC_NAME,BSC_ NAME,SDCA,LAC_ID,TOWN,BTS_NAME,SITE_ID,CELL_NAME,DROP_CALL_NUM,DROP_CALL_DEN,DRO P_CALL_RATE,SDCCH_CONGESTION_NUM,SDCCH_CONGESTION_DEN,SDCCH_CONGESTION_RATE,CALL _SETUP_SUCCESS_RATE_NUM,CALL_SETUP_SUCCESS_RATE_DEN,CALL_SETUP_SUCCESS_RATE,TCH_

CONGESTION_NUM,TCH_CONGESTION_DEN,TCH_CONGESTION_RATE,RX_QUALITY_DL_NUM,RX_QUALI TY_DL_DEN,RX_QUALITY_DL_0_5 FROM EXT_GSM_RAN COMMIT; DROP TABLE NETWORKKPI.EXT_VLR_CDMA CASCADE CONSTRAINTS; CREATE TABLE NETWORKKPI.EXT_VLR_CDMA ( PMM_DATETIME CHAR(20 BYTE), REGION VARCHAR2(6 BYTE), CIRCLE VARCHAR2(100 BYTE), SWITCH_NAME VARCHAR2(50 BYTE), VLR_TOTAL_SWITCH NUMBER ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY DIR_VLR_CDMA ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE FIELDS TERMINATED BY '|' LRTRIM MISSING FIELD VALUES ARE NULL ) LOCATION (DIR_VLR_CDMA:'CDMA_VLR_PERF_27_Sep_2013.txt') ) REJECT LIMIT UNLIMITED NOPARALLEL NOMONITORING; INSERT INTO VLR_CDMA(PMM_DATETIME,REGION,CIRCLE,SWITCH_NAME,VLR_TOTAL_SWITCH) SELECT TO_DATE(PMM_DATETIME,'MON DD YYYY HH:MI AM'),REGION,CIRCLE,SWITCH_NAME,V LR_TOTAL_SWITCH FROM EXT_VLR_CDMA COMMIT; --END OF CDMA_RAN DATA PROCESS ---************************************************************* DROP TABLE NETWORKKPI.EXT_VLR_GSM CASCADE CONSTRAINTS; CREATE TABLE NETWORKKPI.EXT_VLR_GSM ( PMM_DATETIME CHAR(20 BYTE), REGION VARCHAR2(6 BYTE), CIRCLE VARCHAR2(100 BYTE), SWITCH_NAME VARCHAR2(50 BYTE), TOTAL_VLR NUMBER, ATTACH_VLR NUMBER, DETACH_VLR NUMBER, VLR_NATIONAL_ROAM_SUBSCRIBERS NUMBER ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY DIR_VLR_GSM ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE FIELDS TERMINATED BY '|' LRTRIM MISSING FIELD VALUES ARE NULL

) LOCATION (DIR_VLR_GSM:'GSM_VLR_PERF_27_Sep_2013.txt') ) REJECT LIMIT UNLIMITED NOPARALLEL NOMONITORING; INSERT INTO VLR_GSM(PMM_DATETIME,REGION,CIRCLE,SWITCH_NAME,TOTAL_VLR,ATTACH_VLR, DETACH_VLR,VLR_NATIONAL_ROAM_SUBSCRIBERS) SELECT TO_DATE(PMM_DATETIME,'MON DD YYYY HH:MI AM'),REGION,CIRCLE,SWITCH_NAME,T OTAL_VLR,ATTACH_VLR,DETACH_VLR,VLR_NATIONAL_ROAM_SUBSCRIBERS FROM EXT_VLR_GSM COMMIT;