1. Create an Informix group and an Informix user
Use the root user to pass the Informix Installation File to Linux
Use the root user to install Informix in the/bank/informi directory
2. Use Informix to configure the installation.
Modify the/bank/informix/. bash_profile File
Add the onconfig. cmsserver file to the/bank/informix/etc/directory.
Add the file sqlhosts in the/bank/informix/etc/directory.
Modify the/etc/services file
Create two folders, data and log, and add the tablespace rootdbs, tmpdbs, cifdbs, cmsdbs, and migdbs in the/bank/informix/directory. Touch before chmod is 660
Then use the onmonitor command to Initialize and set Parameters --> Initialize
Note that the last item on the last page is left blank.
(The following test can be omitted.
Run oninit to test whether the instance is started successfully.
Use the onmode-ky command to test whether the function is disabled successfully)
3. Create a database space
Run when the database is not started
$ Onspaces-c-d cifdbs-p "/bank/informix/data/cifdbs"-o 100-s 512000
$ Onspaces-c-d migdbs-p "/bank/informix/data/migdbs"-o 100-s 1024000
$ Onspaces-c-d cmsdbs-p "/bank/informix/data/cmsdbs"-o 100-s 1024000
$ Onspaces-c-d tmpdbs-t-p "/bank/informix/data/tmpdbs"-o 100-s 512000
$ Ontape-s-L 0 (Backup level 0)
4. Import table structure and table data
After the database needs to be started
Dbimport-q-c-d migdbs
./Loadcmsdbs. sh/bank/informi/dataFrom2242 place the cmsdbs. exp file in the/bank/informi/dataFrom2242 directory
5. create user a as the root user, and grant permissions to dba to a as the informix user.
Then you can use the terminal for access.