...
machadmin의 옵션은 아래와 같다. 앞의 설치 섹션에서 설명된 절에서 설명한 기능은 생략한다.
Code Block |
---|
mach@localhost:~$ machadmin -h |
Option옵션 | Description설명 |
---|---|
-u, --startup/ --recovery[=simple,complex,reset] | 마크베이스 서버 시작/ 복구 mode (기본: simple) |
-s, --shutdown | 마크베이스 서버 정상 종료 |
-c, --createdb | 마크베이스 데이터베이스 생성 |
-d, --destroydb | 마크베이스 데이터베이스 삭제 |
-k, --kill | 마크베이스 서버 강제 종료 |
-i, --silence | 출력 내용 삭제없이 실행 |
-r, --restore | 백업에서 데이터베이스 복구 |
-x, --extract | 백업 파일을 백업 디렉터리로 변환 |
-w, --viewimage | 백업 이미지 파일의 정보 출력 |
-e, --check | 마크베이스 서버 실행 체크 |
-t, --licinstall | 라이선스 파일 설치 |
-f, --licinfo | 설치된 라이선스 정보 출력 |
...
Code Block |
---|
machadmin -u --recovery=[simple | complex | reset] |
Recovery mode는 복구 모드는 다음과 같다.
Simplesimple: 서버가 동작중일때 전원이 끊어지는 문제가 발생하지 않았다면, simple recovery 모드가 기본 실행된다.
Complexcomplex: Complex complex recovery 모드는 simple모드에 simple 모드에 비해서 실행시간이 더 오래 걸린다. 전원이 끊어진 이후 재시작시에 기본으로 실행된다.
Resetreset: Simple simple 혹은 complex모드로 complex 모드로 복구가 수행되지 않을 때, 모든 테이블의 모든 데이터를 검사하여 데이터베이스를 복구한다. 이 경우, 데이터의 일부 유실이 발생할 수 있다.
...
Code Block |
---|
mach@localhost:~$ machadmin -r 'backup' ----------------------------------------------------------------- Machbase Administration Tool Release Version - 5.1.9.community Copyright 2014, MACHBASE Corp. or its subsidiaries All Rights Reserved ----------------------------------------------------------------- Backed up database restored successfully. |
백업폴더로 백업 폴더로 변환
Syntax:
Code Block |
---|
machadmin -x backup_file extract_path |
단일 백업 파일 (*.ibibf)을 백업 디렉터리에 출력한다: -x backup_file extract_path.
...
Code Block |
---|
machadmin -e |
서버가 실행중이지 않을 때의 출력 예제예
Code Block |
---|
mach@localhost:~$ machadmin -e ----------------------------------------------------------------- Machbase Administration Tool Release Version - 5.1.9.community Copyright 2014, MACHBASE Corp. or its subsidiaries All Rights Reserved ----------------------------------------------------------------- [ERR] Server is not running. |
서버가 실행중일 때의 출력 예제예
Code Block |
---|
mach@localhost:~$ machadmin -e ----------------------------------------------------------------- Machbase Administration Tool Release Version - 5.1.9.community Copyright 2014, MACHBASE Corp. or its subsidiaries All Rights Reserved ----------------------------------------------------------------- Machbase server is already running with PID (14098). |
...