1. Installation INFORMIX IDS 9.4
1.1. Vorbereitende Maßnahmen und Infos
1.2. Setzen der Umgebungsvariablen
1.3. Die Datei sqlhosts
1.4. Die Datei onconfig
1.5. Starten und Stoppen des Onlinesystems
2. Installation des Client Software Development Kit (CSDK) incl. esql/c
1. Installation INFORMIX IDS 9.4
1.1. Vorbereitende Maßnahmen und Infos
- Für die Installation ist es wichtig, dass das HOME-Verzeichnis des Users ?informix" gleich ist mit dem späteren ?INFORMIXDIR", in unserem Beispiel wurde gewählt:
/ag/INF94
- Es sollte auf dem Server ein User ?informix" und eine Gruppe ?informix" angelegt sein. Der User ?informix" soll Mitglied in der Gruppe ?informix" sein.
è Eine Neue Gruppe ?informix" fügt man hinzu indem man in der Datei /etc/group folgende Zeile einfügt:
informix:x:1002:
Die ID 1002 darf natürlich noch nicht für eine andere Gruppe verwendet worden sein.
è Einen neuen User ?informix legt man mit folgendem Kommando an:
(als ROOT ausführen: )
useradd -c "Databaseadmin" -d /ag/INF94 -g informix -s /bin/bash -m -u 1001 -o informix
Die UID 1001 darf noch nicht an einen anderen User vergeben worden sein
(siehe /etc/passwd)
Zum Schluß noch HOME-Verzeichnis anlegen und dem User informix zuordnen, dann Passwort setzen:
(als root ausführen: )
mkdir /ag/INF94
chown informix:informix /ag/INF94
passwd informix
- Nun sollte die Installationsdatei ?IBM.IDS.9.40.UC2E1.cpi" in das HOME-Verzeichnis gebracht werden (ftp, oder so)
Ausführen als User ?informix":
bash-2.05$ export INFORMIXDIR=/ag/INF94
bash-2.05$ pwd
/ag/INF94
bash-2.05$ ls -la
insgesamt 192340
drwxr-x--- 2 informix informix 4096 Dez 1 21:47 .
drwxr-xr-x 9 root root 4096 Dez 1 21:47 ..
-rw-r-r- 1 informix informix 196751360 Dez 1 00:36 IBM.IDS.9.40.UC2E1.cpi
bash-2.05$
Die eigentliche Installation ist in 2 Teile aufgeteilt. 1 Teil wird als User ?informix" ausgeführt, 1 Teil als ?root"
Als ?informix" ausführen: bash-2.05$ cpio -i <IBM.IDS.9.40.UC2E1.cpi
384280 blocks
bash-2.05$ ls -la
insgesamt 384692
drwxr-x--- 2 informix informix 4096 Dez 1 21:58 .
drwxr-xr-x 9 root root 4096 Dez 1 21:47 ..
-rw-rw-rw- 1 informix informix 36019200 Dez 1 21:58 Gls.cpi
-rw-r-r- 1 informix informix 196751360 Dez 1 00:36 IBM.IDS.9.40.UC2E1.cpi
-rw-rw-rw- 1 informix informix 157992960 Dez 1 21:58 IDSServer.cpi
-rwxr-xr-x 1 informix informix 13130 Dez 1 21:58 install_gls
-rwxr-xr-x 1 informix informix 13517 Dez 1 21:58 install_msg
-rwxr-xr-x 1 informix informix 23182 Dez 1 21:58 installserver
-rw-rw-rw- 1 informix informix 2688000 Dez 1 21:58 Message.cpi
bash-2.05$
è Die Installationsdatei ?IBM.IDS.9.40.UC2E1.cpi" kann zu diesem Zeitpunkt eigentlich gelöscht werden.... wenn man noch ´ne Sicherheitskopie irgendwo hat.
Nach dem entpacken des cpio-Archives erfolgt die Installation als User ?informix":
bash-2.05$./installserver
Extracting the message files to /tmp/install
525 blocks
Installing Messages...\n
Installing directory /ag/INF94/etc
Installing directory /ag/INF94/msg
Installing directory /ag/INF94/msg/en_us
Installing directory /ag/INF94/msg/en_us/0333
moved msg/en_us/0333/n4gl.iem to msg/en_us/0333/4gl.iem
moved msg/en_us/0333/n4glusr.iem to msg/en_us/0333/4glusr.iem
moved msg/en_us/0333/nforms.iem to msg/en_us/0333/forms.iem
moved msg/en_us/0333/nformbld.iem to msg/en_us/0333/formbld.iem
...done installing messages
Extracting the GLS files to /tmp/install
7035 blocks
Adding the gls files
Installing GLS...\n
Installing directory /ag/INF94/gls
Installing directory /ag/INF94/gls/cm3
Installing directory /ag/INF94/gls/cv9
Installing directory /ag/INF94/gls/dll
Installing directory /ag/INF94/gls/etc
Installing directory /ag/INF94/gls/lc11
Installing directory /ag/INF94/gls/lc11/cs_cz
Installing directory /ag/INF94/gls/lc11/da_dk
Installing directory /ag/INF94/gls/lc11/de_at
Installing directory /ag/INF94/gls/lc11/de_ch
Installing directory /ag/INF94/gls/lc11/de_de
Installing directory /ag/INF94/gls/lc11/en_au
Installing directory /ag/INF94/gls/lc11/en_gb
Installing directory /ag/INF94/gls/lc11/en_us
Installing directory /ag/INF94/gls/lc11/es_es
Installing directory /ag/INF94/gls/lc11/fi_fi
Installing directory /ag/INF94/gls/lc11/fr_be
Installing directory /ag/INF94/gls/lc11/fr_ca
Installing directory /ag/INF94/gls/lc11/fr_ch
Installing directory /ag/INF94/gls/lc11/fr_fr
Installing directory /ag/INF94/gls/lc11/is_is
Installing directory /ag/INF94/gls/lc11/it_it
Installing directory /ag/INF94/gls/lc11/ja_jp
Installing directory /ag/INF94/gls/lc11/ko_kr
Installing directory /ag/INF94/gls/lc11/nl_be
Installing directory /ag/INF94/gls/lc11/nl_nl
Installing directory /ag/INF94/gls/lc11/no_no
Installing directory /ag/INF94/gls/lc11/os
Installing directory /ag/INF94/gls/lc11/pl_pl
Installing directory /ag/INF94/gls/lc11/pt_br
Installing directory /ag/INF94/gls/lc11/pt_pt
Installing directory /ag/INF94/gls/lc11/ru_ru
Installing directory /ag/INF94/gls/lc11/sk_sk
Installing directory /ag/INF94/gls/lc11/sv_se
Installing directory /ag/INF94/gls/lc11/th_th
Installing directory /ag/INF94/gls/lc11/zh_cn
Installing directory /ag/INF94/gls/lc11/zh_tw
...done installing GLS files
extracting contents of IDSServer.cpi. Please wait...
30858 blocks
IBM Informix Dynamic Server Version 9.40.UC2E1
Copyright (C) 1986-2003 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.
WARNING!
This software, and its authorized use and number of users, are
subject to the applicable license agreement with IBM Corporation.
If the number of users exceeds the licensed number, the excess users may
be prevented from using the software. UNAUTHORIZED USE OR COPYING MAY
SUBJECT YOU AND YOUR COMPANY TO SEVERE CIVIL AND CRIMINAL LIABILITIES.
Press RETURN to continue,
or the interrupt key (usually CTRL-C or DEL) to abort.
Installing directory .
Installing directory aaodir
Installing directory bin
Installing directory snmp
Installing directory snmp/snmpr
Installing directory snmp/peer
Installing directory dbssodir
Installing directory lib
Installing directory lib/csm
Installing directory etc
Installing directory etc/conv
Installing directory extend
Installing directory extend/LLD.1.20.UC2
Installing directory extend/LLD.1.20.UC2/incl
Installing directory extend/LLD.1.20.UC2/lib
Installing directory extend/ifxmngr
Installing directory incl
Installing directory incl/dbdk
Installing directory extend/ifxrltree.2.00
Installing directory extend/ifxbuiltins.1.1
Installing directory incl/hpl
Installing directory incl/esql
Installing directory incl/public
Installing directory release
Installing directory release/en_us
Installing directory release/en_us/0333
Installing directory forms
Installing directory demo
Installing directory demo/dbaccess
Installing directory demo/dbaccess/demo_ids
Installing directory demo/dbaccess/demo_ud
Installing directory help
Installing directory help/ipload
Installing directory help/ipload/tut_images
Installing directory help/onperf
Installing directory doc
Installing directory doc/gls_api
Installing directory doc/gls_api/en_us
Installing directory doc/gls_api/en_us/0333
Installing directory ism
**************************************************************
To complete the installation of Informix Dynamic Server ,
run /ag/INF94/RUN_AS_ROOT.server as root.
**************************************************************
Informix user portion of installation of Informix Dynamic Server complete.
Als User ?root": root@Q9JB7:/# cd /ag/INF94
root@Q9JB7:/ag# export INFORMIXDIR=/ag/INF94
root@Q9JB7:/ag/INF94# ./RUN_AS_ROOT.server
Informix Product: Informix Dynamic Server
Installation Directory: /ag/INF94
Performing root portion of installation of Informix Dynamic Server ...
Installation of Informix Dynamic Server complete.
Danach ergibt sich folgendes Bild im Verzeichnis /ag/INF94: total 140
drwxr-xr-x 18 informix informix 4096 Dec 1 22:19 .
drwxr-xr-x 9 root root 4096 Dec 1 22:19 ..
-r-x------ 1 informix informix 9977 Dec 1 22:09 RUN_AS_ROOT.server
drwxr-xr-x 2 informix informix 4096 Dec 1 22:09 aaodir
drwxr-xr-x 2 informix informix 4096 Dec 1 22:09 bin
drwxr-xr-x 2 informix informix 4096 Dec 1 22:09 dbssodir
drwxr-xr-x 3 informix informix 4096 Dec 1 22:09 demo
drwxr-xr-x 3 informix informix 4096 Dec 1 22:09 doc
drwxrwxr-x 3 informix informix 4096 Dec 1 22:17 etc
drwxr-xr-x 6 informix informix 4096 Dec 1 22:09 extend
drwxr-xr-x 2 informix informix 4096 Dec 1 22:09 forms
drwxr-xr-x 7 informix informix 4096 Dec 1 22:09 gls
drwxr-xr-x 4 informix informix 4096 Dec 1 22:09 help
drwxr-xr-x 6 informix informix 4096 Dec 1 22:09 incl
-rwxr-xr-x 1 informix informix 13130 Dec 1 22:08 install_gls
-rwxr-xr-x 1 informix informix 13517 Dec 1 22:08 install_msg
-rwxr-xr-x 1 informix informix 23182 Dec 1 22:08 installserver
drwxr-xr-x 2 informix informix 4096 Dec 1 22:09 ism
drwxr-xr-x 3 informix informix 4096 Dec 1 22:09 lib
drwxr-xr-x 3 informix informix 4096 Dec 1 22:09 msg
drwxr-xr-x 3 informix informix 4096 Dec 1 22:09 release
drwxr-xr-x 4 informix informix 4096 Dec 1 22:09 snmp
root@Q9JB7:/ag/INF94#
1.2. Setzen der Umgebungsvariablen
Die Datei /usr/local/sct/INF94 setzt die Umgebungsvariablen für die neue Datenbankumgebung und wird zukünftig (z.B. in der Datei $HOME/.profile) automatisch aufgerufen bevor die Datenbank gestartet wird....
Aufruf:
. /usr/local/sct/INF94
Inhalt der Datei: #!/bin/bash
LANG=de_DE.ISO-8859-1 # uncomment this line for German output
INFORMIXDIR=/ag/INF94
DBDATE=DMY4.
DBSERVER=q9jb7
INFORMIXSERVER=q9jb7
DBNAME=DATENBANKNAME
ONCONFIG=onconfig
PATH=$INFORMIXDIR/bin:$PATH
export DBSERVER DBDATE INFORMIXDIR PATH INFORMIXSERVER DBNAME LANG ONCONFIG
1.3. Die Datei sqlhosts
Die Datei $INFORMIXDIR/etc/sqlhosts soll folgenden Inhalt haben:
(q9jb7 durch ihren Rechnernamen ersetzen)
#**************************************************************************
#
# INFORMIX SOFTWARE, INC.
#
# PROPRIETARY DATA
#
#THIS DOCUMENT CONTAINS TRADE SECRET DATA WHICH IS THE PROPERTY OF
#INFORMIX SOFTWARE, INC. THIS DOCUMENT IS SUBMITTED TO RECIPIENT IN
#CONFIDENCE. INFORMATION CONTAINED HEREIN MAY NOT BE USED, COPIED OR
#DISCLOSED IN WHOLE OR IN PART EXCEPT AS PERMITTED BY WRITTEN AGREEMENT
#SIGNED BY AN OFFICER OF INFORMIX SOFTWARE, INC.
#
#THIS MATERIAL IS ALSO COPYRIGHTED AS AN UNPUBLISHED WORK UNDER
#SECTIONS 104 AND 408 OF TITLE 17 OF THE UNITED STATES CODE.
#UNAUTHORIZED USE, COPYING OR OTHER REPRODUCTION IS PROHIBITED BY LAW.
#
#
# Title:sqlhosts.demo
# Sccsid:@(#)sqlhosts.demo 9.2 7/15/93 15:20:45
# Description:
#Default sqlhosts file for running demos.
#
#**************************************************************************
#
q9jb7 onipcshm q9jb7 q9jb7
#demo_se seipcpip se_hostname sqlexec
1.4. Die Datei onconfig
Die Datei $INFORMIXDIR/etc/onconfig sollte folgenden Inhalt haben:
(Anmerkung: Das Tapedevice auf /dev/null zu setzen macht man nicht auf der Maschine seines Lieblingskunden !)
Hinweis: Ich empfehle den Inhalt der Datei onconfig und onconfig.std gleichzuhalten !!
(Den Rechnernamen q9jb7 durch ihren Rechnernamen ersetzen wie in sqlhosts)
#**************************************************************************
#
# INFORMIX SOFTWARE, INC.
#
# Title: onconfig.std
# Description: Informix Dynamic Server Configuration Parameters
#
#**************************************************************************
# Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace name
ROOTPATH /ag/INF94/online_root # Path for device containing root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
ROOTSIZE 80000 # Size of root dbspace (Kbytes)
# Disk Mirroring Configuration Parameters
MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
MIRRORPATH # Path for device containing mirrored root
MIRROROFFSET 0 # Offset into mirrored device (Kbytes)
# Physical Log Configuration
PHYSDBS rootdbs # Location (dbspace) of physical log
PHYSFILE 2000 # Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 6 # Number of logical log files
LOGSIZE 2000 # Logical log size (Kbytes)
# Diagnostics
MSGPATH /ag/INF94/online.log # System message log file path
CONSOLE /dev/console # System console message path
# To automatically backup logical logs, edit alarmprogram.sh and set
# BACKUPLOGS=Y
ALARMPROGRAM /ag/INF94/etc/alarmprogram.sh # Alarm program path
TBLSPACE_STATS 1 # Maintain tblspace statistics
# System Archive Tape Device
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)
# Optical
STAGEBLOB # Informix Dynamic Server staging area
# System Configuration
SERVERNUM 0 # Unique id corresponding to a OnLine instance
DBSERVERNAME q9jb7 # Name of default database server
DBSERVERALIASES # List of alternate dbservernames
DEADLOCK_TIMEOUT 60 # Max time to wait of lock in distributed env.
RESIDENT 0 # Forced residency flag (Yes = 1, No = 0)
MULTIPROCESSOR 0 # 0 for single-processor, 1 for multi-processor
NUMCPUVPS 1 # Number of user (cpu) vps
SINGLE_CPU_VP 0 # If non-zero, limit number of cpu vps to one
NOAGE 0 # Process aging
AFF_SPROC 0 # Affinity start processor
AFF_NPROCS 0 # Affinity number of processors
# Shared Memory Parameters
LOCKS 2000 # Maximum number of locks
BUFFERS 5000 # Maximum number of shared buffers
NUMAIOVPS # 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 0x44000000 # Shared memory base address
SHMVIRTSIZE 8000 # initial virtual shared memory segment size
SHMADD 8192 # Size of new shared memory segments (Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
CKPTINTVL 300 # Check point interval (in sec)
LRUS 8 # Number of LRU queues
LRU_MAX_DIRTY 60.000000 # LRU percent dirty begin cleaning limit
LRU_MIN_DIRTY 50.000000 # LRU percent dirty end cleaning limit
TXTIMEOUT 0x12c # Transaction timeout (in sec)
STACKSIZE 32 # Stack size (Kbytes)
# Dynamic Logging
# DYNAMIC_LOGS:
# 2 : server automatically add a new logical log when necessary. (ON)
# 1 : notify DBA to add new logical logs when necessary. (ON)
# 0 : cannot add logical log on the fly. (OFF)
#
# When dynamic logging is on, we can have higher values for LTXHWM/LTXEHWM,
# because the server can add new logical logs during long transaction rollback.
# However, to limit the number of new logical logs being added, LTXHWM/LTXEHWM
# can be set to smaller values.
#
# If dynamic logging is off, LTXHWM/LTXEHWM need to be set to smaller values
# to avoid long transaction rollback hanging the server due to lack of logical
# log space, i.e. 50/60 or lower.
DYNAMIC_LOGS 2
LTXHWM 70
LTXEHWM 80
# System Page Size
# BUFFSIZE - OnLine no longer supports this configuration parameter.
# To determine the page size used by OnLine on your platform
# see the last line of output from the command, 'onstat -b'.
# Recovery Variables
# OFF_RECVRY_THREADS:
# Number of parallel worker threads during fast recovery or an offline restore.
# ON_RECVRY_THREADS:
# Number of parallel worker threads during an online restore.
OFF_RECVRY_THREADS 10 # Default number of offline worker threads
ON_RECVRY_THREADS 1 # Default number of online worker threads
# Data Replication Variables
DRINTERVAL 30 # DR max time between DR buffer flushes (in sec)
DRTIMEOUT 30 # DR network timeout (in sec)
DRLOSTFOUND /ag/INF94/etc/dr.lostfound # DR lost+found file path
# CDR Variables
CDR_EVALTHREADS 1,2 # evaluator threads (per-cpu-vp,additional)
CDR_DSLOCKWAIT 5 # DS lockwait timeout (seconds)
CDR_QUEUEMEM 4096 # Maximum amount of memory for any CDR queue (Kbytes)
CDR_NIFCOMPRESS 0 # Link level compression (-1 never, 0 none, 9 max)
CDR_SERIAL 0,0 # Serial Column Sequence
CDR_DBSPACE # dbspace for syscdr database
CDR_QHDR_DBSPACE # CDR queue dbspace (default same as catalog)
CDR_QDATA_SBSPACE # List of CDR queue smart blob spaces
# CDR_MAX_DYNAMIC_LOGS
# -1 => unlimited
# 0 => disable dynamic log addition
# >0 => limit the no. of dynamic log additions with the specified value.
# Max dynamic log requests that CDR can make within one server session.
CDR_MAX_DYNAMIC_LOGS 0 # Dynamic log addition disabled by default
# Backup/Restore variables
BAR_ACT_LOG /ag/INF94/bar_act.log # ON-Bar Log file - not in /tmp please
BAR_DEBUG_LOG /ag/INF94/bar_dbug.log # ON-Bar Debug Log - not in /tmp please
BAR_MAX_BACKUP 0
BAR_RETRY 1
BAR_NB_XPORT_COUNT 10
BAR_XFER_BUF_SIZE 31
RESTARTABLE_RESTORE on
BAR_PROGRESS_FREQ 0
# Informix Storage Manager variables
ISM_DATA_POOL ISMData
ISM_LOG_POOL ISMLogs
# Read Ahead Variables
RA_PAGES # Number of pages to attempt to read ahead
RA_THRESHOLD # Number of pages left before next group
# DBSPACETEMP:
# OnLine equivalent of DBTEMP for SE. This is the list of dbspaces
# that the OnLine SQL Engine will use to create temp tables etc.
# If specified it must be a colon separated list of dbspaces that exist
# when the OnLine system is brought online. If not specified, or if
# all dbspaces specified are invalid, various ad hoc queries will create
# temporary files in /tmp instead.
DBSPACETEMP # Default temp dbspaces
# DUMP*:
# The following parameters control the type of diagnostics information which
# is preserved when an unanticipated error condition (assertion failure) occurs
# during OnLine operations.
# For DUMPSHMEM, DUMPGCORE and DUMPCORE 1 means Yes, 0 means No.
DUMPDIR /tmp # Preserve diagnostics in this directory
DUMPSHMEM 1 # Dump a copy of shared memory
DUMPGCORE 0 # Dump a core image using 'gcore'
DUMPCORE 0 # Dump a core image (Warning:this aborts OnLine)
DUMPCNT 1 # Number of shared memory or gcore dumps for
# a single user's session
FILLFACTOR 90 # Fill factor for building indexes
# method for OnLine to use when determining current time
USEOSTIME 0 # 0: use internal time(fast), 1: get time from OS(slow)
# Parallel Database Queries (pdq)
MAX_PDQPRIORITY 100 # Maximum allowed pdqpriority
DS_MAX_QUERIES # Maximum number of decision support queries
DS_TOTAL_MEMORY # Decision support memory (Kbytes)
DS_MAX_SCANS 1048576 # Maximum number of decision support scans
DATASKIP off # List of dbspaces to skip
# OPTCOMPIND
# 0 => Nested loop joins will be preferred (where
# possible) over sortmerge joins and hash joins.
# 1 => If the transaction isolation mode is not
# "repeatable read", optimizer behaves as in (2)
# below. Otherwise it behaves as in (0) above.
# 2 => Use costs regardless of the transaction isolation
# mode. Nested loop joins are not necessarily
# preferred. Optimizer bases its decision purely
# on costs.
OPTCOMPIND 2 # To hint the optimizer
DIRECTIVES 1 # Optimizer DIRECTIVES ON (1/Default) or OFF (0)
ONDBSPACEDOWN 2 # Dbspace down option: 0 = CONTINUE, 1 = ABORT, 2 = WAIT
OPCACHEMAX 0 # Maximum optical cache size (Kbytes)
# HETERO_COMMIT (Gateway participation in distributed transactions)
# 1 => Heterogeneous Commit is enabled
# 0 (or any other value) => Heterogeneous Commit is disabled
HETERO_COMMIT 0
SBSPACENAME # Default smartblob space name - this is where blobs
# go if no sbspace is specified when the smartblob is
# created. It is also used by some datablades as
# the location to put their smartblobs.
SYSSBSPACENAME # Default smartblob space for use by the Informix
# Server. This is used primarily for Informix Server
# system statistics collection.
BLOCKTIMEOUT 3600 # Default timeout for system block
SYSALARMPROGRAM /ag/INF94/etc/evidence.sh # System Alarm program path
# Optimization goal: -1 = ALL_ROWS(Default), 0 = FIRST_ROWS
OPT_GOAL -1
ALLOW_NEWLINE 0 # embedded newlines(Yes = 1, No = 0 or anything but 1)
#
# The following are default settings for enabling Java in the database.
# Replace all occurrences of /usr/informix with the value of $INFORMIXDIR.
#VPCLASS jvp,num=1 # Number of JVPs to start with
JVPJAVAHOME /ag/INF94/extend/krakatoa/jre # JRE installation root directory
JVPHOME /ag/INF94/extend/krakatoa # Krakatoa installation directory
JVPPROPFILE /ag/INF94/extend/krakatoa/.jvpprops # JVP property file
JVPLOGFILE /ag/INF94/jvp.log # JVP log file.
JDKVERSION 1.3 # JDK version supported by this server
# The path to the JRE libraries relative to JVPJAVAHOME
JVPJAVALIB /lib/i386/
# The JRE libraries to use for the Java VM
JVPJAVAVM hpi:server:verify:java:net:zip:jpeg
# use JVPARGS to change Java VM configuration
#To display jni call
#JVPARGS -verbose:jni
# Classpath to use upon Java VM start-up (use _g version for debugging)
#JVPCLASSPATH /usr/informix/extend/krakatoa/krakatoa_g.jar:/usr/informix/extend/krakatoa/jdbc_g.jar
JVPCLASSPATH /ag/INF94/extend/krakatoa/krakatoa.jar:/ag/INF94/extend/krakatoa/jdbc.jar
Hinweis: Ich empfehle den Inhalt der Datei onconfig und onconfig.std gleichzuhalten !!
1.5. Vorbereitung des rootdbs:
Anmerkung: Das rootdbs kann auch in einer unformatierten Partition liegen. In unserem Beispiel ist es jedoch eine Datei (/ag/INF94/online_root). Sie wird zunächst angelegt mit 0 Byte Länge. Die Zugriffsrechte sollen auf die informix-Gruppe beschränkt bleiben. Beim Initialisieren des rootdbs mit dem onmonitor wird die Datei dann auf die eingestellte Größe gebracht.
(alle weiteren Befehle als User ?informix")
bash-2.05$ . /usr/local/sct/INF94
bash-2.05$ cd /ag/INF94
bash-2.05$ touch online_root
bash-2.05$ chmod 770 online_root
bash-2.05$ oninit -i
This action will initialize IBM Informix Dynamic Server;
any existing IBM Informix Dynamic Server databases will NOT be accessible -
Do you wish to continue (y/n)? y
bash-2.05$ ls -la online_root
-rwxrwx--- 1 root informix 81920000 Dez 4 08:51 online_root
bash-2.05$
Wichtig: Der Befehl oninit -i wird nur beim ersten hochfahren des Onlinesystems verwendet. (-i wie initialisieren). Danach gelten folgende Befehle:
1.6. Starten und Stoppen des Onlinesystems
#onlinemodus (aus offlinemodus)
oninit
#offlinemodus
#der Schalter -y unterdrückt die Sicherheitsabfrage!
onmode -ky
#quiecentmodus
#der Schalter -y unterdrückt die Sicherheitsabfrage!
onmode -sy
#onlinemodus aus offline oder quiecentmodus
onmode -m
Die Einstellungen zum Starten und stoppen des Onlinesystems können bei Linux in die Datei /etc/init.d/INF94 geschrieben werden:
Inhalt der Datei /etc/init.d/INF94: #!/bin/bash
case $1 in
start)
. /usr/local/sct/INF94
oninit
;;
stop)
. /usr/local/sct/INF94
onmode -ky
;;
status)
. /usr/local/sct/INF94
onstat -h|grep Informix
;;
*)
echo "USAGE: $0" '<start|stop|status>'
;;
esac
Auf diese Datei müssen für jeden Runlevel, die dem das Onlinesystem verfügbar sein soll 2 Links angelegt werden. Im ?Normalfall" sind dies der Runlevel 3 (Multiuser ohne Grafik) und der Runlevel 5 (Multiuser mit Grafik) Die Runleveleinstellungen sind in den Verzeichnissen /etc/rc.d/rc3.d bzw. /etc/rc.d/rc5.d
Hier sind folgende Befehle anzuwenden: root@Q9JB7:/etc/rc.d/rc3.d# ln -s ../init.d/INF94 S10_INF94
root@Q9JB7:/etc/rc.d/rc3.d# ln -s ../init.d/INF94 K10_INF94
2. Installation des Client Software Development Kit (CSDK) incl. esql/c
2.1. Archiv entpacken und installieren
Das CSDK wird in der Datei clientsdk.2.81.UC2.LINUX.tar geliefert.
Inhalt dieses Archivs (Ergebnis des Befehls: tar -tf clientsdk.2.81.UC2.LINUX.tar)csdk.cpi
./doc/
./doc/Client_release_notes_2.81.html
./doc/Client_release_notes_2.81.txt
./doc/Libcpp_release_notes_2.81.html
./doc/Libcpp_release_notes_2.81.txt
./doc/ESQLC_release_notes_2.81.html
./doc/ESQLC_release_notes_2.81.txt
./doc/Odbc_release_notes_2.81.html
./doc/Odbc_release_notes_2.81.txt
./doc/Oledb_release_notes_2.81.htm
./doc/Oledb_release_notes_2.81.txt
./doc/Gls_release_notes_2.81.html
./doc/Gls_release_notes_2.81.txt
./doc/Libcpp_docnotes_2.81.html
./doc/Libcpp_docnotes_2.81.txt
./doc/ESQLC_docnotes_2.81.html
./doc/ESQLC_docnotes_2.81.txt
./doc/Install_client_docnotes_2.81.html
./doc/Install_client_docnotes_2.81.txt
./doc/Odbc_docnotes_2.81.html
./doc/Odbc_docnotes_2.81.txt
./doc/Oledb_docnotes_2.81.html
./doc/Oledb_docnotes_2.81.txt
./doc/Glsapi_docnotes_2.81.html
./doc/Glsapi_docnotes_2.81.txt
./doc/Gls_docnotes_2.81.html
./doc/Gls_docnotes_2.81.txt
./doc/Glsapi_machine_notes_2.81.txt
./doc/Libcpp_machine_notes_2.81.txt
./doc/ESQLC_machine_notes_2.81.txt
./doc/Odbc_machine_notes_2.81.txt
./doc/Client_fixed_and_known_defects_2.81.html
./doc/Client_fixed_and_known_defects_2.81.txt
./doc/Client_install_guide.pdf
Das Archiv wird entpackt und installiert:
bash-2.05$ . /usr/local/sct/INF94
bash-2.05$ cd /ag/INF94
bash-2.05$ tar -xf clientsdk.2.81.UC2.LINUX.tar
bash-2.05$ rm install_gls install_msg #alte Installationsdateien löschen
bash-2.05$ cpio -i <csdk.cpi
bash-2.05$ ./installclientsdk
Is ClientSDK being installed along with Informix database server
version 9.x (required to be run as user "informix")?
(yes or no)
yes
Hinweis:
Im weiteren Verlauf der Installation wird gefragt ob die gls-Installation übersprungen werden soll (Weil dies schon mit der Installation des IDS durchgeführt wurde). Antworten Sie mit ?N".
Die Installation ist nicht ohne weiteres wiederholbar, da im Verlauf der Installation Dateien aus dem Installationsarchiv gelöscht werden. Wenn es Probleme gibt: ?Von vorne anfangen!"
2.2. Setzen der Pfade für die Laufzeit-Bibliotheken
Die Pfade /ag/INF94/lib und /ag/INF94/lib/esql enthalten Laufzeitbibliotheken, die im Betriebssystem bekannt sein müssen:
Andernfalls entstehen folgende Fehlermeldung bei der Ausführung des Programms: bash-2.05$ esql 02_prolist.ec
bash-2.05$ ./a.out
./a.out: error while loading shared libraries: libifsql.so: cannot open shared o
bject file: No such file or directory
bash-2.05$
Abhilfe:
#Alles folgende als User ?root":
An die Datei /etc/ld.so.conf werden die beiden o.g. Pfadangaben angefügt. bash-2.05$ cd /etc
bash-2.05$ cp ld.so.conf ld.so.con.sik #Sicherungskopie erstellen
bash-2.05$ echo /ag/INF94/lib >>ld.so.conf
bash-2.05$ echo /ag/INF94/lib/esql >>ld.so.conf
bash-2.05$ ldconfig
Ich hoffe alles ist bestens!
Freundliche Grüße
Klaus Keipke
#End of Document.