From 6005c7d3d751f5e43a52849396bcc16af58bbf31 Mon Sep 17 00:00:00 2001 From: MonHun Date: Sun, 14 Jul 2024 12:37:03 +0900 Subject: [PATCH] win 0714 --- .../plugins/recent-files-obsidian/data.json | 248 +++++++++--------- Recognition/.obsidian/workspace.json | 93 +++---- Recognition/Programing/ELK/ELK 오류.md | 8 +- .../Programing/ELK/ElasticSearch 쿼리.md | 46 ++++ .../Programing/Jenkins/Jenkins 설치.md | 2 +- .../Programing/Kafka(AMQP)/Kafka 명령어.md | 6 + .../Tibero/Timestamp 시간 차이.md | 10 + .../Programing/Tibero/timestamp to char.md | 7 + .../Tools/GitHub/GIT Repository 이관.md | 9 + .../0.관련정보/공유문서.md | 9 +- .../EAI 연계 데이터 복구.md | 146 ++++++++--- .../프로젝트/스마트계류장/TODO-0.md | 3 +- 12 files changed, 365 insertions(+), 222 deletions(-) create mode 100644 Recognition/Programing/Tibero/Timestamp 시간 차이.md create mode 100644 Recognition/Programing/Tibero/timestamp to char.md diff --git a/Recognition/.obsidian/plugins/recent-files-obsidian/data.json b/Recognition/.obsidian/plugins/recent-files-obsidian/data.json index 304fa8d..2476f50 100644 --- a/Recognition/.obsidian/plugins/recent-files-obsidian/data.json +++ b/Recognition/.obsidian/plugins/recent-files-obsidian/data.json @@ -1,17 +1,33 @@ { "recentFiles": [ { - "basename": "Filebeat 재배포", - "path": "Work Related/프로젝트/스마트계류장/9.기타/Filebeat 재배포.md" + "basename": "프로세스 확인 및 강제 종료", + "path": "Programing/Linux/Ubuntu/프로세스 확인 및 강제 종료.md" }, { - "basename": "TODO-0", - "path": "Work Related/프로젝트/스마트계류장/TODO-0.md" + "basename": "Jenkins 설치", + "path": "Programing/Jenkins/Jenkins 설치.md" + }, + { + "basename": "Jenkins script 모음", + "path": "Programing/Jenkins/Jenkins script 모음.md" + }, + { + "basename": "캐릭터셋 확인", + "path": "Programing/Tibero/캐릭터셋 확인.md" + }, + { + "basename": "GIT Repository 이관", + "path": "Tools/GitHub/GIT Repository 이관.md" }, { "basename": "EAI 연계 데이터 복구", "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 연계 데이터 복구.md" }, + { + "basename": "Lock 조회", + "path": "Programing/Tibero/Lock 조회.md" + }, { "basename": "EAI 데이터 초기화", "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 데이터 초기화.md" @@ -21,36 +37,128 @@ "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 프로시져 테스트.md" }, { - "basename": "SACP_AC_MASTER 갱신", - "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/SACP_AC_MASTER 갱신.md" + "basename": "Loop문", + "path": "Programing/Oracle/Loop문.md" }, { - "basename": "GAM_LIST 데이터 일괄 insert", - "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/GAM_LIST 데이터 일괄 insert.md" + "basename": "테이블 생성 프로시저", + "path": "Programing/Tibero/테이블 생성 프로시저.md" }, { - "basename": "EAI-Data Item 추출작업", - "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI-Data Item 추출작업.md" + "basename": "TableRow특정조건에 따라 보이기 - 숨기기", + "path": "Programing/Flutter/TableRow특정조건에 따라 보이기 - 숨기기.md" }, { - "basename": "Java 날짜 관련", - "path": "Programing/Java/Java 날짜 관련.md" + "basename": "2022-05-10", + "path": "Work Related/1.업무메모/2022.05/2022-05-10.md" }, { - "basename": "EAI Server 셋팅", - "path": "Work Related/프로젝트/스마트계류장/외부연계 관련/EAI/EAI Server 셋팅.md" + "basename": "리눅스 특정 폴더, 파일 용량 확인", + "path": "Programing/Linux/Linux 명령어/리눅스 특정 폴더, 파일 용량 확인.md" + }, + { + "basename": "공유문서", + "path": "Work Related/프로젝트/스마트계류장/0.관련정보/공유문서.md" + }, + { + "basename": "Docker 폐쇄망 설치", + "path": "Programing/Docker/Docker 폐쇄망 설치.md" }, { "basename": "ElasticSearch 쿼리", "path": "Programing/ELK/ElasticSearch 쿼리.md" }, + { + "basename": "ElasticSearch 인덱스 통계", + "path": "Programing/ELK/ElasticSearch 인덱스 통계.md" + }, + { + "basename": "ElasticSearch 검색 관련", + "path": "Programing/ELK/ElasticSearch 검색 관련.md" + }, + { + "basename": "timestamp to char", + "path": "Programing/Tibero/timestamp to char.md" + }, + { + "basename": "Timestamp 시간 차이", + "path": "Programing/Tibero/Timestamp 시간 차이.md" + }, + { + "basename": "항차별 수신 통계 회의 안건", + "path": "Work Related/프로젝트/D-MHFH/유지보수/항차별 수신 통계 회의 안건.md" + }, + { + "basename": "query DSL", + "path": "Programing/ELK/query DSL.md" + }, { "basename": "ELK 오류", "path": "Programing/ELK/ELK 오류.md" }, { - "basename": "ElasticSearch 인덱스 통계", - "path": "Programing/ELK/ElasticSearch 인덱스 통계.md" + "basename": "TODO-0", + "path": "Work Related/프로젝트/스마트계류장/TODO-0.md" + }, + { + "basename": "Kafka 명령어", + "path": "Programing/Kafka(AMQP)/Kafka 명령어.md" + }, + { + "basename": "특정 포트 임시 오픈", + "path": "Programing/Linux/Ubuntu/특정 포트 임시 오픈.md" + }, + { + "basename": "2024-04-22", + "path": "Work Related/1.업무메모/2024-04-22.md" + }, + { + "basename": "GAM_LIST 데이터 일괄 insert", + "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/GAM_LIST 데이터 일괄 insert.md" + }, + { + "basename": "주기장 기준 항공기 유무 확인 쿼리(GAM)", + "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/주기장 기준 항공기 유무 확인 쿼리(GAM).md" + }, + { + "basename": "관리페이지 테스트 쿼리", + "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/관리페이지 테스트 쿼리.md" + }, + { + "basename": "EAI-Data Item 추출작업", + "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI-Data Item 추출작업.md" + }, + { + "basename": "스케줄려 생성", + "path": "Programing/Linux/Unix/스케줄려 생성.md" + }, + { + "basename": "Tibero 세션 관련", + "path": "Programing/Tibero/Tibero 세션 관련.md" + }, + { + "basename": "Tibero 스크립트 추출", + "path": "Programing/Tibero/Tibero 스크립트 추출.md" + }, + { + "basename": "EAI Server 셋팅", + "path": "Work Related/프로젝트/스마트계류장/외부연계 관련/EAI/EAI Server 셋팅.md" + }, + { + "basename": "테이블 스페이스 관련", + "path": "Programing/Tibero/테이블 스페이스 관련.md" + }, + { + "basename": "Filebeat 재배포", + "path": "Work Related/프로젝트/스마트계류장/9.기타/Filebeat 재배포.md" + }, + { + "basename": "SACP_AC_MASTER 갱신", + "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/SACP_AC_MASTER 갱신.md" + }, + { + "basename": "Java 날짜 관련", + "path": "Programing/Java/Java 날짜 관련.md" }, { "basename": "ELK 백업 및 복구", @@ -64,10 +172,6 @@ "basename": "무제 파일", "path": "Programing/Tibero/무제 파일.md" }, - { - "basename": "query DSL", - "path": "Programing/ELK/query DSL.md" - }, { "basename": "2024-04-26", "path": "Work Related/1.업무메모/2024-04-26.md" @@ -76,18 +180,10 @@ "basename": "2024-04-25", "path": "Work Related/1.업무메모/2024-04-25.md" }, - { - "basename": "2024-04-22", - "path": "Work Related/1.업무메모/2024-04-22.md" - }, { "basename": "2024-03-25", "path": "Work Related/1.업무메모/2024-03-25.md" }, - { - "basename": "프로세스 확인 및 강제 종료", - "path": "Programing/Linux/Ubuntu/프로세스 확인 및 강제 종료.md" - }, { "basename": "ELK ILM 설정", "path": "Programing/ELK/ELK ILM 설정.md" @@ -103,102 +199,6 @@ { "basename": "무제 파일", "path": "Programing/Docker/무제 파일.md" - }, - { - "basename": "ElasticSearch 검색 관련", - "path": "Programing/ELK/ElasticSearch 검색 관련.md" - }, - { - "basename": "Elastic Search + Spring Boot에서 검색 로직", - "path": "Programing/ELK/Elastic Search + Spring Boot에서 검색 로직.md" - }, - { - "basename": "Docker 명령어", - "path": "Programing/Docker/Docker 명령어.md" - }, - { - "basename": "Docker Compose", - "path": "Programing/Docker/Docker Compose.md" - }, - { - "basename": "자주참고하는 노트", - "path": "0.바로가기/자주참고하는 노트.md" - }, - { - "basename": "수협본회 서버 작업", - "path": "Work Related/프로젝트/D-MHFH/유지보수/수협본회 서버 작업.md" - }, - { - "basename": "공유문서", - "path": "Work Related/프로젝트/스마트계류장/0.관련정보/공유문서.md" - }, - { - "basename": "Tibero 세션 관련", - "path": "Programing/Tibero/Tibero 세션 관련.md" - }, - { - "basename": "관리페이지 테스트 쿼리", - "path": "Work Related/프로젝트/스마트계류장/1.데이터베이스/관리페이지 테스트 쿼리.md" - }, - { - "basename": "Lock 조회", - "path": "Programing/Tibero/Lock 조회.md" - }, - { - "basename": "2023.10-4", - "path": "Work Related/3.주간계획/스마트계류장/2023.10-4.md" - }, - { - "basename": "2023.10-3", - "path": "Work Related/3.주간계획/스마트계류장/2023.10-3.md" - }, - { - "basename": "용어", - "path": "Programing/0.Root/용어.md" - }, - { - "basename": "2022-07-05", - "path": "Work Related/1.업무메모/2022.07/2022-07-05.md" - }, - { - "basename": "Tibero Export & Import", - "path": "Programing/Tibero/Tibero Export & Import.md" - }, - { - "basename": "통계관련", - "path": "Work Related/프로젝트/스마트계류장/통계관련.md" - }, - { - "basename": "리눅스 특정 폴더, 파일 용량 확인", - "path": "Programing/Linux/Linux 명령어/리눅스 특정 폴더, 파일 용량 확인.md" - }, - { - "basename": "스케줄려 생성", - "path": "Programing/Linux/Unix/스케줄려 생성.md" - }, - { - "basename": "archive 삭제 스크립트", - "path": "Programing/Tibero/archive 삭제 스크립트.md" - }, - { - "basename": "데이터 타입", - "path": "Programing/Oracle/데이터 타입.md" - }, - { - "basename": "테이블 Archive 로그 설정 변경", - "path": "Programing/Tibero/테이블 Archive 로그 설정 변경.md" - }, - { - "basename": "미들웨어 API", - "path": "Work Related/프로젝트/스마트계류장/0.관련정보/미들웨어 API.md" - }, - { - "basename": "function Table", - "path": "Programing/Tibero/function Table.md" - }, - { - "basename": "약어표", - "path": "Work Related/프로젝트/스마트계류장/항공용어/약어표.md" } ], "omittedPaths": [], diff --git a/Recognition/.obsidian/workspace.json b/Recognition/.obsidian/workspace.json index 00ce820..2e3bdd1 100644 --- a/Recognition/.obsidian/workspace.json +++ b/Recognition/.obsidian/workspace.json @@ -4,16 +4,16 @@ "type": "split", "children": [ { - "id": "317a23199b7d79cd", + "id": "2a836c6382b3c130", "type": "tabs", "children": [ { - "id": "2d9948953b158174", + "id": "f333482c2e1fc2e1", "type": "leaf", "state": { "type": "markdown", "state": { - "file": "Programing/ELK/ELK 오류.md", + "file": "Tools/GitHub/GIT Repository 이관.md", "mode": "source", "backlinks": true, "source": false @@ -21,38 +21,12 @@ } }, { - "id": "164c02dc8a39e1af", + "id": "726820c168a29980", "type": "leaf", "state": { "type": "markdown", "state": { - "file": "Programing/ELK/ELK 백업 및 복구.md", - "mode": "source", - "backlinks": true, - "source": false - } - } - }, - { - "id": "b3db94b54b07553d", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "Work Related/프로젝트/스마트계류장/외부연계 관련/EAI/EAI Server 셋팅.md", - "mode": "source", - "backlinks": true, - "source": false - } - } - }, - { - "id": "4241f12287aaedc6", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "Work Related/프로젝트/스마트계류장/9.기타/Filebeat 재배포.md", + "file": "Programing/Linux/Ubuntu/프로세스 확인 및 강제 종료.md", "mode": "source", "backlinks": true, "source": false @@ -60,7 +34,7 @@ } } ], - "currentTab": 3 + "currentTab": 1 } ], "direction": "vertical" @@ -89,7 +63,7 @@ "state": { "type": "search", "state": { - "query": "filebeat", + "query": "캐릭", "matchingCase": false, "explainSearch": false, "collapseAll": true, @@ -122,8 +96,7 @@ "state": {} } } - ], - "currentTab": 1 + ] } ], "direction": "horizontal", @@ -143,7 +116,7 @@ "state": { "type": "backlink", "state": { - "file": "Work Related/프로젝트/스마트계류장/9.기타/Filebeat 재배포.md", + "file": "Programing/Linux/Ubuntu/프로세스 확인 및 강제 종료.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -160,7 +133,7 @@ "state": { "type": "outgoing-link", "state": { - "file": "Work Related/프로젝트/스마트계류장/9.기타/Filebeat 재배포.md", + "file": "Programing/Linux/Ubuntu/프로세스 확인 및 강제 종료.md", "linksCollapsed": false, "unlinkedCollapsed": true } @@ -183,7 +156,7 @@ "state": { "type": "outline", "state": { - "file": "Work Related/프로젝트/스마트계류장/9.기타/Filebeat 재배포.md" + "file": "Programing/Linux/Ubuntu/프로세스 확인 및 강제 종료.md" } } }, @@ -225,34 +198,34 @@ "command-palette:명령어 팔레트 열기": false } }, - "active": "4241f12287aaedc6", + "active": "726820c168a29980", "lastOpenFiles": [ - "Work Related/프로젝트/스마트계류장/TODO-0.md", + "Programing/Jenkins/Jenkins 설치.md", + "Programing/Jenkins/Jenkins script 모음.md", + "Programing/Tibero/캐릭터셋 확인.md", + "Tools/GitHub/GIT Repository 이관.md", "Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 연계 데이터 복구.md", + "Programing/Tibero/Lock 조회.md", "Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 데이터 초기화.md", "Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 프로시져 테스트.md", - "Work Related/프로젝트/스마트계류장/1.데이터베이스/SACP_AC_MASTER 갱신.md", - "Work Related/프로젝트/스마트계류장/1.데이터베이스/GAM_LIST 데이터 일괄 insert.md", - "Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI-Data Item 추출작업.md", - "Programing/Java/Java 날짜 관련.md", - "Work Related/프로젝트/스마트계류장/외부연계 관련/EAI/EAI Server 셋팅.md", - "Programing/ELK/ElasticSearch 쿼리.md", - "Programing/ELK/ELK 오류.md", + "Programing/Oracle/Loop문.md", + "Programing/Tibero/테이블 생성 프로시저.md", + "Programing/Flutter/TableRow특정조건에 따라 보이기 - 숨기기.md", + "Work Related/1.업무메모/2022.05/2022-05-10.md", + "Programing/Linux/Linux 명령어/리눅스 특정 폴더, 파일 용량 확인.md", + "Work Related/프로젝트/스마트계류장/0.관련정보/공유문서.md", + "Programing/Docker/Docker 폐쇄망 설치.md", "Programing/ELK/ElasticSearch 인덱스 통계.md", - "Programing/ELK/ELK 폐쇄망 설치(New).md", - "Programing/ELK/ELK 백업 및 복구.md", - "Programing/Tibero/무제 파일.md", - "Programing/ELK/query DSL.md", - "Work Related/1.업무메모/2024-04-26.md", - "Work Related/1.업무메모/2024-04-25.md", - "Work Related/1.업무메모/2024-04-22.md", - "Work Related/1.업무메모/2024-03-25.md", - "Programing/Linux/Ubuntu/프로세스 확인 및 강제 종료.md", - "Programing/ELK/ELK ILM 설정.md", - "Programing/ELK/Cluster.md", - "Programing/ELK/사용Port.md", - "Programing/Docker/무제 파일.md", "Programing/ELK/ElasticSearch 검색 관련.md", + "Programing/ELK/ElasticSearch 쿼리.md", + "Programing/Tibero/timestamp to char.md", + "Programing/Tibero/Timestamp 시간 차이.md", + "Work Related/프로젝트/D-MHFH/유지보수/항차별 수신 통계 회의 안건.md", + "Programing/ELK/ELK 오류.md", + "Work Related/프로젝트/스마트계류장/TODO-0.md", + "Programing/Kafka(AMQP)/Kafka 명령어.md", + "Programing/Linux/Ubuntu/특정 포트 임시 오픈.md", + "Work Related/1.업무메모/2024-04-22.md", "zzz.resources/Pasted image 20240514161803.png", "zzz.resources/Pasted image 20240514161647.png", "무제 파일 1.canvas", diff --git a/Recognition/Programing/ELK/ELK 오류.md b/Recognition/Programing/ELK/ELK 오류.md index 629520b..171fdf8 100644 --- a/Recognition/Programing/ELK/ELK 오류.md +++ b/Recognition/Programing/ELK/ELK 오류.md @@ -7,9 +7,13 @@ ```yml # doker-compose env에 아래 설정 추가 -user: root +##elasticsearch에 hostname 추가 +hostname: es01 -- xpack.monitoring.enabled=false +## logstash.conf output에 설정 변경 +### 변경 hosts => "http://10.200.31.130:9200" +hosts => "http://es01:9200" +ssl => false ## 추가 ``` diff --git a/Recognition/Programing/ELK/ElasticSearch 쿼리.md b/Recognition/Programing/ELK/ElasticSearch 쿼리.md index 846124d..56bde1e 100644 --- a/Recognition/Programing/ELK/ElasticSearch 쿼리.md +++ b/Recognition/Programing/ELK/ElasticSearch 쿼리.md @@ -214,6 +214,8 @@ GET _sql/translate ## 조회 ```json +// ?filter_path=hits.hits._source.message + POST replay_log_*_*/_search { "size" : 1000, @@ -287,6 +289,50 @@ POST /_aliases?pretty } ] } + + + +----------------------------------------------------------------------------- + +POST *_log_*/_search?filter_path=hits.hits._source.message +{ + "size" : 10000, + "track_total_hits": true, + "query" : { + "bool" : { + "must" : [ + { + "bool" : { + "must" : [ + { + "terms" : { + "header.msg_type.keyword" : [ + 3 + ] + } + }, + { + "range" : { + "header.recv_time" : { + "from" : "20240704110500.000", + "to" : "20240704113000.000" + } + } + } + ] + } + }, + { + "query_string": { + "query" : "*HL8010*" + } + } + ] + } + }, + "sort" : [{"header.recv_time.keyword" : {"order" : "ASC"}}] +} + ``` ## 총 데이터 건수 가져오기 diff --git a/Recognition/Programing/Jenkins/Jenkins 설치.md b/Recognition/Programing/Jenkins/Jenkins 설치.md index 8c3e90d..f9c3821 100644 --- a/Recognition/Programing/Jenkins/Jenkins 설치.md +++ b/Recognition/Programing/Jenkins/Jenkins 설치.md @@ -150,7 +150,7 @@ ssh-keygen cd # 접속 대상서버로 Key 전송 -ssh-copy-id -i id_rsa.pub -p 11443 root@10.200.31.136 +ssh-copy-id -i id_rsa.pub -p 11443 gmt@10.200.31.48 ``` - 비공개키 붙여넣기 diff --git a/Recognition/Programing/Kafka(AMQP)/Kafka 명령어.md b/Recognition/Programing/Kafka(AMQP)/Kafka 명령어.md index 7f1d543..786e074 100644 --- a/Recognition/Programing/Kafka(AMQP)/Kafka 명령어.md +++ b/Recognition/Programing/Kafka(AMQP)/Kafka 명령어.md @@ -13,6 +13,12 @@ -- 버전확인 bin/kafka-topics --version +-- Offset 확인 +/bin/kafka-run-class kafka.tools.GetOffsetShell --broker-list 10.200.31.6:9091 --topic ic.tracking.ptz.manual + +-- 토픽 데이터 확인 +/bin/kafka-console-consumer --bootstrap-server 10.200.31.6:9091 --topic ic.tracking.ptz.manual --from-beginning + -- zookeeper echo srvr | nc localhost 2181 diff --git a/Recognition/Programing/Tibero/Timestamp 시간 차이.md b/Recognition/Programing/Tibero/Timestamp 시간 차이.md new file mode 100644 index 0000000..646dd11 --- /dev/null +++ b/Recognition/Programing/Tibero/Timestamp 시간 차이.md @@ -0,0 +1,10 @@ +```sql + +SELECT systimestamp - tm AS interval + , EXTRACT(DAY FROM systimestamp - tm) *24*60*60 + + EXTRACT(HOUR FROM systimestamp - tm) *60*60 + + EXTRACT(MINUTE FROM systimestamp - tm) *60 + + EXTRACT(SECOND FROM systimestamp - tm) AS second + FROM (SELECT TO_TIMESTAMP('14/01/13 17:40:33.751000000', 'yy/mm/dd hh24:mi:ss.ff') tm FROM dual) + +``` \ No newline at end of file diff --git a/Recognition/Programing/Tibero/timestamp to char.md b/Recognition/Programing/Tibero/timestamp to char.md new file mode 100644 index 0000000..be78e3b --- /dev/null +++ b/Recognition/Programing/Tibero/timestamp to char.md @@ -0,0 +1,7 @@ +#tibero #SQL + +```sql + +to_char(to_timestamp(login_dt, 'yyyy-mm-dd hh24:mi:ss.ff3'), 'yyyyMMddhh24miss.ff3') + +``` \ No newline at end of file diff --git a/Recognition/Tools/GitHub/GIT Repository 이관.md b/Recognition/Tools/GitHub/GIT Repository 이관.md index 2a35c78..d6f137b 100644 --- a/Recognition/Tools/GitHub/GIT Repository 이관.md +++ b/Recognition/Tools/GitHub/GIT Repository 이관.md @@ -24,5 +24,14 @@ git remote add origin http://10.200.32.100:30080/sacp/EyeRoute.git git remote add origin http://10.200.32.100:30080/sacp/EyeState.git git remote add origin http://10.200.32.100:30080/sacp/MapServer.git +############################################################################### + +git clone --mirror https://git.gmt.dscloud.biz/sacp/Radar.git +cd Radar.git +git remote remove origin +git remote add origin http://10.200.32.100:30080/sacp/EyeAPN-Radar.git +git push --mirror +cd .. + ``` \ No newline at end of file diff --git a/Recognition/Work Related/프로젝트/스마트계류장/0.관련정보/공유문서.md b/Recognition/Work Related/프로젝트/스마트계류장/0.관련정보/공유문서.md index 2ce8f83..b345047 100644 --- a/Recognition/Work Related/프로젝트/스마트계류장/0.관련정보/공유문서.md +++ b/Recognition/Work Related/프로젝트/스마트계류장/0.관련정보/공유문서.md @@ -23,7 +23,12 @@ http://118.220.143.172:5601/app/dev_tools#/console http://118.220.143.175:9000/ +--- +- NAS-git +http://10.200.32.100:30080/ +kdg@gmtc.kr +Wldpaxl4! - NAS 10.200.32.100:5000 @@ -34,8 +39,8 @@ admin / todn 10.200.32.100:3751 admin / todn -- NAS-git -http://10.200.32.100:30080/ +--- + - 판교 GIT diff --git a/Recognition/Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 연계 데이터 복구.md b/Recognition/Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 연계 데이터 복구.md index c8ded95..65297a6 100644 --- a/Recognition/Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 연계 데이터 복구.md +++ b/Recognition/Work Related/프로젝트/스마트계류장/1.데이터베이스/EAI 연계 데이터 복구.md @@ -1,37 +1,119 @@ ```sql ---update ueai.EAI_ELECSTRIPARRARTS_RCV set deal_stat = 'S' where deal_stat = 'P' and recv_time >= '202309170000000'; ---update ueai.EAI_ELECSTRIPDEPARTS_RCV set deal_stat = 'S' where deal_stat = 'P' and recv_time >= '202309170000000'; ---update ueai.EAI_FLTACDMMLSTNARR_RCV set deal_stat = 'S' where deal_stat = 'P' and recv_time >= '202309170000000'; ---update ueai.EAI_FLTACDMMLSTNDEP_RCV set deal_stat = 'S' where deal_stat = 'P' and recv_time >= '202309170000000'; ---update ueai.EAI_GRDACMVT_RCV set deal_stat = 'S' where deal_stat = 'P' and recv_time >= '202309170000000'; --- ---select count(*) as data_cnt from ueai.EAI_ELECSTRIPARRARTS_RCV where deal_stat = 'S'; - ---truncate table uic.SACP_FLT_APRON_MVMN_HIST ; ---truncate table uic.SACP_FLT_ARR_HIST ; ---truncate table uic.SACP_FLT_DEICING_HIST ; ---truncate table uic.SACP_FLT_DEP_HIST ; ---truncate table uic.SACP_IDNTFC_MAPNG ; ---select * from uic.SACP_FLT_APRON_MVMN_HIST ; ---select * from uic.SACP_FLT_ARR_HIST ; ---select * from uic.SACP_FLT_DEICING_HIST ; ---select * from uic.SACP_FLT_DEP_HIST ; ---select * from uic.SACP_IDNTFC_MAPNG ; --- --- ---select count(*) from ueai.EAI_ELECSTRIPARRARTS_RCV where deal_stat = 'S' and recv_time >= '202309170000000'; ---select count(*) from ueai.EAI_ELECSTRIPDEPARTS_RCV where deal_stat = 'Q' and recv_time >= '202309170000000'; ---select count(*) from ueai.EAI_FLTACDMMLSTNARR_RCV where deal_stat = 'Q' and recv_time >= '202309170000000'; ---select count(*) from ueai.EAI_FLTACDMMLSTNDEP_RCV where deal_stat = 'Q' and recv_time >= '202309170000000'; ---select count(*) from ueai.EAI_GRDACMVT_RCV where deal_stat = 'Q' and recv_time >= '202309170000000'; --- --- ---select * from ueai.EAI_ELECSTRIPARRARTS_RCV where recv_time >= '202309170000000'; ---select * from ueai.EAI_ELECSTRIPDEPARTS_RCV where deal_stat = 'Q' and recv_time >= '202309170000000'; ---select * from ueai.EAI_FLTACDMMLSTNARR_RCV where deal_stat = 'Q' and recv_time >= '202309170000000'; ---select * from ueai.EAI_FLTACDMMLSTNDEP_RCV where deal_stat = 'Q' and recv_time >= '202309170000000'; ---select * from ueai.EAI_GRDACMVT_RCV where deal_stat = 'Q' and recv_time >= '202309170000000'; + +------------------------------------------------------------------------------------------------------------------------ +/*복구 대상 데이터 특정하여 임시테이블에 insert */ + +truncate table ueai.flt_restore; + + +insert into ueai.flt_restore(flt_item, dateandtime) +select 'ARTS_ARR' as flt_item, dateandtime from ueai.EAI_ELECSTRIPARRARTS_RCV where recv_time >= '20240709000000000' union all +select 'ARTS_DEP' as flt_item, dateandtime from ueai.EAI_ELECSTRIPDEPARTS_RCV where recv_time >= '20240709000000000' union all +select 'ACDM_ARR' as flt_item, dateandtime from ueai.EAI_FLTACDMMLSTNARR_RCV where recv_time >= '20240709000000000' union all +select 'ACDM_DEP' as flt_item, dateandtime from ueai.EAI_FLTACDMMLSTNDEP_RCV where recv_time >= '20240709000000000' union all +select 'GAM' as flt_item, dateandtime from ueai.EAI_GRDACMVT_RCV where recv_time >= '20240709000000000' ; + + +select flt_item, count(dateandtime) as dataCnt +from ueai.flt_restore +group by flt_item ; + + +select flt_item, count(dateandtime) as dataCnt +from ueai.flt_restore +group by flt_item ; + +------------------------------------------------------------------------------------------------------------------------ +/*업무 테이블 데이터 삭제*/ + +--select count(*) +delete +from uic.SACP_FLT_DEP_HIST +where if_dt in ( + select dateandtime from ueai.flt_restore where flt_item in ('ARTS_DEP', 'ACDM_DEP') ); + + +--select count(*) +delete +from uic.SACP_FLT_ARR_HIST +where if_dt in ( + select dateandtime from ueai.flt_restore where flt_item in ('ARTS_ARR', 'ACDM_ARR') ); + + +--select count(*) +delete +from uic.SACP_FLT_APRON_MVMN_HIST +where if_dt in ( + select dateandtime from ueai.flt_restore where flt_item in ('GAM') ); + + +--select count(*) +delete +from uic.SACP_GAM_LAST +where if_dt in ( + select dateandtime from ueai.flt_restore where flt_item in ('GAM') ); + + +--select count(*) +delete +from uic.SACP_FLT_DEICING_HIST +where if_dt in ( + select dateandtime from ueai.flt_restore where flt_item in ('ACDM_DEP') ); + + +---------------------------------------------------------------------------------------------------------------------- +/* 연계 테이블 연계상태 초기화*/ + +update ueai.EAI_ELECSTRIPARRARTS_RCV +set deal_stat = 'S', DEAL_DESC = null +where DATEANDTIME in + ( select dateandtime + from ueai.flt_restore + where flt_item = 'ARTS_ARR' ); + +update ueai.EAI_ELECSTRIPDEPARTS_RCV +set deal_stat = 'S', DEAL_DESC = null +where DATEANDTIME in + ( select dateandtime + from ueai.flt_restore + where flt_item = 'ARTS_DEP' ); + +update ueai.EAI_FLTACDMMLSTNARR_RCV +set deal_stat = 'S', DEAL_DESC = null +where DATEANDTIME in + ( select dateandtime + from ueai.flt_restore + where flt_item = 'ACDM_ARR' ); + +update ueai.EAI_FLTACDMMLSTNDEP_RCV +set deal_stat = 'S', DEAL_DESC = null +where DATEANDTIME in + ( select dateandtime + from ueai.flt_restore + where flt_item = 'ACDM_DEP' ) ; + +update ueai.EAI_GRDACMVT_RCV +set deal_stat = 'S', DEAL_DESC = null +where DATEANDTIME in + ( select dateandtime + from ueai.flt_restore + where flt_item = 'GAM' ) ; + + +---------------------------------------------------------------------------------------------------------------------- +/* 프로시져 실행 */ + +DECLARE + -- PROCEDURE UEAI.PROC_EAI_INTRFC_ALL + RET_MSG VARCHAR(100); +BEGIN + UEAI.PROC_EAI_INTRFC_ALL(RET_MSG); + + COMMIT; +END; + + ``` \ No newline at end of file diff --git a/Recognition/Work Related/프로젝트/스마트계류장/TODO-0.md b/Recognition/Work Related/프로젝트/스마트계류장/TODO-0.md index afa6b21..a1634b1 100644 --- a/Recognition/Work Related/프로젝트/스마트계류장/TODO-0.md +++ b/Recognition/Work Related/프로젝트/스마트계류장/TODO-0.md @@ -56,4 +56,5 @@ - [ ] STATS 모듈 1초주기 상태전송 -- [ ] EAI- ALL 프로시져 적용 \ No newline at end of file +- [ ] EAI- ALL 프로시져 적용 +- [ ] USTATS 생성, 오브젝트 이동 \ No newline at end of file