Create the database
server. If you have already planned
specific partitions and sizes, use these paths and sizes to respond
to the prompts.
If you have not planned specific
partitions and sizes, use the informix_chunkfiles directory
when prompted for the primary chunk path for the root dbspace.
Use the defaults for everything else except the number of users. Set
the number of users to the expected number of simultaneous users of
all databases on this server, rounded up to the nearest 10. Typically,
the minimum space required is as follows:
- log and temp dbspaces
are each approximately 1.0 MB per user.
- root dbspace must be at least
60 MB.
- ccm dbspace is approximately 2
MB per user.
For the default of 40 users, the total is approximately
220 MB. The default is only a rough estimate for the initial database
chunk. In general, generously allocate dbspace to permit for future
growth.
The directory that contains the chunk
files must be owned by informix, group informix,
and mode 770.
When prompted, enter the values for your number
of processors , number of users, and server number.
Note: If you have other Informix installations, either
active or inactive, the default server number that ccmsrv
create attempts to use might already be in use. An error
such as this appears in the log file:
11:13:05 shmget: [EEXIST][17]: key 52574801: shared memory already exists
11:13:05 mt_shm_init: can't create resident segment
Correct this problem
by using a different server number.
If you must increase the size
of your shared memory kernel parameters, you might also see an error
like the following in the log file:
16:53:12 shmat: [EMFILE][24]: out of shared memory segments, check system SHMSEG
16:53:12 mt_shm_init: can't create resident segment
To learn more about shared memory kernel parameter
values, see Check shared memory and semaphore kernel parameters.
Answer Y when you are prompted
to create the database server. Use the UNIX commands
appropriate for your shell.
Note: If you have set
up raw partitions, you are prompted for a raw partition path when
you run the ccmsrv create command. In such cases,
type the path to the device file for that partition. Be sure to reference
the correct partition and offset.
root# su - informix Password:*****
$ CCM_HOME=ccm_home; export CCM_HOME
$ PATH=$CCM_HOME/bin:$PATH; export PATH
$ ccmsrv create -s servername
$ exit