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