db2 upgrade - liamlamth/blog GitHub Wiki
- instance owner: /opt/IBM/db2/V11.1/instance/db2ckupgrade dbname1 -l /tmp/result.log ...
- instance owner: db2stop
- root user: /opt/IBM/db2/V11.1/instance/db2iupgrade db2inst1
-
before/after: db2level
-
DBI1124E Instance db2inst1 cannot be upgraded.
* The instance is still active and the -prepare parameter was not specified. * Upgrading this instance is not supported.
* This version of the db2iupgrade command cannot be used to upgrade this instance. * The version of the currently installed product is the same as the version of which the upgrade was being attempted.
possible reason: upgrade was done before (may be testing purpose) and incompletely restore back to old versioncheck what version the instance is under
/opt/IBM/db2/V10.5/instance/db2ilist
-
/opt/IBM/db2/V11.1/instance/db2ilist
add and delete the registered /opt/IBM/db2/V10.5/instance/db2iset -a db2inst1
/opt/IBM/db2/V11.1/instance/db2iset -d db2inst1
-
- instance owner: db2start
- instance owner: db2 upgrade database dbname1
... - db2 connect to dbname1
db2 "select * from syscat.dbauth"