Install Informix SE for Linux

Source: Internet
Author: User
Tags informix

InformixseforLinux in this article is a compiled version:
The installation procedure is as follows:

Server Environment: TurboLinux4.0 Chinese version, kernel2.2.10, 64 M, Pentium90 take SE as an example. ESQL/C is a development tool for SQL Embedded C, and CONNECT has never been used, let me know that my friend has already completed the record. (Assume that your server is linux and you decide to use linux_se as the SE server name)
1. Create groupinformix with gid less than 200
2. Create user informix, whose group is informix and whose uid is less than 200
3. Modify the informix user environment parameters and add:
INFORMIXDIR =/home/informix
PATH = $ PATH: $ HOME/bin:
INFORMIXSERVER = linux_se
4. Modify the root user environment parameters and add
INFORMIXDIR =/home/informix
PATH = $ PATH: $ INFORMIXDIR/bin:
INFORMIXSERVER = linux_se
5. Use the root user to import SE. TAR into the $ HOME directory of informix, execute tarxvfSE. TAR, and expand the software package.
6. Run the./installse command at $ INFORMIXDIR as the root user.
7. Enter your serial number and password to complete installation.
8. Edit $ INFORMIXDIR/etc/sqlhosts and add a line of linux_sesesoctcplinuxinformix_ser.
Linux_se is INFORMIXSERVER, which must be consistent with $ INFORMIXSERVER in environment parameters.
Sesoctcp is the protocol, which must be written to the SE on linux
Linux is the host name and must be consistent with the host name in the/etc/hosts file.
Informix_ser is the service name and must be consistent with the entries in the/etc/services file.
9. Use root to edit the/etc/services file and add a line of informix_ser8888/tcp
8888 indicates the port number. You can specify the port number ..
10. Run the command as root.
$ INFORMIXDIR/lib/sqlexecdlinux &
Linux is the host name, which must be consistent with the host name mentioned above.
Start sqlexmcm. Of course, you can automatically execute it at startup. Modify the corresponding rc file.
Now, you can use informix to log on and execute dbaccessdemo7 to see if the sample database can be successfully created... and then access it with dbaccess.

1. Create an informix user
# Useraddinformix
2. Installation (as root)
Unpack the zip package and
LINUX_se_bundle724UC5/ESQLC/ESQL. TAR
LINUX_se_bundle724UC5/ICONNECT/CONNECT. TAR
LINUX_se_bundle724UC5/SE. TAR
Are unlocked to/home/informix
Such as tar-C/home/informix-xvfLINUX_se_bundle724UC5/ESQLC/ESQL. TAR
Then # setINFORMIXDIR =/home/informix; exportINFORMIXDIR (Note: bash, bsh, or ksh)
# Cd $ INFORMIXDIR
#./Installse
... The serial number will be asked in the middle. In addition, press Enter.
.....
#./Installesql
... The serial number will be asked in the middle. In addition, press Enter.
.....
#./Installconn
... The serial number will be asked in the middle. In addition, press Enter.
.....
3. Set the environment and Parameters. (Any work that is not specified in the future will be performed after informix user registration)
1) EDIT ~ /Etc/sqlhost
The sqlhost format is as follows:
# Dbservernamenettypehostnameservicename
#-----------------------------------------------------
Valley_sesetlitcpvalleyvalley_service
River_seseipcpipriversqlexec
Dbservername can be set as needed. The nettype FIELD consists of eight letters:
Ddiiipppd: database product, which can only be se (informix-se)
I: interface type, including ipc, tli, soc (socket)
P: network protocol. Valid values of pip (pipes), tcp (TCP/IP), and spx (ipx/spx) include seipcpip, setlitcp, sescotcp, setlispx, the last three can be used as servers, such as setlitcp (SE, Socket, TCP/IP)
The hostname field is the host name. If the TCP/IP protocol is used, the hostname must appear in/etc/hosts. The host name can be a local host (for the server) it can also be another server on the Internet with informix-se (for clients). servicename varies greatly with the protocol. For TCP/IP, servicename must appear in/etc/services. You can add the following sentence:
Valley_services1536/tcp

Both the server and the customer need to define this line.
2) Set INFORMIXDIR =/home/informix
INFORMIXSERVER = valley_se (or dbserver in other sqlhosts)
Can be set ~ /. Bash_profile (bash)
INFORMIXDIR =/home/informix; exportINFORMIXDIR
INFORMIXSERVER = valley_se; exportINFORMIXSERVER
4. Start the server

Su to root, and then $ INFORMIXDIR/lib/sqlexmcm (dbservername must appear in sqlhosts, such as valley_se, and make sure that the INFORMIXDIR variable is correctly defined)
5. Test
Run the create demo database in $ INFORMIXDIR/bin and use dbaccess.


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.