Full introduction to informixforlinux installation-Linux Enterprise Application-Linux server application information. The following is a detailed description.
Step 1: Download Ids 9.4 for linux:
Ftp://ftp.youngcow.net/Special/D... G-IDS-9.4-linux.zip
This thread has restrictions
Http: // 202.96.110.20./ informix/ids9.4/IIUG-IDS-9.4-linux.zip
This is faster, depending on the network;
Csdk for linux:
Ftp://ftp.software.ibm.com/softw... 2.81.uc2.linux.tar
Step 2: Build an informix installation environment in linux Create an informix group: groupadd-g 20000 informix
-- Sqlexe and sqlexec are service names, and 1526 and 1528 are port numbers;
-- TCP/IP indicates the TCP/IP protocol
2. Configure the/etc/hosts file
192.168.28.1 linux (host name)
3. Configure the $ INFORMIXDIR/etc/sqlhosts File
Cs_dbs onipcshm linux sqlexe
Cs_dbs_tcp onsoctcp linux sqlexec
-- The shared memory mode and soctcp mode are configured to connect to the database. linux indicates the host name, And sqlexe/sqlexec indicates the services configured in the services file;
-- Note that the release in informix for linux 9.4 does not support the tlitcp method, so the onsoctcp method is used here;
-- If the tlitcp mode is configured in the sqlhosts file or the configuration in the sqlhosts file is different from that in the onconfig. cs file, a 25507 error is frequently encountered by many people;
4. Create a space
Operate with informix users
Create a dbs directory in INFORMIXDIR (easy to differentiate and pull)
First touch rootdbs logdbs phydbs blobdbs tmpdbs datadbs
Then chmod 660 *
Make sure that all dbs are in the informix user informix group. The permissions are 660;
5. Configure the $ INFORMIXDIR/etc/onconfig. cs file.
The following are some notes:
-- Rootdbs path and Space
ROOTNAME rootdbs # Root dbspace name
ROOTPATH/home/informix/dbs/rootdbs # Path for device containing root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
ROOTSIZE 100000 # Size of root dbspace (Kbytes)
-- The dbs space of physical logs should be 20 mb of rootdbs first;
PHYSDBS rootdbs # Location (dbspace) of physical log
PHYSFILE 20000 # Physical log file size (Kbytes)
-- Use the default logical log
# Logical Log Configuration
LOGFILES 6 # Number of logical log files
LOGSIZE 2000 # Logical log size (Kbytes)
-- Change everything on the tape to/dev/null.
TAPEDEV/dev/null # Tape device path
TAPEBLK 32 # Tape block size (Kbytes)
TAPESIZE 10240 # Maximum amount of data to put on tape (Kbytes)
# Log Archive Tape Device
LTAPEDEV/dev/null # Log tape device path
LTAPEBLK 32 # Log tape block size (Kbytes)
LTAPESIZE 10240 # Max amount of data to put on log tape (Kbytes)
-- Configure Database Server parameters and allocate locks and buffers based on the actual configuration of your machine;
SERVERNUM 0 # Unique id corresponding to a OnLine instance
DBSERVERNAME cs_dbs # Name of default database server
DBSERVERALIASES cs_dbs_tcp # List of alternate dbservernames
NETTYPE ipcshm, 1, 8, CPU # Configure poll thread (s) for nettype
NETTYPE soctcp, 1, 8, NET # Configure poll thread (s) for nettype
Lock S 5000 # Maximum number of LOCKS
BUFFERS 500 # Maximum number of shared buffers
NUMAIOVPS 2 # Number of IO vps
PHYSBUFF 32 # Physical log buffer size (Kbytes)
LOGBUFF 32 # Logical log buffer size (Kbytes)
CLEANERS 1 # Number of buffer cleaner processes
SHMBASE 0x10000000 # Shared memory base address
Shm1_size 8000 # initial virtual shared memory segment size
SHMADD 8192 # Size of new shared memory segments (Kbytes)
In addition, replace all/usr/informix in the onconfig. cs file with/home/informix/
6. Database Initialization
Oninit-ivy
You can use onstat-I to view the result.
Informix Dynamic Server Version 9.40.UC1E1 -- On-Line -- Up 00:31:47 -- 18872
Kbytes
Onstat>
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.