Configure environment variables and language, and then start the CUBRID service. For more information on configuring environment variables and language, see Registering Services or Starting and Stopping Services.
The following shell command can be used to start the CUBRID service and the demodb included in the installation package.
% cubrid service start
@ cubrid master start
++ cubrid master start: success
@ cubrid broker start
++ cubrid broker start: success
@ cubrid manager server start
++ cubrid manager server start: success
% cubrid server start demodb
@ cubrid server start: demodb
This may take a long time depending on the amount of recovery works to do.
CUBRID 2008 R4.1
++ cubrid server start: success
@ cubrid server status
Server demodb (rel 8.4, pid 31322)
On the Windows environment, you can start or stop a service as follows:
Note An administrator level (SYSTEM) authorization is required to start/stop CUBRID processes through the CUBRID Service tray; a login level user authorization is required to start/stop them with shell commands. If you cannot control the CUBRID processes on the Windows Vista or later version environment, select [Execute as an administrator (A)] in the [Start] > [All Programs] > [Accessories] > [Command Prompt]) or execute it by using the CUBRID Service Tray. When all processes of CUBRID Server stops, an icon on the CUBRID Service tray turns out gray.
You can create databases by using the cubrid createdb utility and execute it where database volumes and log volumes are located. If you do not specify additional options such as --db-volume-size or --log-volume-size, 1.5 GB volume files are created by default (generic volume is set to 512 MB, active log is set to 512 MB, and background archive log is set to 512 MB).
% cd testdb
% cubrid createdb testdb
-rw------- 1 cubrid dbms 536870912 Jan 11 15:04 testdb
-rw------- 1 cubrid dbms 536870912 Jan 11 15:04 testdb_lgar_t
-rw------- 1 cubrid dbms 536870912 Jan 11 15:04 testdb_lgat
-rw------- 1 cubrid dbms 176 Jan 11 15:04 testdb_lginf
-rw------- 1 cubrid dbms 183 Jan 11 15:04 testdb_vinf
In the above, testdb represents a generic volume file, testdb_lgar_t represents a background archive log file, testdb_lgat represents an active log file, testdb_lginf reoresents a log information file, and testdb_vinf represents a volume information file.
For details on volumes, see Database Volume Structure. For details on creating volumes, see Creating Database. It is recommended to classify and add volumes based on its purpose by using the cubrid addvoldb utility. For details, see Adding Database Volume.