https://github.com/famousdraw

每天一条DB2命令-034

每天一条DB2命令-034
#升级db2实例,有时候,实例莫名其妙执行不了命令,需要重新更新实例
For UNIX and Linux operating systems
A db2inst2 instance is associated with a Db2 copy of Db2 database product installed at DB2DIR1. You have another copy of a Db2 database product on the same computer at DB2DIR2 for the same version of the Db2 database product that is installed in the DB2DIR1 directory.
To update the instance to run from the Db2 copy installed at DB2DIR1 to the Db2 copy installed at DB2DIR2, issue the following command:
#同样大版本,升级实例
DB2DIR2/instance/db2iupdt db2inst2
If the Db2 copy installed in the DB2DIR2 directory is at level lower than the
Db2 copy installed in the DB2DIR1 directory, issue the following command:
#同样大版本,降低实例小版本
DB2DIR2/instance/db2iupdt -D db2inst2
Update an instance to a higher level within a release
To update a Db2 instance to a higher level or from one Db2 installation path to another, enter a command such as the following:
#更高大版本,升高实例版本
DB2DIR/instance/db2iupdt db2inst1
#降低实例大版本版本,比如从11.1降低到9.7
-f level
Moves an instance from a higher Db2 version instance type to a lower Db2 version instance type for compatibility.

posted on 2022-02-21 11:26  红色MINI  阅读(24)  评论(0编辑  收藏  举报

导航