Quantcast
Channel: CUBRID | Enterprise Open Source DBMS
Viewing all 3623 articles
Browse latest View live

2013-05-16 CUBRID Manager Server Patch

$
0
0

Supported CUBRID Engine version:

  • CUBRID 8.4.1
  • CUBRID 8.4.3
  • CUBRID 9.1

Changes:

TOOLS-2964 - Improve to support running multiple auto-task and restarting cub_auto process

 

How to Upgrade:

1. Download a new patch according to your CUBRID Engine version and OS from http://ftp.cubrid.org/CUBRID_Tools/CUBRID_Manager_Server/

  • CUBRID Manager Server 8.4.1 build 1169
  • CUBRID Manager Server 8.4.3 build 0035
  • CUBRID Manager Server 9.1 build 0021

2. Stop CUBRID manager process using the following command:

> cubrid manager stop
@ cubrid manager server stop
++ cubrid manager server stop: success

 

3. Add two configuration items to %CUBRID%/conf/cm.conf.( Screenshot )

auto_job_timeout 43200
mon_cub_auto yes

 

4. Replace %CUBRID%/bin/cub_auto.exe and %CUBRID%/bin/cub_js.exe with the files in the patch package.

In Linux, replace $CUBRID/bin/cub_auto and $CUBRID/bin/cub_js with the files in the patch package.

 

5. Start CUBRID manager process using the following command:

> cubrid manager start
@ cubrid manager server start
++ cubrid manager server start: success

 

NOTE:

The following parameteres were newly added:
- auto_job_timeout: Auto jobs execution timeout (sec)
Default value: 43200 (12 hours) , Minimum value: 60

- mon_cub_auto: Allowing cub_js to restart cub_auto process, if cub_auto is not running.
Default value: NO

Known Issue:

When cub_auto process starts an auto job, it will start another process to execute a shell command of the auto job, and wait the command to return.

Now in the patches, the cub_auto will start a thread, then the thread will start another process to execute the shell command. When cub_auto process finds the thread executing too long (exceed the max executing time), the cub_auto will cancel the thread. But it can't cancel the process which executing the shell command, so the shell command process only can exit when the command is finished. The max executing time is very long (The default value is 12 hours), so the cancel operation is rarely happened. And mostly, the command process will execute successfully. But the success information of auto job can't be logged. And there is one potential problem exist, if the auto job was a period job, and the shell command was hung up by some unkown reason, the command process can't exit. As time goes, the will be a lot of such kind of processes. This issue will be solved in the future version of CUBRID Manager service.


2013-08-01 CUBRID Manager Server Patch

$
0
0

Supported CUBRID Engine version:

  • CUBRID 8.4.3
  • CUBRID 9.1

Changes:

TOOLS-3393 CM API "exportdb" improvement: specify the export path and file name on server.

TOOLS-3425 8003 should be replaced by "DEFAULT_CMS_PORT + 1" in cm_cci_interface.cpp

How to Upgrade:

1. Download a new patch according to your CUBRID Engine version and OS from http://ftp.cubrid.org/CUBRID_Tools/CUBRID_Manager_Server/

  • CUBRID Manager Server 8.4.3 build 0036
  • CUBRID Manager Server 9.1 build 0022

2. Stop CUBRID manager process using the following command:

> cubrid manager stop
@ cubrid manager server stop
++ cubrid manager server stop: success

 

3. Copy CUBRID\bin\cub_cmserver.exe and CUBRID\bin\cub_js.exe in patch to %CUBRID%\bin\, replacing the original cub_cmserver.exe and cub_js.exe file.

In Linux, Copy CUBRID/bin/cub_cmserver and CUBRID/bin/cub_js in patch to $CUBRID/bin/, replacing the original cub_cmserver and cub_js file.

 

4. Copy CUBRID\share\webmanager in patch to %CUBRID%\share\, replacing the original webmanager directory.

In Linux,  Copy CUBRID/share/webmanager in patch to $CUBRID/share/, replacing the original webmanager directory.

 

5. Start CUBRID manager process using the following command:

> cubrid manager start
@ cubrid manager server start
++ cubrid manager server start: success

 

Note:

Please close web manager in your browser before patching, otherwise maybe some unpredictable errors will happen.

 

Known Issue:

If user used exportdb to exprot database for many times, the exported files would store in $CUBRID/share/webmanager/files forever until free disk being 0. CMS should give a validating machanism to check free disk is enough or not. This issue should be fixed in next cms version.

cms-release-notes

$
0
0

CUBRID Manager Server Release


CUBRID Manager Server Patch

  • 2013-08-01 CUBRID Manager Server Patch

    Description

    Solve a security issue in exportdb interface, avoiding a user takes advatage of this to attack CUBRID server.

    Relevant Issue

    TOOLS-3393 CM API "exportdb" improvement: specify the export path and file name on server.
    TOOLS-3425 8003 should be replaced by "DEFAULT_CMS_PORT + 1" in
     cm_cci_interface.cpp 

    [2013-08-01 CUBRID Manager Server Patch|Release Note Page]


  • 2013-05-16 CUBRID Manager Server Patch

    Description

    Add a fucntion to monitor the cub_auto process and make auto-task concurrent. 

    Relevant Issue

    TOOLS-2964 - Improve to support running multiple auto-task and restarting cub_auto process.

    [2013-05-16 CUBRID Manager Server Patch|Release Note Page]

CUBRID Tools Wiki

$
0
0

CUBRID Tools projects

  • cm-logo.png [CUBRID Manager] (CM) is the most powerful database administration tool developed with DBAs in mind. It has a convenient and intuitive Graphical User Interface (GUI) and provides powerful tools to manage the databases, brokers, execute queries and view their results, and many more.

    Download recent version  |  [CUBRID Manager Manual|Manual]

  • cqb-logo.png [CUBRID Query Browser] (CQB) is the lightweight version of the CUBRID Manager. It is implemented with developers in mind who need a faster solution to execute SQL statements, both standard and prepared, and manage tables more conveniently.

    Download recent version  |  [CUBRID Query Browser Manual|Manual]

  • cmt-logo.png [CUBRID Migration Toolkit] (CMT) is a software tool which allows to migrate data from MySQL/Oracle/CUBRID (previous versions) to CUBRID Database Server.

    Download recent version  |  [CUBRID Migration Toolkit Manual|Manual]

  • CUBRID Logo [CUBRID Web Manager] (CWM) is the most powerful web-based database administration tool developed for CUBRID DBAs. It has a convenient and intuitive Web-based Graphical User Interface (GUI) and provides powerful features to manage databases, brokers, execute queries, monitor performance and many more.

    Download recent version  |  [CUBRID Web Manager Manual|Manual]

  • CUBRID Logo [CUBRID ALL-IN-ONE Windows Downloader] is an application created to help users to easily download any CUBRID components: engine, drivers and tools. All you have to do is to select the components you want to download on your machine and this application will download them for you, one by one, without any other actions required.

    Download recent version

  • cm-logo.png[CUBRID Manager Server] (CMS) is a server-side component which communicates with CUBRID Manager (CM) and [CUBRID Web Manager](CWM).  It provides HTTP interface to manage and monitor CUBRID Engine for almost all needs which can be thought of.

    [CMS Interfaces |CMS Interfaces]

Which tool do I need?

ProductsTarget users
CUBRID Manager DBAs who need to connect to a host and manage multiple databases.
CUBRID Query Browser Developers who want to connect to and access one database.
CUBRID Migration Toolkit Users who need to migrate schema and data from MySQL/CUBRID to CUBRID.
CUBRID Web Manager Users who want to manage hosts and databases through a Web interface.

[cubrid-tools-work-log_kr|CUBRID Tools work logs (Korean)]

CUBRID Manager Server

$
0
0

CUBRID Manager Server (CMS) is a server-side component which communicates with [CUBRID Manager] (CM) and [CUBRID Web Manager](CWM), the most powerful tool to manage the CUBRID Databases. CUBRID Mananger server(CMS) is a sub-system of CUBRID engine package and works independently from CUBRID engine and Broker processes. It provides both HTTP and socket interface to manage and monitor CUBRID Engine for almost all needs which can be thought of.

  • [CMS Key features | Key features]
  • [CMS long term objective | CMS long term objective]
  • [CMS build and install | How to build and install CMS]
  • [CMS Socket Interface | CMS Socket Interface]
  • [CMS HTTP Interface | CMS HTTP Interface]
  • [CMS Interfaces | CMS Interfaces]
  • Questions and Answers
  • Release process ([Process of CUBRID tools development and release_kr|한글])
  • Release Notes ([cms-release-notes|English])
  • Online Manual([cms-online-manual|English])
  • CMS JIRA Issue Tracker
  • CMS Dev Repository

Scripting Guide

$
0
0

nGrinder 3.2 and later supports not only Jython but also Groovy as scripting language. If you want to know about Groovy scripting, please refer [Groovy Script]


More practical ways for the advanced nGrinder user are... 
  • Do you want to know what script types nGrinder supports?
    • [Jython Script Structure]
    • [Groovy Script Structure]
  • Do you miss the sample script for groovy?
    • [Groovy Script Snippet]
  • Do you want to ramp-up more precisely? 
    • [How to ramp up by threads]
  • Do you need a custom dns entry? Need to change the /etc/hosts file in the agents? You can configure target host fields for this. You don't need root permission in agent machines.
    • [How to change DNS]
  • Do you need to use your own jar or py? Read followings. 
    • [How to use library]
  • Do you need to load your own xml or txt file? Read followings. 
    • [How to use resources]
  • Do you need to simulate the multiple user scenario in the different run weight?
    • [How to run the multiple tests with different weight]
    • [How to run the multiple tests with different weight - Groovy Way]
  • Do you need to adjust the logger level to only see the errors? Read followings.
    • [How to adjust logger level]
  • Do you need to test DB performance? Doesn't nGrinder seems to support this? No.. You can still test it with nGrinder
    • [Using nGrinder to perform db load test]
  • Do you need to parse data retrieved from server? 
    • [How to parse JSON]
    • [How to parse XML]
  • Do you need to define your own statistic? 
    • [User defined statistic in ngrinder]
  • Do you cope with the big response like movie or file download?
    • [How to handle the big response]
  • Do you need you test a socket.io app?




nGrinder DevZone

$
0
0

ngrinder_logo.png

nGrinder (pronounced as en-g-ra-in-der) is a stress tests platform that enables you to create test scripts, execute tests, monitor target servers and generate results simultaneously. The open-source nGrinder offers easy ways to conduct stress tests by eliminating inconveniences and providing integrated environments. It uses the renowned performance test tool, The Grinder, as its internal engine.

This is the tool developed by the service provider who really runs frequent load testing not by tool vendor. A breakthrough feature of nGrinder 3.X is support for concurrent tests which means that multiple users can run different tests at the same time! And it's cloud friendly and has attractive interface !

nGrinder is being developed by NHN Korea and NHN China together.

 

  • Official Home Page
  • [Architecture]
  • [Screen Shot]
  • [Guide]
    • [Installation Guide]
    • [Admin Guide]
    • [User Guide]
    • [Scripting Guide]
    • Recorder Guide
  • [Presentations]
  • [Professional Service]
  • [nGrinder Release Notes|Release Notes]
  • Downloads
  • [Road Map]
  • [Dev Document]
  • Mailing List
  • Issue Tracker
  • [Frequently Asked Question]
  • [How to Use Windows LiveWriter in nGrinder wiki|Wiki Guide]
  • [Who uses nGrinder]
  • [Help nGrinder]

Installation Guide

$
0
0

Prerequisite

nGrinder is a combination of a web application(Controller) and a Java application(Agent).

  • To install nGrinder controller, you need to first have Oracle JDK 1.6 and Tomcat 6.X or later.
    • We don't support OpenJDK yet.
    • We don't support IP6
  • To install nGrinder agent, all you need is Oracle JDK 1.6
    • We don't support OpenJDK yet.
    • We don't support IP6

If you installed 32bit JVM on your 64bit OS. nGrinder won't work.

If you don’t know what a controller and agent are, please refer to [Architecture].

If you like to install nGrinder in Windows XP, please refer link.

Please check your PATH environment variable if your java path is located at the head of PATH so that appropriate java can be run.

  • http://www.youtube.com/watch?v=6q0X_pEWA6U (Youtube video for Windows XP)

Download

 

Install Controller

  1. Please be sure that you configured PATH and JAVA_HOME in advance.
  • There are a lot of questions which comes from wrong PATH configuration. You should put java path in the head of PATH env var.
  • For example, in windows it should be set as C:\Program Files\Java\Your java Version\bin;BlarBlar...
  • Installing Controller can be done easily, simply by dropping nGrinder's controller war file in the ${TOMCAT_HOME}/webapps folder.
    • If you're not familiar with Tomcat, just download the nGrinder 3.1package bundled with Tomcat.
  • After dropping it into the folder, please add following option in tomcat's  ${TOMCAT_HOME}/catalina.sh(linux) or catalina.bat(windows) file. nGrinder controller has heavy library requirements so you need to have sufficient PermGem memory.
    JAVA_OPTS="-Xms600m -Xmx1024m -XX:MaxPermSize=200m"    # for catalina.sh
    set JAVA_OPTS=-Xms600m -Xmx1024m -XX:MaxPermSize=200m   # for catalina.bat
  • Please check if you configured the correct host name and ip mapping.

     $ hostname
    dev-ngrinder-abnormal.ncl
    $ ping dev-ngrinder-abnormal.ncl
    PING dev-ngrinder-abnormal.ncl.nhnsystem.com (10.101.55.46) 56(84) bytes of data
    # In above, the host name is dev-ngrinder-abnormal.ncl and is mapped to 10.101.55.44.
    # If you see the loopback address like (127.0.0.1), you should modify /etc/hosts 
    # to make it map into real ip.

  • Then run tomcat using startup.sh(linux) or, startup.bat(windows).
  • Now, access nGrinder using web browser. http://hostname:8080/ngrinder-controller  That’s it! You’re ready to use nGrinder.
    • If you want to access ngrinder without any path other than hostname(e.g :http://yourdnsname/), you need to change the name of the war file to ROOT.war.
    • If you want to access ngrinder with port 80, you should configure ${TOMCAT_HOME}/conf/server.xml

    ※ For more detailed nGrinder controller configuration options, please refer to [Advanced Controller Configuration]

     

    Install Agent

    • From the perspective of nGrinder, Agent is the java application that does the following:
      • When installed on the target server, it can act as a performance monitoring server.
      • When installed on the agent server, it can act as a stress injection server.
    • To configure agents to work as you intend, you need to change some configuration files.
    1. Please make sure that you have installed JDK in your agent machine and provide the JAVA_HOME env variable.
    2. Installing Agents is really simple.  Just download the agent file and decompress it.
      • Windows:  ngrinder-core-{VersionNumber}-agent-package.zip
      • Linux:  ngrinder-core-{VersionNumber}-agent-package.tar.gz
    3. You will find ngrinder-core-{VersionNumber}.jar and several folders.
    4. Navigate to the decompressed folder and run the following command. Please note that you should run this in the folder where the nGrinder agent is installed.
    5. run_agent.sh or run_agent.bat
    6. The agent will then execute and create the .ngrinder_agent folder in your account home.
    7. Then, go to the ${user.home}/.ngrinder_agent folder.
      • Window : C:Users{username}.ngrinder_agent or C:Users{username}.ngrinder_agent
      • Linux : /home/{username}/.ngrinder_agent
    8. Change the following agent.conf file.
      start.mode=agent
      agent.console.ip=please specify your controller IP
      #monitor.listen.port=3243
      #monitor.collector.interval=1
      #monitor.controller.cache.size=128
      #monitor.collector.interval=1
      
      #start.mode=agent
      #agent.console.port=7001
      #If you set up the controller region. please provide the region you use here. #agent.region=
    9. Then run the agent again.
      run_agent.bat (windows) or run_agent.sh & (linux)
    10. Now the agent will try to connect to the server. 
    11. When you shutdown the agent you can run the following commands.
      stop_agent.sh (windows) or stop_agent.bat (linux)
    12. To enable agents, you should approve the connected agents. Please refer to the [Administration Guide]
    • Sometimes, java fails to detect the current IP on some Linux distribution package. So the controller might not connect the agent.
      • Easiest way to fix this is to delete 127.0.0.1 localhost entry in your /etc/hosts and put real_ip and your_hostname pair 

     

    Install Monitor

    1. All you need to do to run monitor is simply run the following command with the same binary as the agent. Nothing else is necessary.
      run_monitor.sh or run_monitor.bat &

    nGrinder Port

    nGrinder uses many ports to communicate with agent and agent. If some ports are blocked by your firewall, you should have the network admin to open the following ports in the firewall.
    • Agent : Any ==> Controller : 16001
    • Agent : Any ==> Controller : 12000 ~ 12000+(the number of concurrent tests allowed)
      • This can be configured.
    • Controller : Any ==> Monitor : 13243
    • Controller ==> Public user : This is dependent on your tomcat configuration. By default, it is set as 8080.

    User Guide

    $
    0
    0

    This page provide the collection of user guides when you access nGrinder with user permission.

    • [Quick Start]
    • [Test Configuration]
      • [Virtual User]
      • [Process and Thread]
      • [How to add custom monitor data]
    • Scripting
      • [Scripting Guide]
      • [Script Security]
      • [Script Management]
    • User
      • [User Permission]
      • [User Account Share]
      • [User Agent]
    • [Recorder]
    • [Frequently Asked Question]
    If you're Korean speaker(한국인), please check   you can check the following resources.
    • [User Guide in Korean]

    get_mon_interval

    $
    0
    0

    Version 9.2.0

     

    Description

    Get the monitoring statistic interval

    Request Json Syntax

     

    Key Description
    task task name
    token token string encrypted.

     

    Request Sample

     

    {
      
      "task":"get_mon_interval",
      
      "token":"4504b930fc1be99bf5dfd31fc5799faaa3f117fb903f397de087cd3544165d857926f07dd201b6aa"
      
      }

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here.
    interval monitoring interval(seconds)

    Response Sample

     

    {
    "task":"get_mon_interval",
    "interval": 60, 
    "status": "success", 
    "note": "none"
    }

    set_mon_interval

    $
    0
    0

    Version 9.2.0

     

    Description

    Set the monitoring statistic interval

    Request Json Syntax

     

    Key Description
    task task name
    token token string encrypted.
    interval monitoring interval(seconds)

     

    Request Sample

     

    {
      
      "task":"startinfo",
      
      "token":"4504b930fc1be99bf5dfd31fc5799faaa3f117fb903f397de087cd3544165d857926f07dd201b6aa",

      "interval": 60
      
      }

     

    Response Json Syntax

     

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here

    Response Sample

     

    {
    "task":"set_mon_interval",
    "status": "success",
    "note": "none"
    }

    get_mon_statistic

    $
    0
    0

    Version 9.2.0

     

    Description

    Get mornitoring statistic data.

    Request Json Syntax

    Get DB monitoring statistic data(HA monitoring data is included)

    Key Description
    task task name
    token token string encrypted
    metric the metric of DB. the value should be "db_cpu_kernel", "db_cpu_user", "db_mem_phy", "db_mem_vir", "db_qps", "db_tps", "db_hit_ratio",   "db_fetch_pages", "db_dirty_pages", "db_io_read", "db_io_write", "db_ha_copy_delay_page", "db_ha_copy_delay_estimated",  "db_ha_apply_delay_page", "db_ha_apply_delay_estimated" and "db_freespace" 
    dtype data type. daily, weekly, monthly or yearly
    dbname database name

     

    Get Broker monitoring statistic data

    Key Description
    task task name
    token token string encrypted
    metric the metric of DB. the value should be "broker_tps", "broker_qps", "broker_long_t", "broker_long_q", "broker_req", "broker_err_q" and "broker_jq"
    dtype data type. daily, weekly, monthly or yearly
    bname broker name

     

    Get DB Volume monitoring statistic data

    Key Description
    task task name
    token token string encrypted
    metric the metric of DB. the value should be "vol_freespace"
    dtype data type. daily, weekly, monthly or yearly
    dbname database name
    volname database volume name

     

    Get os monitoring statistics data

    Key Description
    task task name
    token token string encrypted
    metric the metric of DB. the value should be "os_cpu_idle", "os_cpu_iowait", "os_cpu_user", "os_mem_phy_free", "os_mem_swap_free" and "os_disk_free"
    dtype data type. daily, weekly, monthly or yearly

     

    Request Sample

    Get DB monitoring statistic data(HA monitoring data is included)

    {
      
      "task":"get_mon_statistic",
      
      "token":"4504b930fc1be99bf5dfd31fc5799faaa3f117fb903f397de087cd3544165d857926f07dd201b6aa",

      "metric": "db_hit_radio", 
      
      "dbname": "db1"
      
      }

     

    Get Broker monitoring statistic data

    {
      "task": "get_mon_statistic",

      "metric":"broker_long_t",

      "dtype": "monthly", 

      "bname": "broker1",

      "token": "xxxxxxx"
    }

     

    Get DB Volume monitoring statistic data

     

    {
      "task":"get_mon_statistic",

      “metric”:”vol_freespace”,

      “dtype”:”yearly”,

      “dbname”:”db1”,

      “volname”:”testdb”,

       "token":"xxxxxxx"
    }

     

    Get os monitoring statistics data

     

    {
      "task":"get_mon_statistic",

      “metric”:”os_cpu_user”,

      “dtype”:”weekly",

       "token":"xxxxxxx"
    }

     

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here
    dbname database name
    bname database broker name
    data an interge array of monitoring data
    dtype data type. daily, weekly, monthly or yearly
    metric The metric of database, broker, volume or host

    Response Sample

     

    {
      "task":"get_mon_statistic",

      “metric”:”broker_long_t”,

      “dtype”:”monthly”, 

      “bname”:”broker1”,

      “status”: “success”,

      “note”:”none”,

      “data”:[11,17,23,42,24,12,15…]
    }

    monitorprocess

    $
    0
    0

    Version 9.2.0

     

    Description

    Monitor CMS process status.

     

    Request Json Syntax

    Key Description
    task list_dir
    token token string encrypted.

     

    Request Sample

    {
        "task":"monitorprocess",
        "token":"4504b930fc1be99bf5dfd31fc5799faaa3f117fb903f397de087cd3544165d857926f07dd201b6aa",
    }

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here
    cub_master the value should be "exist" or "don't exist" in order to indicate whether this process exists.

    Response Sample

    {
       "cub_master" : "don't exist",
       "note" : "none",
       "status" : "success",
       "task" : "monitorprocess"
    }

    gethaapplyinfo

    $
    0
    0

    Version 9.2.0

     

    Description

    Get copylog and apply log operations information

     

    Request Json Syntax

    Key Description
    task task name
    token token string encrypted.
    dbname database name
    copylogpath ha_copy log file path
    remotehostname remote host name

     

    Request Sample

    {
    "task":"gethaapplyinfo",
    "token":"8ec1ab8a91333c789ca635659ff41d6887cec4cd14324d3baee6412d6bbc1277e3e8c307e2088d187926f07dd201b6aa7926f07dd201b6aa7926f07dd201b6aa", 
    "dbname":"ha_testdb", 
    "copylogpath":"/home/huangqiyu/cubrid_8.4.3/databases/ha_testdb_DEV_92/", 
    "remotehostname":"DEV_92" 
    }

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here
    applyinglog_count the number of applylog pages
    applyinglog_estimated_time estimated time of applylog operation
    copyinglog_count the number of copylog pages
    copyinglog_estimated_time estimated time of copylog operation

    Response Sample

    {
       "applyinglog_count" : "0",
       "applyinglog_estimated_time" : "",
       "copyinglog_count" : "0",
       "copyinglog_estimated_time" : "",
       "note" : "none",
       "status" : "success",
       "task" : "gethaapplyinfo"
    }

    adddbmtuser_new

    $
    0
    0

    Version 9.2.0

     

    Description

    Add CM/CWM user information

     

    Request Json Syntax

    Key Description
    task task name
    token token string encrypted.
    targetid user name
    password user password
    dbauth a list of databases which is taken in charge by this user
    authoritylist the authorities granted to this user, including dbo,brk,mon,job,var,dbc and admin

     

    Request Sample

    {"task":"adddbmtuser_new",
     "token":"...",
     "password":"1234567",
     "targetid":"hqy_admin280",
     "dbauth":
     [
     {"dbname":"db_3","dbid":"dba","dbpassword":"", "dbbrokeraddress":"localhost, 33000"}, 
     { "dbname":"db_5", "dbid":"dba", "dbpassword":"", "dbbrokeraddress":"localhost, 33000"}
     ],
     "authoritylist":
     {
     "dbc":"yes", "dbo":"no", "brk":"no", "mon":"no", "job":"no", "var":"yes"
     } 
     }

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here
    dblist a list of databases which is taken in charge by this user
    dbname database name
    userlist the list path
    user user information list
    id user name
    auth_info authority information
    dbid database dba id
    dbbrokerport broker port
    user_auth a value indicating user authorities
    authority_list the authorities granted to this user, including dbo,brk,mon,job,var,dbc and admin

    Response Sample

    {
         "dblist" : [
            {
               "dbs" : [
                  {
                     "dbname" : "demodb"
                  }
               ]
            }
         ],
         "note" : "none",
         "status" : "success",
         "task" : "adddbmtuser_new",
         "userlist" : [
            {
               "user" : [
                  {
                     "@id" : "admin",
                     "authority_list" : [ null ],
                     "dbauth" : [
                        {
                           "auth_info" : [
                              {
                                 "@dbid" : "dba",
                                 "dbbrokeraddress" : "10.34.135.62,30000",
                                 "dbname" : "demodb"
                              }
                           ]
                        }
                     ],
                     "user_auth" : "admin"
                  },
                  {
                     "@id" : "hqy_admin225",
                     "authority_list" : [
                        {
                           "brk" : "yes",
                           "dbc" : "no",
                           "dbo" : "yes",
                           "job" : "no",
                           "mon" : "no",
                           "var" : "no"
                        }
                     ],
                     "dbauth" : [
                        {
                           "auth_info" : [
                              {
                                 "@dbid" : "dba",
                                 "dbbrokeraddress" : "localhost, 33000",
                                 "dbname" : "db_3"
                              },
                              {
                                 "@dbid" : "dba",
                                 "dbbrokeraddress" : "localhost, 33000",
                                 "dbname" : "db_5"
                              }
                           ]
                        }
                     ],
                     "user_auth" : "6"
                  }
               ]
            }
         ]
      }

    updatedbmtuser_new

    $
    0
    0

    Version 9.2.0

     

    Description

    Update CM/CWM user information

     

    Request Json Syntax

    Key Description
    task task name
    token token string encrypted.
    targetid user name
    password user password
    dbauth a list of databases which is taken in charge by this user
    authoritylist the authorities granted to this user, including dbo,brk,mon,job,var,dbc and admin

     

    Request Sample

    {"task":"updatedbmtuser_new",
    "token":"...",
    "password":"1234567",
    "targetid":"hqy_admin280",
    "dbauth":
    [
    {"dbname":"db_3","dbid":"dba","dbpassword":"", "dbbrokeraddress":"localhost, 33000"}, 
    { "dbname":"db_5", "dbid":"dba", "dbpassword":"", "dbbrokeraddress":"localhost, 33000"}
    ],
    "authoritylist":
    {
    "dbc":"yes", "dbo":"no", "brk":"no", "mon":"no", "job":"no", "var":"yes"

    }

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here
    dblist a list of databases which is taken in charge by this user
    dbname database name
    userlist the list path
    user user information list
    id user name
    auth_info authority information
    dbid database dba id
    dbbrokerport broker port
    user_auth a value indicating user authorities
    authority_list the authorities granted to this user, including dbo,brk,mon,job,var,dbc and admin

    Response Sample

    {
        "dblist" : [
           {
              "dbs" : [
                 {
                    "dbname" : "demodb"
                 }
              ]
           }
        ],
        "note" : "none",
        "status" : "success",
        "task" : "updatedbmtuser_new",
        "userlist" : [
           {
              "user" : [
                 {
                    "@id" : "admin",
                    "authority_list" : [ null ],
                    "dbauth" : [
                       {
                          "auth_info" : [
                             {
                                "@dbid" : "dba",
                                "dbbrokeraddress" : "10.34.135.62,30000",
                                "dbname" : "demodb"
                             }
                          ]
                       }
                    ],
                    "user_auth" : "admin"
                 },
                 {
                    "@id" : "hqy_admin225",
                    "authority_list" : [
                       {
                          "brk" : "yes",
                          "dbc" : "no",
                          "dbo" : "yes",
                          "job" : "no",
                          "mon" : "no",
                          "var" : "no"
                       }
                    ],
                    "dbauth" : [
                       {
                          "auth_info" : [
                             {
                                "@dbid" : "dba",
                                "dbbrokeraddress" : "localhost, 33000",
                                "dbname" : "db_3"
                             },
                             {
                                "@dbid" : "dba",
                                "dbbrokeraddress" : "localhost, 33000",
                                "dbname" : "db_5"
                             }
                          ]
                       }
                    ],
                    "user_auth" : "6"
                 }
              ]
           }
        ]
     }

    getdbmtuserinfo_new

    $
    0
    0

    Version 9.2.0

     

    Description

    Get CM/CWM user information

     

    Request Json Syntax

    Key Description
    task task name
    token token string encrypted.

     

    Request Sample

    {
        "task":"getdbmtuserinfo_new",
        "token":"4504b930fc1be99bf5dfd31fc5799faaa3f117fb903f397de087cd3544165d857926f07dd201b6aa"
    }

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here
    dblist a list of databases which is taken in charge by this user
    dbname database name
    userlist the list path
    user user information list
    id user name
    auth_info authority information
    dbid database dba id
    dbbrokerport broker port
    user_auth a value indicating user authorities
    authority_list the authorities granted to this user, including dbo,brk,mon,job,var,dbc and admin

    Response Sample

    {
       "dblist" : [
          {
             "dbs" : [
                {
                   "dbname" : "demodb"
                }
             ]
          }
       ],
       "note" : "none",
       "status" : "success",
       "task" : "adddbmtuser_new",
       "userlist" : [
          {
             "user" : [
                {
                   "@id" : "admin",
                   "authority_list" : [ null ],
                   "dbauth" : [
                      {
                         "auth_info" : [
                            {
                               "@dbid" : "dba",
                               "dbbrokeraddress" : "10.34.135.62,30000",
                               "dbname" : "demodb"
                            }
                         ]
                      }
                   ],
                   "user_auth" : "admin"
                },
                {
                   "@id" : "hqy_admin225",
                   "authority_list" : [
                      {
                         "brk" : "yes",
                         "dbc" : "no",
                         "dbo" : "yes",
                         "job" : "no",
                         "mon" : "no",
                         "var" : "no"
                      }
                   ],
                   "dbauth" : [
                      {
                         "auth_info" : [
                            {
                               "@dbid" : "dba",
                               "dbbrokeraddress" : "localhost, 33000",
                               "dbname" : "db_3"
                            },
                            {
                               "@dbid" : "dba",
                               "dbbrokeraddress" : "localhost, 33000",
                               "dbname" : "db_5"
                            }
                         ]
                      }
                   ],
                   "user_auth" : "6"
                }
             ]
          }
       ]
    }

    createdb

    $
    0
    0

    Version 9.2.0

     

    Description

    Create database.

     

    Request Json Syntax

    Key Description
    task task name
    token token string encrypted.
    dbname database name
    numpage the number of pages
    pagesize the size of each page
    logsize the size of log volume
    genvolpath data volume path
    logvolpath log volume path
    exvol extend volume information
    charset language and charset, ex. en_US.iso88591, ko_KR.utf8. please refer to $CUBRID/conf/cubrid_locales.all.txt

     

    Request Sample

    {
       "task":"createdb",
       "token":"cdfb4c5717170c5e237a227a2ceeccc6ae9e10c16754fb85371c0d74fa0d9d577926f07dd201b6aa",
       "dbname":"alatestdb",
       "numpage":"10240",
       "pagesize":"4096",
       "logsize":"10240",
       "logpagesize":"4096",
       "genvolpath":"$CUBRID_DATABASES/alatestdb",
       "logvolpath":"$CUBRID_DATABASES/alatestdb",
       "exvol":[{"alatestdb_data_x001":"data;100;$CUBRID_DATABASES/alatestdb"}],
       "charset":"en_US.utf8",
       "overwrite_config_file":"YES"
     }

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here

    Response Sample

    {
       "__EXEC_TIME" : "3593 ms",
       "note" : "none",
       "status" : "success",
       "task" : "createdb"
    }


    Version 8.4.1, 8.4.3, 9.1.0

     

    Description

    Create database.

     

    Request Json Syntax

    Key Description
    task task name
    token token string encrypted.
    dbname database name
    numpage the number of pages
    pagesize the size of each page
    logsize the size of log volume
    genvolpath data volume path
    logvolpath log volume path
    exvol extend volume information

     

    Request Sample

    {
      "task":"createdb",
      "token":"cdfb4c5717170c5e237a227a2ceeccc6ae9e10c16754fb85371c0d74fa0d9d577926f07dd201b6aa",
      "dbname":"alatestdb",
      "numpage":"10240",
      "pagesize":"4096",
      "logsize":"10240",
      "logpagesize":"4096",
      "genvolpath":"$CUBRID_DATABASES/alatestdb",
      "logvolpath":"$CUBRID_DATABASES/alatestdb",
      "exvol":[{"alatestdb_data_x001":"data;100;$CUBRID_DATABASES/alatestdb"}],
      "overwrite_config_file":"YES"
    }

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here

    Response Sample

    {
       "__EXEC_TIME" : "3593 ms",
       "note" : "none",
       "status" : "success",
       "task" : "createdb"
    }

    setbackupinfo

    $
    0
    0

    Version 9.2.0

     

    Description

    Add an auto-backup plan

     

    Request Json Syntax

    Key Description
    task task name
    token token string encrypted.
    dbname database name
    backupid auto-backup plan id
    period_type the cycle of auto-backup, such as weeky, monthly, everyday and special.
    period_date backup date.
    time auto-backup time (or interval, start with "i", the measurement is minutes)
    level auto-backup level 
    archivedel on-off indicating whether to delete archive file
    storeold on-off indicating whether to delete old files
    zip on-off indicating whether to zip in auto-backup
    updatestatus on-off indicating whether to update statistic infromation
    check on-off indicating whehter to start consistency check
    mt the number of auto-backup threads

     

    Request Sample

    {"task":"setbackupinfo",
    "token":"cdfb4c5717170c5e9c6856b4d1c61ee8132bcc7d82bd609066ed9ece2554c47f7926f07dd201b6aa",
    "dbname":"alatestdb",
    "backupid":"qw",
    "path":"$CUBRID_DATABASES/alatestdb/backup",
    "period_type":"Special",
    "period_date":"$AUTO_DATE",
    "time":"$AUTO_TIME" (or "i$AUTO_TIME")
    "level":"0",
    "archivedel":"ON",
    "updatestatus":"ON",
    "storeold":"ON",
    "onoff":"ON",
    "zip":"y",
    "check":"y",
    "mt":"0"}

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here

    Response Sample

    {
       "__EXEC_TIME" : "320 ms",
       "note" : "none",
       "status" : "success",
       "task" : "addbackupinfo"
    }

    setautoexecquery

    $
    0
    0

    Version 9.2.0

     

    Description

    Get databases' information in cubrid.

     

    Request Json Syntax

    Key Description
    task task name
    token token string encrypted.
    dbname database name
    planlist auto-query plan list
    queryplan auto-query plan
    query_id auto-query id
    period the cycle of auto-query, such as weeky, monthly, everyday and "one".
    detail auto-query time (or interval,start with "i", the measurement is minutes)
    query_string sql statement

     

    Request Sample

    {"task":"setautoexecquery",
    "token":"cdfb4c5717170c5e99586a2763e2b6dce92982faacefb068d7e5a24b9c5fa0a37926f07dd201b6aa",
    "dbname":"demodb",
    "planlist":[{
    "queryplan":[{"query_id":"bbaa",
    "username":"dba",
    "userpass":"none",
    "period":"ONE",
    "detail":"2013/01/16 17:17" ("2013/01/16 i17",),
    "query_string":"select * from code;"}]
    }]
    }

     

    Response Json Syntax

    Key Description
    task task name
    status execution result, success or failed.
    note if failed, a brief description will be given here

    Response Sample

    {
       "__EXEC_TIME" : "396 ms",
       "note" : "none",
       "status" : "success",
       "task" : "setautoexecquery",
    }
    Viewing all 3623 articles
    Browse latest View live