cubrid.conf에 지정된 파라미터는 다음과 같이 세 가지 섹션으로 제공된다.
- CUBRID 서비스를 시작할 때 사용 : [service] 섹션
- 전체 데이터베이스에 공통으로 적용 : [common] 섹션
- 각 데이터베이스에 개별적으로 적용 : [@<database>] 섹션
여기서 [@<database>] 섹션을 $CUBRID/cubrid.conf 마지막 라인에 데이터베이스 이름과 대상 파라미터를 입력하여 개별적으로 적용하는데 아래 예제와 같이 적용한다.
# Copyright (C) 2008 Search Solution Corporation. All rights reserved by Search Solution.
# cubrid.conf
# Service section - a section for 'cubrid service' command
[service]
# The list of processes to be started automatically by 'cubrid service start' command
# Any combinations are available with server, broker and manager.
service=server,broker,manager
# The list of database servers in all by 'cubrid service start' command.
# This property is effective only when the above 'service' property contains 'server' keyword.
server=testdb,demodb
# Common section - properties for all databases
# This section will be applied before other database specific sections.
[common]
# Number of data buffer pages
# data_buffer_pages (25,000 pages) * DB page size (4KB) = 100M
data_buffer_pages=25000
# Number of sort buffer pages
# sort_buffer_pages (16 pages) * DB page size (4KB) * number of threads
sort_buffer_pages=32
# Number of log buffer pages.
# log_buffer_pages (50 pages) * DB page size (4KB) = 200KB
log_buffer_pages=50
:
:
중간 생략
:
# Enable Java Stored Procedure
java_stored_procedure=no
#error_log_production_mode=0
#call_stack_dump_on_error=1
[@testdb] // testdb 데이터베이스에 개별적으로 적용
data_buffer_pages=100000
temp_file_max_size_in_pages=250000
media_failure_support=yes
replication=yes
max_clients=260
[@demodb] // demodb 데이터베이스에 개별적으로 적용
data_buffer_pages=25000
temp_file_max_size_in_pages=100000
media_failure_support=no
replication=no
max_clients=100