Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

마크베이스 서버를 시작, 종료하거나 생성, 삭제 및 실행 상태를 체크하기 위해서는 machadmin을 사용한다.

옵션 및 기능

...

machadmin is used to start up or shut down the Machbase server and to check the creation, deletion, and execution status.

Option and Features

The options for machadmin are as follows. The functions described in the previous installation section are omitted.



Code Block
mach@localhost:~$ machadmin -h


옵션설명
-u, --startup/ --recovery[=simple,complex,reset]
마크베이스 서버 시작/ 복구
Machbase server startup/recovery mode (
기본
default: simple)

-s, --shutdown

마크베이스 서버 정상 종료

Machbase server shuts down  normally

-c, --createdb
마크베이스 데이터베이스 생성

Creates Machbase database

-d, --destroydb
마크베이스 데이터베이스 삭제

Deletes Machbase database

-k, --kill
마크베이스 서버 강제 종료

Force quits Machbase server

-i, --silence
출력 없이 실행

Runs without output

-r, --restore
백업에서 데이터베이스 복구

Recovers database from backup

-x, --extract
백업 파일을 백업 디렉터리로 변환

Converts backup files to backup directory

-e, --check
마크베이스 서버 실행 체크

Checks Machbase server run status

-t, --licinstall
라이선스 파일 설치

Installs license file

-f, --licinfo
설치된 라이선스 정보 출력

...

Outputs installed license information

Recovery Mode

Syntax:

Code Block
machadmin -u --recovery=[simple | complex | reset]

복구 모드는 다음과 같다.

...


The recovery mode is as follows:

  • simple: If there is no power loss when the server is running, simple recovery mode is run by default

  • complex: The complex recovery

...

  • mode takes longer to execute than the simple mode. It is executed by default when restarting after the power is turned off.

  • reset:

...

  • When recovery is not performed in simple or complex mode, all data in all tables are checked to recover the database. In this case, some loss of data may occur.

Server Normal Shutdown

Example:

Code Block
languagetext
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.

...


Create Database

Example:

Code Block
languagetext
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.

...


Delete Database

Example:

Code Block
languagetext
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.

...

Force to abort  Server

Syntax:

Code Block
machadmin -k

...

Code Block
languagetext
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.

침묵 모드 실행

...

Run Silent Mode

Removes the message that is output when 'machadmin'  runs.

Syntax:

Code Block
machadmin -i

...


Database Recovery

Syntax:

Code Block
machadmin -r backup_database_path

...

Code Block
languagetext
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.

...


Check server is running

Syntax:

Code Block
machadmin -e


서버가 실행중이지 않을 때의 출력 예Example when server is not running:

Code Block
languagetext
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.


서버가 실행중일 때의 출력 예Example when server is running:

Code Block
languagetext
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).

...

Install License File

Syntax:

Code Block
machadmin -t license_file

...

Code Block
languagetext
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.

...


Check License

Example:

Code Block
languagetext
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.

...