Versions Compared

Key

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

...

Code Block
mach@localhost:~$ machadmin -h


옵션Options설명Describe
-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

...