DB2 Version 9.7 for Linux, UNIX, and Windows

Setting the location for accessing the DB2 Information Center

About this task

If you want to change the location from which the DB2 documentation in the DB2 Information Center is accessed, you must change the values for the DB2_DOCHOST and DB2_DOCPORT variables. The DB2 Information Center can be accessed from the IBM Web site (default location), an intranet server, or locally, from your own computer.

Before you begin

Procedure

  1. Determine the appropriate values for the DB2_DOCHOST and DB2_DOCPORT variables. The values are determined by whether you want to access the DB2 Information Center from the IBM website, an intranet server, or from your own computer.
    Access location Values for DB2_DOCHOST and DB2_DOCPORT
    IBM Web site (default location)
    • DB2_DOCHOST: Use the value publib.boulder.ibm.com/infocenter/db2luw/v9r7
    • DB2_DOCPORT: Not applicable.
    Intranet server
    • DB2_DOCHOST: Use the host name of the intranet server. For example, companyserver.companyname.com
    • DB2_DOCPORT: Use the port number of intranet server. For example, 51000
    Local computer
    Network Information Center
    • DB2_DOCHOST: Use the host name of the local computer or the value "localhost".
    • DB2_DOCPORT: Use the port number of the local computer. For example, 51000
    Workstation version of the DB2 Information Center
    • DB2_DOCHOST: Use the host name of the local computer or the value "localhost".
    • DB2_DOCPORT: Use the port number of the local computer. For example, 51097
  2. Update the DB2_DOCHOST and DB2_DOCPORT variables.

    You can change the values for these variables for all instances (globally), for a particular instance, or for an individual user profile at the operating-system or environment level.

    The order of precedence in which the values for these variables are used from the least to the greatest is as follows: global, instance, and environment. This order of precedence means that setting the variables at the environment level overrides any global level and instance level settings for the variables. During installation, these variables are set at the global level only.

    • Set the location for accessing the DB2 Information Center at the environment level
      On Windows operating systems:
      1. Click Start > Settings > Control Panel > System.
      2. From the System Properties dialog, click the Advanced tab.
      3. To open the Environment Variables window, click the Environment Variables push button.
      4. To add or update the current values of the DB2_DOCHOST and DB2_DOCPORT variables, click the New or Edit push buttons.
      For Linux and UNIX operating systems, use the export command or add the variables to the user's profile file.
    • Set the location for accessing the DB2 Information Center at the instance level using the Tools Settings notebook
      1. To open the Tools Settings notebook, click Tools Settings icon on the DB2 toolbar, and then click the Documentation tab.
      2. In the Documentation location fields, specify for this instance where to access the DB2 Information Center.
      3. To have the Documentation location values take effect, including resetting the default values, click Set and restart the center in which you are working.
    • Set the location for accessing the DB2 Information Center at the global level, use the Configuration Assistant or the db2set command.
      For example:
      db2set DB2_DOCHOST = companyserver.companyname.com
      db2set DB2_DOCPORT = 51000
  3. Confirm the current values of the DB2_DOCHOST and DB2_DOCPORT variables.

    Issue the command db2set -all without parameters in the command line processor. The characters [g], [i], or [e] next to the output values indicate that the values are set at the global, instance, or environment levels respectively.