Install the Informix Database in Linux

Source: Internet
Author: User
Tags informix

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.