Monday, September 24, 2007

Holy Crap Batman!

After a couple of hours trying to get the IDS (Informix Dynamic Server) initialized, reinstalling because I was SURE I'd missed something when the 'Custom Install' option never appeared, I finally realized that the installation wizard was not liking it that I was installing from a network share. I copied the install tarball to my home directory, then ran it again. The 'Custom' option was there for the IDS 11.1 this time! I went ahead and installed the Demo database. I figure that I can edit the onconfig.std file from it rather than creating a new one from scratch. Long story slightly less long: the Informix engine is up and running.

I'll do some testing and whatnot before I go edit the onconfig.std.

$PATH

# PATH=$PATH:/opt/IBM/informix
# export PATH
# echo $PATH

Installing Dynamic Server with Selected Features

No sense delaying it any longer. It's time to run the setup.

# ids_install

Do you want to run installer in GUI mode [y/n] : n

Apparently you have to have a DISPLAY environment variable set to use GUI mode.

*Choose (4) Begin Installation

Welcome to the InstallShield Wizard for IBM Informix Dynamic Server Version 11.10 Bundle

Accept the license agreement without reading it. You may have just contractually obligated your soul to IBM, but you'll never know, because you don't ever read license agreements.

Select the products you would like to install:

To select/deselect a product or to change its setup type, type its number:

Product Setup Type
------------------------------------------------ ------------------------
1. [ ] IBM Informix IConnect Version 3.00
2. [x] IBM Informix Client-SDK Version 3.00 Typical
3. [x] IBM Informix JDBC Driver Version 3.10

Other options:

0. Continue installing


BLAH BLAH BLAH. I accepted all the default suggestions. It installed successfully, but when I tried to run dbaccessdemo, I realized that I never put /opt/IBM/informix in my PATH environmental variable.

Informix User and Group

Need to add the informix group and username.

# groupadd informix
# useradd -g informix informix

Back to the Install

After a diversion to take care of the Samba mount, I installed the JRE to /usr/java.

The documentation says I'm ready load the product files now. Uncompressing the install file.

# tar xvf C1228NA.tar

It takes quite a while to un-tar everything. While that is running, The onstat Quick Reference looks like it will be very useful in the future.

Mounting the Samba Share

For me, these installs are rarely a linear event moving from point A to B on through to the finish. I have hit my first digression. I downloaded the installation media at my desktop machine, which is Windows based. The files are saved on a network share which is accessible to Linux as a samba share. However, I never mounted that directory, so I need to go back and fix that.

# vi /etc/fstab
Because I'm connecting to a CIFS share, I add this line:

//server/files_directory$ /mnt/files_directory cifs user=administrator,pass=xxxxxxxx,domain=domain.com

# cd /mnt/
# mkdir files_directory
# mount /mnt/files_directory

Now that I've mounted the fileshare, I can go back to what I was doing.

Java Runtime Environment

In earlier attempts to install Informix, I've run into headaches and frustrations with the JRE. The installation instructions are not very clear on the JRE. It says you need the JRE that came bundled with the software to uninstall. The installation process will search to see if JRE ver. 1.4.2 or later is on the system. If it is not, it automatically extracts the correct JRE from the .jvm.bin file included with the installation media.

After a couple of close readings of the instructions, I've decided to manually install the copy of the JRE that came with the software.