To create a database server using a configuration file for UNIX®, type:
root# su - informix Password:***** $ ccmsrv create -file config_filename
A configuration file might look like the following:
# Database Server Configuration file for vodtest # # Server Number SERVERNUM 10 # Maximum Number of Users USERS 40 # root dbspace parameters ROOT_CHUNK_PATH /xfile1/ifmx_chunks/root.dbs ROOT_CHUNK_SIZE 61440 ROOT_CHUNK_OFFSET 0 TEMP_CHUNK_PATH /xfile1/ifmx_chunks/temp.dbs TEMP_CHUNK_SIZE 40960 TEMP_CHUNK_OFFSET 0 # log dbspace parameters LOG_CHUNK_PATH /xfile1/ifmx_chunks/log.dbs LOG_CHUNK_SIZE 40960 LOG_CHUNK_OFFSET 0 # Archive device /dev/null # ccm dbspace parameters CCM_CHUNK_PATH /xfile1/ifmx_chunks/ccm.dbs CCM_CHUNK_SIZE 81920 CCM_CHUNK_OFFSET 0 # end of file
When the database server creation is completed, the server configuration is written to a configuration file named servername (the HOSTNAME, by default) in the $CCM_HOME/informix/etc directory.