...
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] |
서버 정상 종료
Code Block |
---|
|
mach@localhost:~$ machadmin -s
-----------------------------------------------------------------
Machbase Administration Tool
Release Version - 5.1.9.community
Copyright 2014, MACHBASE Corp. or its subsidiaries
All Rights Reserved
-----------------------------------------------------------------
Waiting for the server shut down...
Server shut down successfully. |
...
데이터베이스 생성
Code Block |
---|
|
mach@localhost:~$ machadmin -c
-----------------------------------------------------------------
Machbase Administration Tool
Release Version - 5.1.9.community
Copyright 2014, MACHBASE Corp. or its subsidiaries
All Rights Reserved
-----------------------------------------------------------------
Database created successfully. |
...
데이터베이스 삭제
Code Block |
---|
|
mach@localhost:~$ machadmin -d
-----------------------------------------------------------------
Machbase Administration Tool
Release Version - 5.1.9.community
Copyright 2014, MACHBASE Corp. or its subsidiaries
All Rights Reserved
-----------------------------------------------------------------
Destroy Machbase database- Are you sure?(y/N) y
Database destroyed successfully. |
...
Example:
Code Block |
---|
|
mach@localhost:~$ machadmin -k
-----------------------------------------------------------------
Machbase Administration Tool
Release Version - 5.1.9.community
Copyright 2014, MACHBASE Corp. or its subsidiaries
All Rights Reserved
-----------------------------------------------------------------
Waiting for Machbase terminated...
Server terminated successfully. |
...
Code Block |
---|
machadmin -r backup_database_path |
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. |
백업폴더로 백업 폴더로 변환
Code Block |
---|
machadmin -x backup_file extract_path |
Code Block |
---|
|
mach@localhost:~$ machadmin -x 'backup.ibf' 'backup'
-----------------------------------------------------------------
Machbase Administration Tool
Release Version - 5.1.9.community
Copyright 2014, MACHBASE Corp. or its subsidiaries
All Rights Reserved
-----------------------------------------------------------------
Extract backup image successfully. |
...
Code Block |
---|
machadmin -w backup_file |
Code Block |
---|
|
mach@localhost:~$ machadmin -w 'backup'
-----------------------------------------------------------------
Machbase Administration Tool
Release Version - 5.1.9.community
Copyright 2014, MACHBASE Corp. or its subsidiaries
All Rights Reserved
-----------------------------------------------------------------
Display information of backup image file.
--------------------------------------------------------------
File name - mach_backup_19700101090000_20150805092853_1
Create time - 2015-08-04 15:35:56
Data duration - 1970-01-01 09:00:00 ~ 2015-08-05 09:28:53
Backup duration - 2015-08-05 09:28:53 ~ 2015-08-05 09:28:53
Version - DB(4.0) Meta(2.0) CM(1.5)
----------------------------------------------------------------- |
...
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). |
...
Code Block |
---|
machadmin -t license_file
|
Example:
Code Block |
---|
|
mach@localhost:~$ machadmin -t license.dat
-----------------------------------------------------------------
Machbase Administration Tool
Release Version - 5.1.9.community
Copyright 2014, MACHBASE Corp. or its subsidiaries
All Rights Reserved
-----------------------------------------------------------------
License installed successfully. |
...
Code Block |
---|
|
mach@localhost:~$ machadmin -f
-----------------------------------------------------------------
Machbase Administration Tool
Release Version - 5.1.9.community
Copyright 2014, MACHBASE Corp. or its subsidiaries
All Rights Reserved
-----------------------------------------------------------------
INFORMATION
Install Date : 2018-12-20 11:34:43
Company#ID-ProjectName : machbase
License Policy : CORE
License Type(Version 2) : OFFICIAL
Host ID : FFFFFFFFFFFFFFF
Issue Date : 2013-03-25
Expiry Date : 2037-03-18
Max Data Size For a Day(GB) : 0
Percentage Of Data Addendum(%) : 0
Overflow Action : 0
Overflow Count to Stop Per Month : 0
Stop Action : 0
Reset Flag : 0
-----------------------------------------------------------------
STATUS
Usage Of Data(GB) : 0.000000
Previous Checked Date : 2018-12-22
Violation Count : 0
Stop Enabled : 0
-----------------------------------------------------------------
License information displayed successfully. |
...