Install informix in RHAS4

Source: Internet
Author: User

Informix was previously installed in RHAS4, but the idea is vague. Today, we have to install it again. The installation process is listed below to be noted.

1. Create an informix user.
Groupadd informix
Useradd-g informix

2. Log On As the root user and package the files on the CD (you must pack the files. Otherwise, you must have sufficient permissions and copy and decompress the files as the root user. Otherwise, some problems may occur. The problem I encountered was that after initialization, I used onmonitor to display the network down, which made it impossible to create a chunk.) decompress the chunk and run the command to install it.

3. Modify/etc/service and add the following column:
Test 33333/tcp

4. Create the INFORMIXTMP directory and modify attributes.
Mkdir/INFORMIXTMP; chown-R informix: informix/INFORMIXTMP

5. Create a bare Device

6. log on to informix and modify. bash_profile as follows:
#. Bash_profile

# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi

# User specific environment and startup programs
PATH = $ PATH: $ HOME/bin

Export PATH
Unset USERNAME
INFORMIXDIR =/home/informix
PATH = $ PATH: $ INFORMIXDIR/bin :.
INFORMIXSERVER = testserver
ONCONFIG = onconfig. test
DBDATE = Y4MD0
DBCENTURY = C
INFORMIXTERM = terminfo
DB_LOCALE = zh_CN.gb
CLIENT_LOCALE = zh_CN.gb
Export INFORMIXSERVER ONCONFIG INFORMIXTERM
Export INFORMIXDIR PATH DBDATE DACENTURY
Export DB_LOCALE CLIENT_LOCALE

LD_LIBRARY_PATH = $ INFORMIXDIR/lib: $ INFORMIXDIR/lib/esql: $ LD_LIBRARY_PATH
Export LD_LIBRARY_PATH

TERM = vt100
Export TERM
Export TERMCAP =$ {INFORMIXDIR}/etc/termcap
Export INFORMIXTERM = termcap

Set-o vi

7. links created on bare Devices
Mkdir DBSPACE
Cd DBSPACE
Ln-s/dev/raw/raw1 rootdbs
.......

8. If no tmp folder exists
Cd
Mkdir tmp
Chmod 660 tmp

9. Modify etc/onconfig. cls
Its specific precautions refer to my informix initialization problem.

10. Configure etc/sqlhosts and add
Testserver (Service name) onsoctcp (connection type) localhost (listener host) test (service-specific port)

11. Initialization
Oninit-ivy

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.