Informix Dynamic Server 9.21: Unterschied zwischen den Versionen
Michi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Michi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
Zeile 3: | Zeile 3: | ||
Informix DS 9.21.UC4-2 | Informix DS 9.21.UC4-2 | ||
<b>Reference system:</b> | <b>Reference system:</b> [[SUSE Linux 8.1 Professional]] [Basel - privat] | ||
=== 1. Preparations === | === 1. Preparations === | ||
Zeile 25: | Zeile 25: | ||
Create the product directory<tt> $INFORMIXDIR</tt>: | Create the product directory<tt> $INFORMIXDIR</tt>: | ||
# <b>mkdir /opt/informix</b> | # <b>mkdir /opt/informix</b> | ||
# <b>chown -R informix /opt/informix</b> | # <b>chown -R informix /opt/informix</b> | ||
Set<tt> $INFORMIXDIR </tt>and put<tt> $INFORMIXDIR/bin </tt>in the<tt> PATH</tt>: | Set<tt> $INFORMIXDIR </tt>and put<tt> $INFORMIXDIR/bin </tt>in the<tt> PATH</tt>: | ||
# <b>export INFORMIXDIR=/opt/informix</b> | # <b>export INFORMIXDIR=/opt/informix</b> | ||
# <b>PATH=$PATH:$INFORMIXDIR/bin</b></tt> | # <b>PATH=$PATH:$INFORMIXDIR/bin</b></tt> | ||
Create the following entry in<tt> /etc/services </tt>: | Create the following entry in<tt> /etc/services </tt>: | ||
# <b>vi /etc/services</b> | # <b>vi /etc/services</b> | ||
sqlturbo 1526/tcp # Informix | sqlturbo 1526/tcp # Informix | ||
Zeile 39: | Zeile 42: | ||
Insert the CD-ROM. | Insert the CD-ROM. | ||
# <b>mount /cdrom</b> | # <b>mount /cdrom</b> | ||
# <b>cd $INFORMIXDIR</b> | # <b>cd $INFORMIXDIR</b> | ||
Zeile 50: | Zeile 54: | ||
If only the runtime version is installed: | If only the runtime version is installed: | ||
# <b>mount /cdrom</b> | # <b>mount /cdrom</b> | ||
# <b>cd $INFORMIXDIR</b> | # <b>cd $INFORMIXDIR</b> | ||
Zeile 59: | Zeile 64: | ||
After inserting the CD-ROM: | After inserting the CD-ROM: | ||
# <b>mount /cdrom</b> | # <b>mount /cdrom</b> | ||
# <b>cd /cdrom/IDS</b> | # <b>cd /cdrom/IDS</b> | ||
Zeile 99: | Zeile 105: | ||
Make sure that<tt> $INFORMIXDIR </tt>is set correctly! | Make sure that<tt> $INFORMIXDIR </tt>is set correctly! | ||
# <b>mount /cdrom</b> | # <b>mount /cdrom</b> | ||
# <b>cd /cdrom/ICONNECT/LINUX</b> | # <b>cd /cdrom/ICONNECT/LINUX</b> | ||
Zeile 135: | Zeile 142: | ||
Edit the file<tt> .profile </tt>of the user "informix": | Edit the file<tt> .profile </tt>of the user "informix": | ||
# <b>vi /home/informix/.profile</b> | # <b>vi /home/informix/.profile</b> | ||
export INFORMIXDIR=/opt/informix | export INFORMIXDIR=/opt/informix | ||
Zeile 142: | Zeile 150: | ||
The directory<tt> /DBinformix</tt>,where the cooked space will reside as user "informix", already exists: | The directory<tt> /DBinformix</tt>,where the cooked space will reside as user "informix", already exists: | ||
# <b>chown informix:informix /DBinformix</b> | # <b>chown informix:informix /DBinformix</b> | ||
# <b>su - informix</b> | # <b>su - informix</b> | ||
Zeile 151: | Zeile 160: | ||
If necessary, also create the following dbspaces: | If necessary, also create the following dbspaces: | ||
$ <b>cat /dev/null > physdbs</b> | $ <b>cat /dev/null > physdbs</b> | ||
$ <b>cat /dev/null > logdbs</b> | $ <b>cat /dev/null > logdbs</b> | ||
Zeile 167: | Zeile 177: | ||
If necessary, also link the following dbspaces: | If necessary, also link the following dbspaces: | ||
$ <b>ln -s /DBinformix/physdbs physdbs</b> | $ <b>ln -s /DBinformix/physdbs physdbs</b> | ||
$ <b>ln -s /DBinformix/logdbs logdbs</b> | $ <b>ln -s /DBinformix/logdbs logdbs</b> | ||
Zeile 174: | Zeile 185: | ||
The file<tt> $INFORMIXDIR/etc/sqlhosts </tt>must have the following syntax: | The file<tt> $INFORMIXDIR/etc/sqlhosts </tt>must have the following syntax: | ||
<database servername> <protocol> <hostname> <service> | <database servername> <protocol> <hostname> <service> | ||
In our example the file<tt> /opt/informix/etc/sqlhosts </tt>has the following entries: | In our example the file<tt> /opt/informix/etc/sqlhosts </tt>has the following entries: | ||
sisis onipcshm sh-dz sisis_shm | sisis onipcshm sh-dz sisis_shm | ||
sisis_tcp onsoctcp sh-dz sqlturbo | sisis_tcp onsoctcp sh-dz sqlturbo | ||
The next step is to create the file<tt> $INFORMIXDIR/etc/onconfig.sisis </tt>: | The next step is to create the file<tt> $INFORMIXDIR/etc/onconfig.sisis </tt>: | ||
$ <b>cd /opt/informix/etc</b> | $ <b>cd /opt/informix/etc</b> | ||
$ <b>cp onconfig.std onconfig.sisis</b> | $ <b>cp onconfig.std onconfig.sisis</b> | ||
It is strongly recommended to alter the following parameters to the given values (according to our example): | It is strongly recommended to alter the following parameters to the given values (according to our example): | ||
ROOTPATH /home/informix/links/rootdbs # Device containing root dbspace | ROOTPATH /home/informix/links/rootdbs # Device containing root dbspace | ||
ROOTSIZE 200000 # Size of root dbspace (Kbytes) | ROOTSIZE 200000 # Size of root dbspace (Kbytes) | ||
Zeile 227: | Zeile 242: | ||
Now create the tape device path and also the log tape device path: | Now create the tape device path and also the log tape device path: | ||
$ <b>cd /home/informix</b> | $ <b>cd /home/informix</b> | ||
$ <b>mkdir sicherung.sisis</b> | $ <b>mkdir sicherung.sisis</b> | ||
Zeile 237: | Zeile 253: | ||
Now initialize the server "sisis". | Now initialize the server "sisis". | ||
$ <b>oninit -i</b> | $ <b>oninit -i</b> | ||
This command initializes the Informix Dynamic Server 2000; any existing Informix Dynamic Server 2000 databases | This command initializes the Informix Dynamic Server 2000; any existing Informix Dynamic Server 2000 databases | ||
Zeile 244: | Zeile 261: | ||
Note: Check the file<tt> online.log </tt>for the entries: | Note: Check the file<tt> online.log </tt>for the entries: | ||
'sysmaster' database built successfully. | 'sysmaster' database built successfully. | ||
'sysutils' database built successfully. | 'sysutils' database built successfully. | ||
Monitor the operation of the database server, showing the dbspaces and chunks | Monitor the operation of the database server, showing the dbspaces and chunks. | ||
$ <b>onstat -d</b> | $ <b>onstat -d</b> | ||
Informix Dynamic Server 2000 Version 9.21.UC4 -- On-Line -- Up 00:12:18 -- 41312 Kbytes | Informix Dynamic Server 2000 Version 9.21.UC4 -- On-Line -- Up 00:12:18 -- 41312 Kbytes | ||
Zeile 262: | Zeile 281: | ||
Create the the dbspace "sisisdbs": | Create the the dbspace "sisisdbs": | ||
$ <b>onspaces -c -d sisisdbs -p /home/informix/links/sisisdbs -o 0 -s 2000000</b> | $ <b>onspaces -c -d sisisdbs -p /home/informix/links/sisisdbs -o 0 -s 2000000</b> | ||
If necessary, also create the following dbspaces: | If necessary, also create the following dbspaces: | ||
$ <b>onspaces -c -d sisisdbs -p /home/informix/links/logdbs -o 0 -s <size in pages></b> | $ <b>onspaces -c -d sisisdbs -p /home/informix/links/logdbs -o 0 -s <size in pages></b> | ||
$ <b>onspaces -c -d sisisdbs -p /home/informix/links/physdbs -o 0 -s <size in pages></b> | $ <b>onspaces -c -d sisisdbs -p /home/informix/links/physdbs -o 0 -s <size in pages></b> | ||
Zeile 272: | Zeile 293: | ||
Finally create the dbspace "tempdbs" with these options: | Finally create the dbspace "tempdbs" with these options: | ||
$ <b>onspaces -c -t -d tempdbs -p /home/informix/links/tempdbs -o 0 -s 1000000</b> | $ <b>onspaces -c -t -d tempdbs -p /home/informix/links/tempdbs -o 0 -s 1000000</b> | ||
After this change the variable<tt> DBSPACETEMP </tt>in the file<tt> $INFORMIXDIR/etc/onconfig.sisis </tt> (this can only be done now!): | After this change the variable<tt> DBSPACETEMP </tt>in the file<tt> $INFORMIXDIR/etc/onconfig.sisis </tt> (this can only be done now!): | ||
$ <b>vi /opt/informix/etc/onconfig.sisis</b> | $ <b>vi /opt/informix/etc/onconfig.sisis</b> | ||
DBSPACETEMP /home/informix/links/tempdbs # Default temp dbspaces | DBSPACETEMP /home/informix/links/tempdbs # Default temp dbspaces | ||
At last perform a level0 archive (the archive will be created at<tt> $TAPEDEV/level0</tt> ): | At last perform a level0 archive (the archive will be created at<tt> $TAPEDEV/level0</tt> ): | ||
$ <b>ontape -s -L 0</b> | $ <b>ontape -s -L 0</b> | ||
Zeile 284: | Zeile 308: | ||
{{cat|Informix-Online}} | {{cat|Informix-Online}} | ||
{{cat|Informix Software}} | {{cat|Informix Software}} | ||
{{cat|UNFERTIG}} |
Aktuelle Version vom 24. Juli 2009, 10:32 Uhr
Installation
Informix DS 9.21.UC4-2
Reference system: SUSE Linux 8.1 Professional [Basel - privat]
1. Preparations
There must be a group and user "informix".
The Informix products must be installed in a specific order if you are installing client and server products in the same $INFORMIXDIR directory:
- SQL software
- Database server
- Client SDK
Read the Informix installation guide for further instructions.
2. Creation of the Informix directory
Observe the following guidelines:
- Use the same directory to install both Dynamic Server and any local client products
- The INFORMIXDIR should be /opt/informix (SISIS-default for Linux)
- Create the directory on a local drive
- Documentation can be found under /opt/informix/release/en_us/0333
Create the product directory $INFORMIXDIR:
# mkdir /opt/informix # chown -R informix /opt/informix
Set $INFORMIXDIR and put $INFORMIXDIR/bin in the PATH:
# export INFORMIXDIR=/opt/informix # PATH=$PATH:$INFORMIXDIR/bin
Create the following entry in /etc/services :
# vi /etc/services sqlturbo 1526/tcp # Informix
3. Installation of the Informix-SQL package from CD-ROM
Insert the CD-ROM.
# mount /cdrom # cd $INFORMIXDIR # tar xvf /cdrom/sql.tar ... Enter your serial number: Enter your serial number KEY: ... # cd
# eject
If only the runtime version is installed:
# mount /cdrom # cd $INFORMIXDIR # tar xvf /cdrom/sqlrt.tar # cd # eject
4. Installation of the Informix Dynamic Server package from CD-ROM
After inserting the CD-ROM:
# mount /cdrom # cd /cdrom/IDS # rpm -iv ids.rpm IDS2000-9.21.UC4-1 Informix Dynamic Server 2000 Version 9.21.UC4 Copyright (C) 1986-2000 Informix Software, Inc. Installation Script Installation Script Requirements: - A user "informix" and a group "informix" must be known to the system. - The product source files must have been loaded by user informix. - This installation procedure must be run by user informix. This script will change the owner, group, and mode of many of the files of this package in this directory. Press RETURN to continue, or the interrupt key (usually CTRL-C or DEL) to abort. ... Enter your serial number (for example, INF#X999999) Enter your serial number KEY (uppercase letters only) ... Press RETURN to continue, or the interrupt key (usually CTRL-C or DEL) to abort. ... Informix Product: Informix Dynamic Server 2000 Installation Directory: /opt/informix Performing root portion of installation of Informix Dynamic Server 2000... ...Linking /usr/lib/ismdd09a.so from lib/ismdd09a.so... ...Linking /usr/lib/iosm09a.so from lib/iosm09a.so... ...Linking /usr/lib/ipldd09a.so from lib/ipldd09a.so... ...Linking /var/lib/libpthread.so.0 from lib/libifxpthread.so... Installation of Informix Dynamic Server 2000 complete. # cd # eject
5. Extraction of the Informix-Client Software package
Make sure that $INFORMIXDIR is set correctly!
# mount /cdrom # cd /cdrom/ICONNECT/LINUX # rpm -iv --replacefiles ICONNECT.RPM iconn-2.40.UC1-1 ... Is I-Connect being installed along with Informix database server version 9.x? yes ... Press RETURN to continue. ... Enter your serial number (for example, INF#X999999) > Enter your serial number KEY (uppercase letters only) > ... Press RETURN to continue. Installing directory gls/lc11/sv_se Installing directory gls/lc11/th_th Installing directory gls/lc11/zh_cn Installing directory gls/lc11/zh_tw Informix Product: INFORMIX-Connect Installation Directory: /opt/informix Performing root portion of installation of INFORMIX-Connect... Installation of INFORMIX-Connect complete. # cd # eject
6. Configuration of the database server
Next is the configuration of the Dynamic Server. First the disk spaces for the needed dbspaces have to be allocated.
Note: The physdbs and the datadbs (sikisdbs, siasdbs, sieradbs) should not reside on the same disk. So place the datadbs and tempdbs on the system disk but rootdbs, physdbs and logdbs on the second disk. If more disks are available, then divide the dbspaces more. Raw-devices are not supported!
Edit the file .profile of the user "informix":
# vi /home/informix/.profile export INFORMIXDIR=/opt/informix PATH=$PATH:$INFORMIXDIR/bin export INFORMIXSERVER=sisis export ONCONFIG=onconfig.sisis
The directory /DBinformix,where the cooked space will reside as user "informix", already exists:
# chown informix:informix /DBinformix # su - informix
$ cd /DBinformix $ cat /dev/null > rootdbs $ cat /dev/null > sisisdbs $ cat /dev/null > tempdbs
If necessary, also create the following dbspaces:
$ cat /dev/null > physdbs $ cat /dev/null > logdbs $ cat /dev/null > sikisdbs $ cat /dev/null > siasdbs $ cat /dev/null > sieradbs $ chmod 660 *dbs $ cd /home/informix $ mkdir links $ cd links $ ln -s /DBinformix/rootdbs rootdbs $ ln -s /DBinformix/sisisdbs sisisdbs $ ln -s /DBinformix/tempdbs tempdbs
If necessary, also link the following dbspaces:
$ ln -s /DBinformix/physdbs physdbs $ ln -s /DBinformix/logdbs logdbs $ ln -s /DBinformix/sikisdbs sikisdbs $ ln -s /DBinformix/siasdbs siasdbs $ ln -s /DBinformix/sieradbs sieradbs
The file $INFORMIXDIR/etc/sqlhosts must have the following syntax:
<database servername> <protocol> <hostname> <service>
In our example the file /opt/informix/etc/sqlhosts has the following entries:
sisis onipcshm sh-dz sisis_shm sisis_tcp onsoctcp sh-dz sqlturbo
The next step is to create the file $INFORMIXDIR/etc/onconfig.sisis :
$ cd /opt/informix/etc $ cp onconfig.std onconfig.sisis
It is strongly recommended to alter the following parameters to the given values (according to our example):
ROOTPATH /home/informix/links/rootdbs # Device containing root dbspace ROOTSIZE 200000 # Size of root dbspace (Kbytes) PHYSFILE 3000 # Physical log file size (Kbytes) LOGFILES 10 # Number of logical log files LOGSIZE 10000 # Logical log size (Kbytes) MSGPATH /opt/informix/etc/online.log # System message log file path ALARMPROGRAM /opt/informix/etc/log_full.sh # Alarm program path # TAPEDEV /dev/null # Tape device path # TAPEDEV /dev/rmt0 TAPEDEV /home/informix/sicherung.sisis/level0 TAPESIZE 4000000 # Mamximum amount of data to put on tape (Kbytes) # LTAPEDEV /dev/null # Log tape device path LTAPEDEV /home/informix/sicherung.sisis/logfiles/logfile SERVERNUM 1 # Unique id corresponding to a OnLine instance DBSERVERNAME sisis # Name of default database server DBSERVERALIASES sisis_tcp # List of alternate dbservernames NETTYPE ipcshm,1,50,CPU # Configure poll thread(s) for nettype NETTYPE soctcp,1,50,NET # Configure poll thread(s) for nettype NOAGE 1 # Process aging LOCKS 20000 # Maximum number of locks BUFFERS 2000 # Maximum number of shared buffers NUMAIOVPS 1 # Number of IO vps PYSBUFF 16 # Physical log buffer size (Kbytes) LOGSBUFF 16 # Logical log buffer size (Kbytes) LOGSMAX 10 # Maximum number of logical log files CLEANERS 5 # Number of buffer cleaner processes SHMVIRTSIZE 128000 # initial virtual shared memory segment LRUS 4 # Number of LRU queues LRU_MAX_DIRTY 1 # LRU percent dirty begin cleaning limit LRU_MIN_DIRTY 0 # LRU percent dirty end cleaning limit DRLOSTFOUND /opt/informix/etc/dr.lostfound # DR lost+found path RA_PAGES 40 # Number of pages to attempt to read ahead RA_THRESHOLD 30 # Number of pages left before next group SYSALARMPROGRAM /opt/informix/etc/evidence.sh # System alarm program JVPJAVAHOME /opt/informix/extend/krakatoa/jre/ # JRE installation root JVPHOME /opt/informix/extend/krakatoa/ # Krakatoa installation root JVPPROPFILE /opt/informix/extend/krakatoa/.jvpprops # JVP property file JVPLOGFILE /opt/informix/jvp.log # JVP log file # JVPCLASSPATH /opt/informix/extend/krakatoa/krakatoa.jar:/opt/informix/extend/krakatoa/jdbc.jar JVPCLASSPATH /opt/informix/extend/krakatoa/krakatoa_g.jar:/opt/informix/extend/krakatoa/jdbc_g.jar
Now create the tape device path and also the log tape device path:
$ cd /home/informix $ mkdir sicherung.sisis $ chmod 775 sicherung.sisis $ cd sicherung.sisis $ cat /dev/null > level0 $ chmod 666 level0 $ mkdir logfiles $ chmod 775 logfiles
Now initialize the server "sisis".
$ oninit -i This command initializes the Informix Dynamic Server 2000; any existing Informix Dynamic Server 2000 databases will NOT be accessible - Do you wish to continue (y/n)? y
Don't get nervous - this may take some minutes!
Note: Check the file online.log for the entries:
'sysmaster' database built successfully. 'sysutils' database built successfully.
Monitor the operation of the database server, showing the dbspaces and chunks.
$ onstat -d Informix Dynamic Server 2000 Version 9.21.UC4 -- On-Line -- Up 00:12:18 -- 41312 Kbytes Dbspaces address number flags fchunk nchunks flags owner name 10a277d0 1 0x1 1 1 N informix rootdbs 1 active, 2047 maximum Chunks address chk/dbs offset size free bpages flags pathname 10a27918 1 1 0 100000 91732 PO- /home/informix/links/rootdbs 1 active, 2047 maximum
Create the the dbspace "sisisdbs":
$ onspaces -c -d sisisdbs -p /home/informix/links/sisisdbs -o 0 -s 2000000
If necessary, also create the following dbspaces:
$ onspaces -c -d sisisdbs -p /home/informix/links/logdbs -o 0 -s <size in pages> $ onspaces -c -d sisisdbs -p /home/informix/links/physdbs -o 0 -s <size in pages> $ onspaces -c -d sisisdbs -p /home/informix/links/siasdbs -o 0 -s <size in pages> $ onspaces -c -d sisisdbs -p /home/informix/links/sieradbs -o 0 -s <size in pages> $ onspaces -c -d sisisdbs -p /home/informix/links/sikisdbs -o 0 -s <size in pages>
Finally create the dbspace "tempdbs" with these options:
$ onspaces -c -t -d tempdbs -p /home/informix/links/tempdbs -o 0 -s 1000000
After this change the variable DBSPACETEMP in the file $INFORMIXDIR/etc/onconfig.sisis (this can only be done now!):
$ vi /opt/informix/etc/onconfig.sisis DBSPACETEMP /home/informix/links/tempdbs # Default temp dbspaces
At last perform a level0 archive (the archive will be created at $TAPEDEV/level0 ):
$ ontape -s -L 0