Programing 28

mongodump 몽고DB 데이터 마이그레이션

서버 용량증설, 서버교체의 이슈로 인하여 몽고DB 데이터를 마이그레이션 할 때가 있다. 데이터만 새로 가져올 때 사용하는 명령어를 정리한다. // 특정 데이터베이스 백업 mongodump -d [database name] // 컬렉션 백업 mongodump -d [database name] -c [collection name] // 특정 디렉토리에 백업 mongodump -o [output directory] // 백업 실행 시 아이디/패스워드 입력 mongodump -u [username] -p [password] -d [database name] // 원격서버에 접속해서 백업 mongodump --host [host name] --port [port number] --username [username..

Programing/Database 2023.05.11

[oracle] 11G Release 2 문서보고 무식하게 다해보는 중

오라클 공식문서를 가져왔다 docs.oracle.com/cd/E11882_01/timesten.112/e21642/function.htm Functions Functions manipulate data and return a result. In addition to an alphabetical listing of all functions, this chapter contains an overview of functions including: Aggregate functions Aggregate functions perform a specific operation over all rows in a group. docs.oracle.com 이 문서를 기초로 모든 함수들을 써보고 아래에 내가 이해한 데로 추가..

Programing/Database 2021.05.03

[oracle] 데이터베이스 메모리 관리

오라클 11g R2에서는 최대 메모리가 기본(default) 1GB로 정해져있다. SGA 크기와 PGA Aggregate 크기의 합이 1GB를 초과하도록 메모리 할당을 변경하려고하면 Oracle Database XE가 오류 메시지를 표시한다. SGA크기와 PGA 집계 크기를 변경하려면 sqldeveloper에서 보기 > DBA 순으로 DBA 탐색기를 표시한다. system 계정으로 로그인 후 데이터베이스 구성을 확장한 다음 초기화 매개변수를 누른다. pga_aggregate_target및 의 현재 값을 백업하고 sga_target원하는 새 값을 계산한다. 원하는 새 값이 .NET에 대해 140MB pga_aggregate_target이고 195840K 이다. sga_target은 576M이다. 워크시트에..

Programing/Database 2021.05.03

[oracle] 데이터베이스 연결

외부에서 데이터베이스 원격 접속을 할 때에는 입력하는 양식이 정해져 있다 username/password@[//]host[:port][/service_name] 기본포트를 사용해서 oracle database XE에서 원격연결을 할 때 CONNECT system/mypassword@mydbserver.example.com 기본포트가 1521이 아닌 다른 포트번호일 때 CONNECT system/mypassword@mydbserver.example.com:1522 기본포트를 사용하지만 원격 연결 시 서비스이름이 다른 경우 (기본 서비스이름 : orcl) CONNECT system/mypassword@mydbserver.example.com/XE 터미널에서 연결 시 굉장히매우 간편하다 CONNECT user..

Programing/Database 2021.05.03

[Ubuntu 18.04] 도커 설치 후 오라클 설치

오라클 설치는 별거 없을 줄 알았는데.. 오늘은 오류때문에 4시간째 삽질중이다. 일단.. 라이선스는 지켜주기 위해 테스트용이니 검색을 먼저 한다 $ docker search oracle-xe [검색결과] NAME DESCRIPTION STARS OFFICIAL AUTOMATED oracleinanutshell/oracle-xe-11g 155 wnameless/oracle-xe-11g-r2 Oracle Express Edition 11g Release 2 on Ubun… 59 orangehrm/oracle-xe-11g docker container with Oracle Express Editio… 15 [OK] dragonbest520/oracle-xe-10g Oracle Express Edition 10..

Programing/Docker 2021.04.30

[Ubuntu 18.04] 도커 설치

컨테이너로 관리가 편하다는 도커를 설치해보았다. sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" sudo apt update apt-cache policy docker-ce sudo apt install docker-ce sudo systemctl status doc..

Programing/Docker 2021.04.30

[Ubuntu 18.04] Springboot + Tomcat9 시작프로그램 스크립트 등록

springboot에서 스프링 프로필을 사용할 때는 $/etc/init.d에 단순등록을 할때 일을 2번이나 해야한다 1. init.d에 서비스 추가 $ cd /etc/init.d $ vi startTomcat i 입력 후 타이핑 sudo service tomcat9 start ESC키 누른 후 !wq 엔터 $ chmod +x startTomcat $ update-rc.d startTomcat defaults 저장이 잘 되었는지 확인을 하려면 cat startTomcat * startTomcat은 임의로 만든 시작프로그램 파일이름이며, 변경해도 무관함 2. 톰캣에서 실행할 스프링 프로필 등록 전 톰캣폴더 위치 확인 $ ps -ef | grep tomcat -> 00:00:00 /bin/sh /usr/sha..

Programing 2021.04.29