application.properties site.passivlc 수정 확인 --- 정상 로그 ``` Txt [2022-05-30 05:44:10] : INFO : [MainController.send] - ***전송 취소(전송중 위치수신)*** [packet : $SYENC,28,MD002,0,0,20220530032224870,1,1|11,20220529204330,440186250,318,ARo8tYoT4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPTGTaWvNYjY=*7C] [2022-05-30 05:44:10] : INFO : [MainController.send] - ***전송 취소(전송중 위치수신)*** [packet : $SYENC,28,MD103,0,0,20220530032224870,1,1|11,20220529204330,440186250,318,ARo8tYoT4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPTGTaWvNYjY=*7C] [2022-05-30 05:44:10] : INFO : [MainController.send] - ***전송 취소(전송중 위치수신)*** [packet : $SYENC,28,MD201,0,0,20220530032224870,1,1|11,20220529204330,440186250,318,ARo8tYoT4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPTGTaWvNYjY=*7D] [2022-05-30 05:44:19] : INFO : [PassivlcController] : ***요청취소(요청전 위치 수신됨)*** (MSG ID:20220530032319871) [2022-05-30 05:44:24] : INFO : [PassivlcController] : ***요청취소(요청전 위치 수신됨)*** (MSG ID:20220530032319872) [2022-05-30 05:44:30] : INFO : [PassivlcController] : ***요청취소(요청전 위치 수신됨)*** (MSG ID:20220530032319873) [2022-05-30 05:44:35] : INFO : [PassivlcController] : ***요청취소(입항상태)*** (MSG ID:20220530032320874) ``` ``` SQL SELECT * FROM TB_LAST_LC tll SELECT * FROM TB_LC_FSHOPRRPT_202205 SELECT * FROM TB_TRACK_05 ---- -- 분당 요청건수 SELECT to_char(INSERT_DT , 'yyyymmdd') AS ymd , to_char(INSERT_DT , 'hh24') AS hh , to_char(INSERT_DT , 'mi') AS min , count(*) AS cnt FROM TB_PASSIVLC_REQUST a WHERE to_char(INSERT_DT , 'yyyymmdd') LIKE '202202%' AND REQUST_AT <> 0 GROUP BY to_char(INSERT_DT , 'yyyymmdd') , to_char(INSERT_DT , 'hh24') , to_char(INSERT_DT , 'mi') ORDER BY 1,2,3 -- 시간당 요청건수 SELECT to_char(INSERT_DT , 'yyyymmdd') AS ymd , to_char(INSERT_DT , 'hh24') AS hh , count(*) AS cnt FROM TB_PASSIVLC_REQUST a WHERE to_char(INSERT_DT , 'yyyymmdd') LIKE '202202%' AND REQUST_AT <> 0 GROUP BY to_char(INSERT_DT , 'yyyymmdd') , to_char(INSERT_DT , 'hh24') ORDER BY 1,2 -- 일자별 요청건수 SELECT to_char(INSERT_DT , 'yyyymmdd') AS ymd , count(*) AS cnt FROM TB_PASSIVLC_REQUST a WHERE to_char(INSERT_DT , 'yyyymmdd') LIKE '202202%' AND REQUST_AT <> 0 GROUP BY to_char(INSERT_DT , 'yyyymmdd') ORDER BY 1,2 -- 남아있는 요청건수 SELECT count(*) FROM tb_passivlc_requst WHERE PROCESS = 0 ORDER BY MSSAGE_ID --- Data확인 ------------------------------------------------------------ -- 30분이 안지났는데 60분 요청하는 경우(출항시각 기준 미수신 체크) SELECT * FROM ( SELECT SLOT_NO , REQUST_AT , LAG(INSERT_DT, 1) over (PARTITION BY SLOT_NO order by INSERT_DT) AS pre_ins , INSERT_DT , CEIL((INSERT_DT - LAG(INSERT_DT, 1) over (PARTITION BY SLOT_NO order by INSERT_DT) ) * (60 * 24)) AS term FROM TB_PASSIVLC_REQUST WHERE to_char(INSERT_DT , 'yyyymmdd') LIKE '202202%' AND REQUST_AT <> 0 ORDER BY SLOT_NO, INSERT_DT ) WHERE requst_at = 2 AND term < 30 AND term NOT IN ( 0, 1) -- 일자별 수동위치 응답 건수(29번 패킷) SELECT to_char(INSERT_DT, 'yyyymmdd') AS ymd, count(*) AS cnt FROM TB_PASSIVLC_RSPNS tpr WHERE to_char(INSERT_DT, 'yyyymmddhh24') LIKE '202205%' GROUP BY to_char(INSERT_DT, 'yyyymmdd') ORDER BY 1 desc -------------------------------------------------------------------------- SELECT * FROM tb_passivlc_requst a WHERE PROCESS = 0 ORDER BY MSSAGE_ID SELECT * FROM TB_LAST_LC tll WHERE SLOT_NO = 283 SELECT * FROM TB_LC_FSHOPRRPT_202205 tll WHERE SLOT_NO = 283 SELECT * FROM TB_TRACK_05 tll WHERE SLOT_NO = 283 -------------------------------------------------------------------------- ------ -- 어선안전조업DB 선박 출입항 정보 SELECT a.call_sign, b.inout_part, b.OUT_port_day, b.OUT_port_time, a.ship_no, a.slot_no FROM TACEEZ.V_ARS_SHIP@TACEEZ_LINK A , TACEEZ.V_ARS_INOUT2@TACEEZ_LINK b WHERE a.ship_no = b.ship_no AND a.CALL_SIGN = b.call_sign AND a.slot_no IS NOT NULL AND a.use_yn = 'Y' AND a.slot_no = '20' -- 출입항 이력 SELECT * FROM TACEEZ.TB_FBB_TKOFF@TACEEZ_LINK a WHERE call_smbol = '801동순' AND tkoff_de LIKE '20220223' --AND fshrbt_no = '03100016421501' ```