CoraDB Manager Server (CMS)
The CoraDB Manager Server (CMS) runs on the database host and lets administration clients manage databases and brokers remotely, with its own users and permissions. It is controlled with coradb manager.
Starting CMS
Section titled “Starting CMS”The following example shows how to start CMS.
% coradb manager startThe following message is returned if CMS is already running.
% coradb manager start@ coradb manager server start++ coradb manager server is running.Stopping CMS
Section titled “Stopping CMS”The following example shows how to stop CMS.
% coradb manager stop@ coradb manager server stop++ coradb manager server stop: successCMS log
Section titled “CMS log”The logs of CMS are stored in the log/manager directory under the installation directory. There are four types of log files depending on server process of CMS.
- auto_backupdb.log: Backup log about the backup-automated jobs which was scheduled through CMS
- auto_execquery.log: Execution log about the query-automated jobs which was scheduled through CMS
- cora_js.access.log: Access log regarding the successful logins and tasks in CMS.
- cora_js.error.log: Access log regarding the failed logins and tasks in CMS.
Configuring CMS
Section titled “Configuring CMS”The configuration file name for CMS is cm.conf and located in the $CORADB/conf directory. In the CMS configuration file, where parameter names and values are stored, comments are prefaced by "#." Parameter names and values are separated by spaces or an equal sign (=).
This page describes parameters that are specified in the cm.conf file.
cm_port
cm_port is a parameter used to configure a communication port for the connection between CMS and the client. The default value is 8001 .
monitor_interval
monitor_interval is a parameter used to configure the monitoring interval of cora_auto in seconds. The default value is 5 .
allow_user_multi_connection
allow_user_multi_connection is a parameter used to have multiple client connections allowed to CMS. The default value is YES . Therefore, more than one CMS client can connect to CMS, even with the same user name.
server_long_query_time
server_long_query_time is a parameter used to configure delay reference time in seconds when configuring slow_query which is one of server diagnostics items. The default value is 10 . If the execution time of the query performed on the server exceeds this parameter value, the number of the slow_query parameters will increase.
auto_job_timeout
auto_job_timeout is a parameter used to configure timeout of auto job for cora_auto. The default value is 43200 (12 hour).
mon_cora_auto
mon_cora_auto is a parameter used to allow cora_js to restart cora_auto process when cora_auto is not running or not. The default value is NO.
token_active_time
token_active_time is a parameter used to configure timeout of token. The default value is 7200 (2 hour).
support_mon_statistic
support_mon_statistic is a parameter used to configure monitoring statistic of system or not. The default value is NO.
cm_process_monitor_interval
cm_process_monitor_interval is an interval time for collecting statistics. The default and the minimum value is 5 (5 minutes).
Manager user management console
Section titled “Manager user management console”Manager users log in to CMS; they are separate from database users. cm_admin is the command-line tool that manages them, available on Linux only.
cm_admin <utility_name><utility_name>: adduser [<option>] <cmuser-name> <cmuser-password> --- Adds a manager user deluser <cmuser-name> --- Deletes a manager user viewuser [<cmuser-name>] --- Displays manager user information changeuserauth [<option>] <cmuser-name> --- Changes the manager user authority changeuserpwd [<option>] <cmuser-name> --- Changes the manager user password adddbinfo [<option>] <cmuser-name> <database-name> --- Adds database information of the manager user deldbinfo <cmuser-name> <database-name> --- Deletes database information of the manager user changedbinfo [<option>] <database-name> number-of-pages --- Changes database information of the manager userManager users
Information about manager users consists of the following:
- Manager user authority: Includes the following information.
- The permission to configure broker
- The permission to create a database. For now, this authority is only given to the admin user.
- The permission to monitor status
- Database information: A database that a manager user can use
- Manager user password
The default manager user is admin and its password is admin. Users who has admin authority have full administrative controls.
Adding manager users
The cm_admin adduser utility creates a manager user who has been granted a specific authority and has database information. The permissions to configure broker, create a database, and monitor status can be granted to the manager user.
cm_admin adduser [options] cmuser-name cmuser-password- cm_admin: The utility that manages the users of CMS
- adduser: A command to create a new manager user
- cmuser-name: Specifies a unique name to a manager user. Usable characters are 0
9, AZ, a~z and _. Minimum length is 4 and maximum length is 32. If the specified name in cmuser-name is identical to the existing one, cm_admin will stop creating a new manager user. - cmuser-password: A password of a manager user. Usable characters are 0
9, AZ, a~z and _. Minimum length is 4 and maximum length is 32.
The following is [options] of cm_admin adduser.
Specifies the broker authority which will be granted to a new manager user.
You can use admin, none (default), and monitor as AUTHORITY
The following example shows how to create a manager user whose name is testcm and password is testcmpwd and then configure broker authority to monitor.
cm_admin adduser -b monitor testcm testcmpwdSpecifies the authority to create a database which will be granted to a new manager user.
You can use none (default) and admin as AUTHORITY.
The following example shows how to create a manager user whose name is testcm and password is testcmpwd and then configure database creation authority to admin.
cm_admin adduser -c admin testcm testcmpwdSpecifies the authority to monitor status which will be granted to a new manager user. You can use admin, none (default), and monitor as AUTHORITY
The following example shows how to create a manager user whose name is testcm and password is testcmpwd and then configure monitoring authority to admin.
cm_admin adduser -m admin testcm testcmpwdSpecifies database information of a new manager user. The format of INFO_STRING must be "<dbname>;<uid>;<broker_ip>,<broker_port>". The following example shows how to add database information "testdb;dba;localhost,30000" to a manager user named testcm .
cm_admin adduser -d "testdb;dba;localhost,30000" testcm testcmpwdDeleting manager users
The cm_admin deluser utility deletes a manager user.
cm_admin deluser cmuser-name- cm_admin: The utility that manages the users of CMS
- deluser: A command to delete an existing manager user
- cmuser-name: The name of a manager user to be deleted
The following example shows how to delete a manager user named testcm.
cm_admin deluser testcmDisplaying manager user information
The cm_admin viewuser utility displays information of a manager user.
cm_admin viewuser cmuser-name- cm_admin: The utility that manages the users of CMS
- viewuser: A command to display the manager user information
- cmuser-name: A manager user name. If this value is entered, information only for the specified user is displayed; if it is omitted, information for all manager users is displayed.
The following example shows how to display information of a manager user named testcm .
cm_admin viewuser testcmThe information will be displayed as follows:
CM USER: testcm Auth info: broker: none dbcreate: none statusmonitorauth: none DB info: ========================================================================================== DBNAME UID BROKER INFO ========================================================================================== testdb dba localhost,30000Changing the authority of manager users
The cm_admin changeuserauth utility changes the authority of a manager user.
cm_admin changeuserauth options cmuser-name- cm_admin: The utility that manages the users of CMS
- changeuserauth: A command to change the authority of a manager user
- cmuser-name: The name of a manager user whose authority to be changed
The following is [options] of cm_admin changeuserauth.
Specifies the broker authority that will be granted to a manager user. You can use admin, none, and monitor as AUTHORITY.
The following example shows how to change the broker authority of a manager user named testcm to monitor.
cm_admin changeuserauth -b monitor testcmSpecifies the authority to create a database which will be granted to a manager user. You can use admin and none as AUTHORITY .
The following example shows how to change the database creation authority of a manager user named testcm to admin.
cm_admin changeuserauth -c admin testcmSpecifies the authority to monitor status which will be granted to a manager user. You can use admin, none, and monitor as AUTHORITY.
The following example shows how to change the monitoring authority of a manager user named testcm to admin.
cm_admin changeuserauth -m admin testcmChanging the manager user password
The cm_admin changeuserpwd utility changes the password of a manager user.
cm_admin changeuserpwd [options] cmuser-name- cm_admin: The utility that manages the users of CMS
- changeuserpwd: A command to change the password of a manager user
- cmuser-name: The name of a manager user whose password to be changed
The following is [options] of cm_admin changeuserpwd.
Specifies the existing password of a manager user.
The following example shows how to change a password of a manager user named testcm .
cm_admin changeuserpwd -o old_password -n new_password testcmThe password of an admin user can be specified instead of old manager user's password that you don't know.
The following example shows how to change a password of a manager user named testcm by using an admin password.
cm_admin changeuserauth --adminpass admin_password -n new_password testcmSpecifies a new password of a manager user.
Adding database information to manager users
The cm_admin adddbinfo utility adds database information (database name, UID, broker IP, and broker port) to a manager user.
cm_admin adddbinfo options cmuser-name database-name- cm_admin: The utility that manages the users of CMS
- adddbinfo: A command to add database information to a manager user
- cmuser-name: manager user name
- database-name: The name of a database to be added
The following example shows how to add a database without specifying any user-defined values to a manager user named testcm .
cm_admin adddbinfo testcm testdbThe following is [options] of cm_admin adddbinfo.
Specifies the ID of a database user to be added. The default value is dba.
The following example shows how to add a database whose name is testdb and user ID is coradbuser to a manager user named testcm.
cm_admin adddbinfo -u coradbuser testcm testdbSpecifies the host IP of a broker used when clients access a database. The default value is localhost.
The following example shows how to add a database whose name is testdb and the host IP of is 127.0.0.1 to a manager user named testcm.
cm_admin adddbinfo -h 127.0.0.1 testcm testdbSpecifies the port number of a broker used when clients access a database. The default value: 30000.
Deleting database information from manager users
The cm_admin deldbinfo utility deletes database information of a specified manager user.
cm_admin deldbinfo cmuser-name database-name- cm_admin: The utility that manages the users of CMS
- deldbinfo: A command to delete database information of a manager user
- cmuser-name: manager user name
- database-name: The name of a database to be deleted
The following example shows how to delete database information whose name is testdb from a manager user named testcm.
cm_admin deldbinfo testcm testdbChanging database information of a manager user
The cm_admin changedbinfo utility changes database information of a specified manager user.
cm_admin changedbinfo [options] cmuser-name database-name- cm_admin: The utility that manages the users of CMS
- changedbinfo: A command to change database information of a manager user
- cmuser-name: manager user name
- database-name: The name of a database to be changed
The following is [options] of cm_admin changedbinfo.
Specifies the ID of a database user.
The following example shows how to update user ID information to uid in the testdb database which belongs to a manager user named testcm .
cm_admin changedbinfo -u uid testcm testdbSpecifies the host of a broker used when clients access a database.
The following example shows how to update host IP information to 10.34.63.132 in the testdb database which belongs to a manager user named testcm .
cm_admin changedbinfo -h 10.34.63.132 testcm testdbSpecifies the port number of a broker used when clients access a database.
The following example shows how to update broker port information to 33000 in the testdb database which belongs to a manager user named testcm .
cm_admin changedbinfo -p 33000 testcm testdb