Installs DB2® database
products. This command is only available on Windows operating systems. The command for UNIX operating systems is db2setup.
This utility is located on the DB2 installation media. It launches the DB2 Setup wizard to define the installation and install DB2 database products. If invoked
with the -u option, it performs an installation
without further input, taking installation configuration information
from a response file.
When installing the IBM® Data Server Runtime Client on Windows, the setup options are different
from DB2 product installation.
Refer to "IBM Data Server
Runtime Client installation command line options (Windows)" for the appropriate options.
Command syntax
>>-setup--+-----+--+-----+--+---------------+------------------->
'- -c-' '- -f-' '- -i--language-'
>--+---------------+--+-----+--+------------------------+------->
'- -l--log-file-' '- -m-' '- -p--install-directory-'
>--+-----------------+--+--------------------+------------------>
'- -t--trace-file-' '- -u--response-file-'
>--+--------------------+--+-----+--+-----+--------------------><
'- -n--DB2-copy-name-' '- -o-' +- -?-+
'- -h-'
Command parameters
Note: The install DB2 setup command
can use the / or - switch
symbols interchangeably.
- -c
- Ensures that the setup.exe exits immediately
after starting the installation. By selecting this option, the return
code of the installation is not available when monitoring the exit
code of setup.exe.
- -f
- Forces any DB2 processes
to stop before installing.
- -i language
- Specifies the two-letter language code of the language in which
to perform the installation.
- -l log-file
- Full path and file name of the log file to use.
- -m
- Used with -u option to show the progress
dialog during the installation. However, it will not prompt for any
input.
- -p install-directory
- Changes the installation path of the product. Specifying this
option overrides the installation path that is specified in the response
file.
- -t trace-file
- Generates a file with install trace information.
- -u response-file
- Specifies the full path and file name of the response file to
use.
- -n DB2-copy-name
- Specifies the DB2 copy name
that you want the install to use. Specifying this option overrides
the copy name that is specified in the response file.
- -o
- Always perform a new copy installation with a generated default
copy name. This option is only available for installing the IBM Data
Server Driver Package on Windows.
- -? | -h
- Generates usage information.
Usage notes
- When
specifying the full path, the path name must be contained within double
quotation marks.