Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.2.1 |  CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 

Starting and Stopping Services

Starting Services

On Linux, after installing CUBRID, enter the following to start a CUBRID service. If no services are registered in the database environment configuration file, only a master process is stopped by default.

On Windows, the following command can be normally executed by a 'SYSTEM' user only. An administrator or general user can run or stop the CUBRID Server by clicking the CUBRID Service tray icon that appears after installing the CUBRID Manager.

% cubrid service start

@ cubrid master start

++ cubrid master start: success

The following message appears if the master process is already running:

% cubrid service start

@ cubrid master start

++ cubrid master is running.

The following message appears if the master process fails to start: The following is an example that the service fails to start due to the conflict between the cubrid_port_id parameters, which is set in the database environment configuration file (cubrid.conf). In a such case, you can change the port to prevent conflicts. If it fails starting even if no port is occupied by the processes, you should restart it after deleting a /tmp/CUBRID1523 file.

% cubrid service start

@ cubrid master start

cub_master: '/tmp/CUBRID1523' file for UNIX domain socket exist.... Operation not permitted

++ cubrid master start: fail

After registering a service as explained in Registering Services, enter the following to start the service. You can see that the master process, database server process, Broker and registered demodb, and testdb all start at the same time.

% cubrid service start

@ cubrid master start

++ cubrid master start: success

@ cubrid server start: demodb

 

This may take a long time depending on the amount of restore works to do.

 

CUBRID 2008 R3.0

 

++ cubrid server start: success

@ cubrid server start: testdb

 

This may take a long time depending on the amount of recovery works to do.

 

CUBRID 2008 R3.0……

 

++ cubrid server start: success

@ cubrid broker start

++ cubrid broker start: success

Stopping Services

Enter the following to stop a CUBRID service. If no services are registered by the user, only the master process is stopped.

% cubrid service stop

@ cubrid master stop

++ cubrid master stop: success

Enter the following to stop the registered CUBRID service. You can see that the server process, Broker process and master process as well as demodb and testdb are all stopped.

% cubrid service stop

@ cubrid server stop: demodb

Server demodb notified of shutdown.

This may take several minutes. Please wait.

++ cubrid server stop: success

@ cubrid server stop: testdb

Server testdb notified of shutdown.

This may take several minutes. Please wait.

++ cubrid server stop: success

@ cubrid broker stop

++ cubrid broker stop: success

@ cubrid master stop

++ cubrid master stop: success

Restarting Services

Enter the following to restart a CUBRID service. If no services are registered by the user, only the master process is stopped and then restarted.

% cubrid service restart

@ cubrid master stop

++ cubrid master stop: success

@ cubrid master start

++ cubrid master start: success

Enter the registered CUBRID service as shown below. You can see that the server process, Broker process and master process as well as demodb and testdb are all stopped and then restarted.

% cubrid service restart

@ cubrid server stop: demodb

Server demodb notified of shutdown.

This may take several minutes. Please wait.

++ cubrid server stop: success

@ cubrid server stop: testdb

Server testdb notified of shutdown.

This may take several minutes. Please wait.

++ cubrid server stop: success

@ cubrid broker stop

++ cubrid broker stop: success

@ cubrid master stop

++ cubrid master stop: success

@ cubrid master start

++ cubrid master start: success

@ cubrid server start: demodb

 

This may take a long time depending on the amount of recovery works to do.

 

CUBRID 2008 R3.0……

 

++ cubrid server start: success

@ cubrid server start: testdb

 

This may take a long time depending on the amount of recovery works to do.

 

CUBRID 2008 R3.0……

 

++ cubrid server start: success

@ cubrid broker start

++ cubrid broker start: success