每天一条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.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!