Uninstall DB2 on Linux from Command Line
来源:互联网 发布:npc数据库 编辑:程序博客网 时间:2024/04/27 14:51
Have you ever had to uninstalled DB2 on Linux ?? Unlike the GUI screen for installing DB2, there is no GUI screen for uninstalling. IBM must have figured if they don’t provide a GUI uninstall users won’t uninstall DB2 !! Well…below are the command line method. I recommend you taking a backup of the database before you uninstall just incase you felt like you needed them back.
1. Shutdown DB2 and DB2ADMIN by issuing db2stop and db2admin stop
2. sudo to root, and change directory to /opt/db2/ibm/V9.7/instance or to your db2 install path /instance.
3. using db2idrop command drop all the instances . Eg: db2idrop db2inst1. If you want t o see all the available instances execute db2ilist
4. change directory to /opt/db2/ibm/V9.7/install
5. execute db2_deinstall -a . This will uninstall db2 installation from your linux system.
6. You can optionally remove the install , db2 home directory and db2 instance related userid.
rm -fR /opt/db2/ibm/V9.7
userdel -r db2inst1
userdel -r dasusr1
1. Shutdown DB2 and DB2ADMIN by issuing db2stop and db2admin stop
2. sudo to root, and change directory to /opt/db2/ibm/V9.7/instance or to your db2 install path /instance.
3. using db2idrop command drop all the instances . Eg: db2idrop db2inst1. If you want t o see all the available instances execute db2ilist
4. change directory to /opt/db2/ibm/V9.7/install
5. execute db2_deinstall -a . This will uninstall db2 installation from your linux system.
6. You can optionally remove the install , db2 home directory and db2 instance related userid.
rm -fR /opt/db2/ibm/V9.7
userdel -r db2inst1
userdel -r dasusr1
userdel -r db2fenc1
from: http://techsatwork.com/blog/?p=558
- Uninstall DB2 on Linux from Command Line
- How to identify video formats from command line on Linux
- How to view or edit pdf/image metadata from command line on Linux
- Uninstall DB2 In Linux
- Create a new repository on the command line/Push an existing repository from the command line
- Working on Command Line
- Running a command on every machine in your domain from the command line
- Take screenshots from the command line in Linux
- How to access Dropbox from the command line in Linux
- How to use 7zip on Linux command Line
- DSO missing from command line
- Create & delete user accounts from the command line on Mac OS X
- Read Unicode characters from command-line arguments in Python 2.x on Windows
- linux command line reference
- Linux Command Line Encryption
- Linux Command Line 解析
- Linux command line
- Linux p4 command line
- 解决scrapy下载图片时相对路径转绝对路径的问题
- MyBatis之增加删除修改
- c# 事件
- Zoom属性解释
- 演示ContentProvider使用--获取通讯录所有联系人号码、email的例子
- Uninstall DB2 on Linux from Command Line
- JavaScript 事件处理
- mysql 性能优化之 mysqlreport
- Google正式推出Dart,结构化的Web编程语言
- 局部变量是不能进行返回的 高精度加法
- 【Android游戏开发二十一】Android os设备谎言分辨率的解决方案!以及简单阐述游戏引擎如何使用!
- MSChart 设置饼图颜色 图例背景色 图例显示位置
- 关于android2.2地图定位的问题,取得了设备所在经纬度,得不到具体的地址的问题
- 插件15:图像裁剪