Troubleshooting
Problem
Symptom
Action 18:45:21: DB2CustomAction. Configuring DB2 instances
1: ERROR:The upgrade of the instance "DB2_01" has failed. The return value is "1".
1: ERROR:An error occurred while configuring the instance "DB2_01".
Action 18:48:24: DB2CustomAction. Configuring DB2 instances
1: Configuring DB2 instances:.......Failure
1: WARNING: A minor error occurred while installing "DB2 Server Edition - DB2COPY1" on this computer. Some features may not function correctly.
3. db2val -a command reports successful.
DBI1343I The db2val command completed successfully. For details, see the log file C:\Users\Administrator\DOCUME~1\DB2LOG\db2val-Mon Jun 13 15_00_25 2022.log.
c:\Work>db2 get dbm cfg
Database Manager Configuration
Node type = Database Server with local and remote clients
Database manager configuration release level = 0x1400
...
Cause
For this reason, if you have large files under db2instprof\instance_name directory, the upgrade might take longer than expected, and it can even fail if the installation user's temporary directory becomes full.
C:\Program Files\IBM\SQLLIB\BIN>set DB2INSTANCE=DB2_01 <-- Our Instance name is "DB2_01".
C:\Program Files\IBM\SQLLIB\BIN>db2set -all
[e] DB2PATH=C:\Program Files\IBM\SQLLIB
[i] DB2INSTOWNER=WIN-LLM41VO9H4D
[i] DB2PORTRANGE=60006:60009
[i] DB2INSTPROF=F:\ <-------------------- db2instprof of the instance.
[g] DB2_EXTSECURITY=YES
[g] DB2_COMMON_APP_DATA_PATH=C:\ProgramData
[g] DB2SYSTEM=WIN-LLM41VO9H4D
[g] DB2PATH=C:\Program Files\IBM\SQLLIB
[g] DB2INSTDEF=DB2
[g] DB2ADMINSERVER=DB2DAS00
C:\Program Files\IBM\SQLLIB\BIN>echo %TMP%
C:\Users\ADMINI~1\AppData\Local\Temp <--- Installation user's temporary directory.
C:\Program Files\IBM\SQLLIB\BIN>echo %TEMP%
C:\Users\ADMINI~1\AppData\Local\Temp <--- Installation user's temporary directory.
C:\Program Files\IBM\SQLLIB\BIN>db2 list db directory
System Database Directory
Number of entries in the directory = 9
Database 1 entry:
Database alias = SAMPL1
Database name = SAMPL1
Local database directory = F: <--------
Database release level = 14.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
C:\Program Files\IBM\SQLLIB\BIN>tree F:
Folder PATH listing
Volume serial number is 00000250 16DD:B42D
F:\
├───DB2_01
│ ├───cfg
│ ├───ctrl
│ ├───DIAG0000
│ │ ├───clientrecords
│ │ ├───events
│ │ └───stmmlog
│ ├───hmonCache
│ │ └───DB2_01
│ │ └───0
│ │ └───ossipcres
│ ├───log
│ ├───NODE0000
│ │ ├───SAMPL1
│ │ │ ├───T0000000 <--- Tablespace ID 0.
│ │ │ ├───T0000001 <--- Tablespace ID 1.
│ │ │ │ └───C0000000.TMP
│ │ │ ├───T0000002 <--- Tablespace ID 2.
│ │ │ ├───T0000003 <--- Tablespace ID 3.
│ │ │ └───T0000004 <--- Tablespace ID 4.
...
│ │ ├───SQL00001
│ │ │ ├───HADR
│ │ │ │ ├───LOGSPOOL
│ │ │ │ └───TAKEOVER
│ │ │ ├───LOGSTREAM0000
│ │ │ └───MEMBER0000
│ │ │ ├───DB2EVENT
│ │ │ │ └───db2detaildeadlock
│ │ │ └───HADR
│ │ │ ├───LOGSPOOL
│ │ │ └───TAKEOVER
...
│ │ └───SQLDBDIR <------ Local database directory
│ ├───security
│ │ └───auditdata
│ ├───SQLDBDIR <---------- System database directory
│ ├───TMP
│ └───UIF
└───function
└───unfenced
Resolving The Problem
C:\Program Files\IBM\SQLLIB\BIN>set DB2INSTANCE=DB2_01
C:\Program Files\IBM\SQLLIB\BIN>db2cfexp C:\Work\db2cfexp.out backup
C:\Program Files\IBM\SQLLIB\BIN>db2idrop DB2_01
C:\Program Files\IBM\SQLLIB\BIN>db2icrt DB2_01 /s:ese /u:db2admin,password /p:"C:"
C:\Program Files\IBM\SQLLIB\BIN>type C:\Work\db2cfexp.out
;Use BINARY file transfer
[FILE_DESCRIPTION]
APPLICATION=DB2/NT64 1.5.8
FILE_CONTENT=DB2 CCA Exported Data Sources
FILE_TYPE=CommonServer
FILE_FORMAT_VERSION=2.0
Platform=23
DB2SYSTEM=WIN-LLM41VO9H4D
Instance=DB2_01
[REGISTRY_GLOBAL]
DB2_EXTSECURITY=YES
DB2_COMMON_APP_DATA_PATH=C:\ProgramData
DB2SYSTEM=WIN-LLM41VO9H4D
DB2PATH=C:\Program Files\IBM\SQLLIB
DB2INSTDEF=DB2
DB2ADMINSERVER=DB2DAS00
[REGISTRY_LOCAL]
DB2INSTOWNER=WIN-LLM41VO9H4D
DB2PORTRANGE=60006:60009
DB2INSTPROF=F:\ <-- Change this path. eg. C:\
DB2COMM=TCPIP
[DBM_CONFIG]
NODETYPE=4
RELEASE=0x1400
DIAGLEVEL=3
ALTERNATE_AUTH_ENC=255
RQRIOBLK=65535
AUTHENTICATION=0
DIR_CACHE=1
DISCOVER=2
TP_MON_NAME=
DIAGPATH=F:\DB2_01\ $m <-- Change this path. eg. C:\DB2_01\ $m
...
CF_DIAGLEVEL=2
CF_DIAGPATH=F:\DB2_01\DIAG0000\ <-- Change this. eg. C:\DB2_01\DIAG0000\
CF_TRANSPORT_METHOD=0
COMM_EXIT_LIST=
C:\Program Files\IBM\SQLLIB\BIN>db2cfimp C:\Work\db2cfexp.out
- From the Windows Start menu click System.
- Click Advanced system settings on the left panel.
- Click the advanced tab.
- Click the button labeled Environment Variables.
- Change both TMP and TEMP under "User variables for installation user".
- Restart Window for the new value to take effect.
C:\Program Files\IBM\SQLLIB\BIN>set DB2INSTANCE=DB2_01
C:\Program Files\IBM\SQLLIB\BIN>db2cfexp C:\Work\db2cfexp.out backup
db2set -all > db2set_all_1.txt
db2 get dbm cfg > get_dbm_cfg_1.txt
db2 list user odbc data sources > list_user_odbc_data_sources_1.txt
db2 list system odbc data sources > list_system_odbc_data_sources_1.txt
db2 get cli cfg > get_cli_cfg_1.txt
db2 list db directory > list_db_directory_1.txt
db2 list dcs directory > list_dcs_directory_1.txt
db2 list node directory > list_node_directory_1.txt
C:\Program Files\IBM\SQLLIB\BIN>db2iupgrade -install -forcecn /u:<user>,<password> <instance_name> /p:"<db2instprof>"
C:\Program Files\IBM\SQLLIB\BIN>db2iupgrade -install -forcecn /u:db2admin,password DB2_01 /p:"F:"
DB20000I The DB2IUPGRADE command completed successfully.
db2set -all > db2set_all_2.txt
db2 get dbm cfg > get_dbm_cfg_2.txt
db2 list user odbc data sources > list_user_odbc_data_sources_2.txt
db2 list system odbc data sources > list_system_odbc_data_sources_2.txt
db2 get cli cfg > get_cli_cfg_2.txt
db2 list db directory > list_db_directory_2.txt
db2 list dcs directory > list_dcs_directory_2.txt
db2 list node directory > list_node_directory_2.txt
fc /1 db2set_all_1.txt db2set_all_2.txt
fc /1 get_dbm_cfg_1.txt get_dbm_cfg_2.txt
fc /1 list_user_odbc_data_sources_1.txt list_user_odbc_data_sources_2.txt
fc /1 list_system_odbc_data_sources_1.txt list_system_odbc_data_sources_2.txt
fc /1 get_cli_cfg_1.txt get_cli_cfg_2.txt
fc /1 list_db_directory_1.txt list_db_directory_2.txt
fc /1 list_dcs_directory_1.txt list_dcs_directory_2.txt
fc /1 list_node_directory_1.txt list_node_directory_2.txt
C:\Program Files\IBM\SQLLIB\BIN>db2 get dbm cfg
Database Manager Configuration
Node type = Enterprise Server Edition with local and remote clients
Database manager configuration release level = 0x1500 <------ V11.5
...
C:\Program Files\IBM\SQLLIB\BIN>db2cfimp C:\Work\db2cfexp.out
Related Information
Directory structure for your installed Db2 database product (Windows)
db2iupgrade - Upgrade instance command
db2cfexp - Connectivity configuration export tool command
db2cfimp - Connectivity configuration import tool command
Setting up the Windows CLI environment
CATALOG ODBC DATA SOURCE command
db2cli - Db2 interactive CLI command
Registering the IBM Data Server Driver for ODBC and CLI with the Microsoft ODBC…
Registering ODBC data sources for applications that use the IBM Data Server Dri…
Validating the db2dsdriver.cfg file
Testing the ODBC database connectivity with the db2dsdriver.cfg file
Was this topic helpful?
Document Information
Modified date:
05 December 2022
UID
ibm16614407