The DB2 Information Center delivers the DB2 product documentation inside an Eclipse-based help system, and provides a convenient way to search and utilize the DB2 documentation.
To begin, mount the DB2 Information Center CD in your system drive, or if you downloaded the compressed file through the Express-C website, expand the tarball containing the installation utilities.
Change to the base directory (doce/disk1/) and run the db2setup utility. This will launch the DB2 setup wizard. You can also use the other setup methods, but since the GUI installation sets up and configures everything for you, it's the method I recommend.
Select the "Install a Product" option from the launcher, and then click the "Install New" button in the main panel.
Read the description and click "Next".
Read the license agreement, and if you agree, select "Accept" and click "Next".
By default, the installation script will install the Information Center locally and generate a response file. The choice is up to you, but we're only doing a local install, so choose the "Install DB2 Information Center on this computer" option instead. Click "Next".
Add any additional languages that you want to have installed. English is installed by default and cannot be deselected. Each additional language will add anywhere from 5 MB to 50 MB to the installation size. Click "Next".
The next panel is where things get a little interesting. Here you can specify the service name that the Information Center will run under. An entry will be added to the /etc/services file for this service. You probably don't need to change this, unless you have another service running as "db2icv91".
Also, this panel is where you specify the system port that the Information Center will use to serve up the documentation. By default, this is port 51000.
These settings will change the configuration for all DB2 products installed on the local system, so that their help system will use the parameters you define here. Click "Next".
Read the summary of what will be done, then click "Finish" to start the file installation
You can change which directory the Information Center uses as a temporary working directory. To do this, modify the DB2_ECLIPSEIC_DATA parameter in the db2ic.conf file found in the /opt/ibm/db2ic/V9/cfg directory. The temporary directory can be anywhere where the "bin" user can write to.
Also in this file, you can change the port used to serve up the Information Center, in case you change your mind later on about the one you set up during the install. Just change the DB2_ECLIPSEIC_PORT parameter to the new number (though it must be a port under the maximum of 65535).
After making any changes, do a
The Information Center daemon is set up during installation and is used to launch the background process that runs the Information Center. The daemon script, named db2icdv9 is installed to the /etc/init.d/ directory, and start up symbolic links are added to the /etc/init.d/rc.X/ run-level folders. By default, the daemon is turned on for run-levels 3 and 5. You can modify these run-levels with any system init utility (chkconfig, ntsysv, or any of the X-based variants).
There are 5 commands you can pass to the daemon:
start — Starts the Information Center, using the configuration parameters set in the /opt/ibm/db2ic/V9/cfg/db2ic.conf file.
stop — Halts a running Information Center.
restart — A combination command that stops, then starts the daemon again.
reload — Same as restart.
status — Provides information on whether the Information Center is running, and if it is running, what the process IDs (PID) are.
There are three possible methods to access the DB2 Information Center:
Via the publib.boulder.ibm.com Web site (this is the default option enabled during a DB2 installation)
Via an intranet machine that is hosting the DB2 Information Center within your own organization
Via an Information Center that is installed and set up on your local machine
To make the change using the GUI tools (Control Center), open the Tools menu, select Tools Settings, and then the Documentation tab. On this panel, you can specify a host URL and port where an Information Center can be found. When putting a hostname in, do not add the "http://" prefix, or any subdirectories – just type in the hostname, and the internal code will do the rest.
To change the access points from the command line, execute these commands:
db2set DB2_DOCHOST=host_URL db2set DB2_DOCPORT=host_port
By default, these DB2 environment settings are blank, which means that DB2 defaults to the http://publib.boulder.ibm.com/infocenter/db2help/ Web site.
To invoke the DB2 Information Center from the GUI tools, click on the "?" icon in the toolbar, any of the "Help" hyperlinks or buttons, or by selecting any of the menu items in the "Help" menu.
To invoke the DB2 Information Center from the command line, issue any of these commands: