Response files use keywords. You can use a response file to perform tasks such as the following:
Sample response files are provided for both an installation and uninstallation. The following response file keywords are explained in conjunction with a sample response file. The edited response file must then be copied to your shared network drive or network file system where it will be used by your installation server.
The following response file keywords can be used to install a DB2 product, feature, or language. On Linux® or UNIX® platforms, some keywords are valid for root installation only.
DB2 installation paths have the following rules:
This keyword is required for any response file used with the db2isetup command -r response_file parameter.
The options are:
The options are:
The options are:
The options are:
The options are:
The options are:
The options are:
The options are:
The options are:
The options are:
The options are:
This keyword is supported on Linux, UNIX, and Windows platforms. However, on Linux and UNIX operating systems, this keyword is valid only for non-root installation. On Windows platforms, in addition to setting UPGRADE_PRIOR_VERSIONS to the value TRUE, you must also set the DB2_COPY_NAME keyword to the value of an existing copy name.
The options are:
Built in search paths allow automatic searching of the same parent directory. For example, if the contents of a DB2 product DVD are copied into subdirectories:
/db2images/ese/dvd /db2images/nlpack/dvd
The subdirectories are automatically searched without specifying each subdirectory:
PACKAGE_LOCATION=/db2images/ese/disk1
This includes searching subdirectories for the national language DVD.
If the contents of a DB2 product DVD are copied into different parent directories, this keyword can be repeated as many times as required. For example:
PACKAGE_LOCATION=/db2images1/dvd PACKAGE_LOCATION=/db2images2/nlpack/dvd
In a custom install, you must select components individually. This can be done by uncommenting the COMP keywords for the components that you want installed (this differs depending on the product).
The options are:
The options are:
The options are:
This keyword is optional. If the keyword is not specified, by default the contact is considered as a new contact.
The options are:
The options are:
*DAS_USERNAME = dasuser *DAS_PASSWORD = dasp *DAS_GID = 100 *DAS_UID = 100 *DAS_GROUP_NAME = dasgroup *DAS_SMTP_SERVER = jsmith.torolab.ibm.com
*DAS_USERNAME = dasuser *DAS_DOMAIN = domain *DAS_PASSWORD = dasp *DAS_SMTP_SERVER = jsmith.torolab.ibm.comYou can also specify LOCALSYSTEM as a valid userid that does not require a password. The LOCALSYSTEM userid is available for all products, except DB2 Enterprise Server Edition.
The following options specify where the DAS contact list will be kept. On Linux or UNIX platforms, these options are valid for root installation only. If the contact list is remote, then you must specify a username and password that has authority to add a contact to the system.
*DAS_CONTACT_LIST = LOCAL or REMOTE (DEFAULT = LOCAL) *DAS_CONTACT_LIST_HOSTNAME = hostname *DAS_CONTACT_LIST_USERNAME = username *DAS_CONTACT_LIST_PASSWORD = password
The following are examples of instance specifications for Windows, Linux and UNIX platforms:
*INSTANCE=DB2_INSTANCE *DB2_INSTANCE.NAME = db2inst1 *DB2_INSTANCE.TYPE = ESE *DB2_INSTANCE.PASSWORD = PASSWORD (valid for root installation only) *DB2_INSTANCE.UID = 100 (valid for root installation only) *DB2_INSTANCE.GID = 100 (valid for root installation only) *DB2_INSTANCE.GROUP_NAME = db2grp1 (valid for root installation only)) *DB2_INSTANCE.HOME_DIRECTORY = /home/db2inst1 (valid for root installation only) *DB2_INSTANCE.SVCENAME = db2cdb2inst1 *DB2_INSTANCE.PORT_NUMBER = 50000 *DB2_INSTANCE.FCM_PORT_NUMBER = 60000 (valid for root installation only) *DB2_INSTANCE.MAX_LOGICAL_NODES = 4 (valid for root installation only) *DB2_INSTANCE.AUTOSTART = YES *DB2_INSTANCE.START_DURING_INSTALL = YES *DB2_INSTANCE.FENCED_USERNAME = USERNAME (valid for root installation only) *DB2_INSTANCE.FENCED_PASSWORD = PASSWORD *DB2_INSTANCE.FENCED_UID = 100 *DB2_INSTANCE.FENCED_GID = 100 *DB2_INSTANCE.FENCED_GROUP_NAME = db2grp1 *DB2_INSTANCE.FENCED_HOME_DIRECTORY =/home/db2inst1 *DB2_INSTANCE.CONFIGURE_TEXT_SEARCH = NO *DB2_INSTANCE.TEXT_SEARCH_HTTP_SERVICE_NAME = db2j_DB2_INSTANCE (valid for root installation only) *DB2_INSTANCE.TEXT_SEARCH_HTTP_PORT_NUMBER = 55000
*INSTANCE = DB2_INSTANCE *DB2_INSTANCE.NAME = db2inst1 *DB2_INSTANCE.DEFAULT_INSTANCE = db2inst1 *DB2_INSTANCE.TYPE = ESE *DB2_INSTANCE.PASSWORD = PASSWORD *DB2_INSTANCE.AUTOSTART = YES *DB2_INSTANCE.START_DURING_INSTALL = YES *DB2_INSTANCE.SVCENAME = db2cdb2inst1 *DB2_INSTANCE.PORT_NUMBER = 50000 *DB2_INSTANCE.FCM_PORT_NUMBER = 60000 *DB2_INSTANCE.MAX_LOGICAL_NODES = 4 *DB2_INSTANCE.CONFIGURE_TEXT_SEARCH = NO *DB2_INSTANCE.TEXT_SEARCH_HTTP_SERVICE_NAME = db2j_DB2_INSTANCE *DB2_INSTANCE.TEXT_SEARCH_HTTP_PORT_NUMBER = 55000
DATABASE = DATABASE_SECTION DATABASE_SECTION.INSTANCE = db2inst1 DATABASE_SECTION.DATABASE_NAME = MYDB DATABASE_SECTION.LOCATION = LOCAL DATABASE_SECTION.ALIAS = MYDB DATABASE_SECTION.USERNAME = username DATABASE_SECTION.PASSWORD = password * these keywords are only used for REMOTE databases that are being cataloged DATABASE_SECTION.SYSTEM_NAME = hostname DATABASE_SECTION.SVCENAME = db2c_db2inst1
*TOOLS_CATALOG_DATABASE = DATABASE_SECTION
*TOOLS_CATALOG_SCHEMA = toolscat_schemaOn Linux or UNIX platforms, this keyword is valid for root installation only.
CONTACT = contact_section contact_section.NEW_CONTACT = YES contact_section.CONTACT_NAME = contact name contact_section.INSTANCE = DB2_INSTANCE contact_section.EMAIL = Email address contact_section.PAGER = NOOn Linux or UNIX platforms, this keyword is valid for root installation only.
The following options specify the host name and port number where the Information Center server is installed, and the service name and port number that the Information Center server service uses.
*DB2_DOCHOST = hostname *DB2_DOCPORT = 1024-65535 *DB2_ECLIPSEIC_SVCENAME = db2icv95 *DB2_ECLIPSEIC_PORT = 51000DB2_ECLIPSEIC_SVCENAME and DB2_ECLIPSEIC_PORT are only valid for the installation of the DB2 Information Center.
*DB2_EXTSECURITY = YES *DB2_ADMINGROUP_NAME = DB2ADMNS *DB2_USERSGROUP_NAME = DB2USER *DB2_ADMINGROUP_DOMAIN = BLANK *DB2_USERSGROUP_DOMAIN = BLANK
*NO_CONFIG = NO
The options are:
QUERY_PATROLLER_DATABASE = databas1 databas1.QP_CONTROL_TABLESPACE = db2qpControlTableS databas1.QP_CONTROL_DBPARTITIONGROUP = db2qpControlDBPGrp databas1.QP_CONTROL_DBPARTITIONNUM = 0,1,2,...,999 databas1.QP_CONTROL_PATH = any valid path databas1.QP_CONTROL_DMS = NO databas1.QP_CONTROL_DMS_CONTAINER = FILE databas1.QP_CONTROL_DMS_NUMPAGES = any non-negative integer databas1.QP_RESULT_TABLESPACE = db2qpResultTableS databas1.QP_RESULT_DBPARTITIONGROUP = db2qpResultDBPGrp databas1.QP_RESULT_DBPARTITIONNUM = 0,1,2,...,999 databas1.QP_RESULT_PATH = any valid path databas1.QP_RESULT_DMS = NO databas1.QP_RESULT_DMS_CONTAINER = FILE databas1.QP_RESULT_DMS_NUMPAGES = any non-negative integer databas1.QP_REPLACE = YES
On Windows platforms only, the following additional keywords for Query Patroller Server User Information are required:
*QP_USERNAME *QP_DOMAIN *QP_PASSWORD
The options are:
The default is NO.
The options are:
The options are:
The options are:
The options are:
The options are:
See the related links for the configuration parameters summary, and, DB2 registry and environment variables.
The following response file keywords can be used to uninstall a product, feature, or language:
The options are:
On Windows operating systems, this keyword cannot be combined with REMOVE_PROD.
The options are:
This keyword is only considered when a DB2 copy is removed. To remove a DB2 copy, specify each product or uncomment REMOVE_PROD=ALL.
The options are:
The keyword REMOVE_DAS will only be examined in the following situation:
In this case, after the uninstallation, other DB2 copies that require the use of a DAS will not function properly. To correct the problem, use the dasupdt command to move the DAS to another DB2 copy.
When the keyword REMOVE_DAS is set to YES, and the conditions specified above are met, the uninstallation will always remove the DAS when removing the current DB2 copy. When the keyword REMOVE_DAS is set to NO, and the conditions specified above are met, the uninstallation will fail.
The options are: