DB2学习笔记-0002(Linux系统下卸载DB2数据库软件)
2012-07-23 18:52
585 查看
分类: DB2
Linux系统下卸载DB2数据库软件
--说明:DB2安装文件放在/root/IBMDB2/server/目录,DB2数据库软件安装在/opt/ibm/db2/V9.7/目录。
--默认创建的实例是db2inst1,未建立数据库。
打开终端。
[root@localhost ~]#/opt/ibm/db2/V9.7/bin/db2ilist,查看DB2实例的名称。
db2inst1
[root@localhost ~]#su - db2inst1,切换至db2inst1实例。
[db2inst2@localhost ~]$db2stop,停止实例。
11/23/2011 18:08:08 0 0 SQL1064N DB2STOP processing was successful.
SQL1064N DB2STOP processing was successful.
[db2inst2@localhost ~]$su - dasusr1,切换至服务管理器。
Password: --输入密码
[dasusr1@localhost ~]$db2admin stop,停止服务管理器。
SQL4407W The DB2 Administration Server was stopped successfully.
[dasusr1@localhost ~]$su root,切换至root用户。
Password: --输入密码
[root@localhost dasusr1]#cd /opt/ibm/db2/V9.7/,cd到DB2软件安装目录。
[root@localhost V9.7]#cd instance/
[root@localhost instance]#./dasdrop,删除服务管理器。
SQL4407W The DB2 Administration Server was stopped successfully.
DBI1070I Program dasdrop completed successfully.
[root@localhost instance]#./db2idrop db2inst1,删除db2inst1实例。
DBI1070I Program db2idrop completed successfully.
[root@localhost instance]#cd /root/IBMDB2/server/,cd到DB2安装文件所在目录。
[root@localhost server]#ls
db2 db2_deinstall db2ls db2setup installFixPack
db2ckupgrade db2_install db2prereqcheck doc
[root@localhost server]#./db2_deinstall -a,卸载DB2软件。
Enter full path name for the install directory -
------------------------------------------------
/opt/ibm/db2/V9.7/ --输入DB2软件安装目录。
DBI1016I Program db2_deinstall is performing uninstallation.Please
wait.
The execution completed successfully.
For more information see the DB2 uninstallation log at
"/tmp/db2_deinstall.log.21731".
[root@localhost server]#
成功删除数据库软件后,然后在操作系统分别删除用户组和用户即可。
出处:http://blog.csdn.net/shine_life/article/details/7006358
Linux系统下卸载DB2数据库软件
--说明:DB2安装文件放在/root/IBMDB2/server/目录,DB2数据库软件安装在/opt/ibm/db2/V9.7/目录。
--默认创建的实例是db2inst1,未建立数据库。
打开终端。
[root@localhost ~]#/opt/ibm/db2/V9.7/bin/db2ilist,查看DB2实例的名称。
db2inst1
[root@localhost ~]#su - db2inst1,切换至db2inst1实例。
[db2inst2@localhost ~]$db2stop,停止实例。
11/23/2011 18:08:08 0 0 SQL1064N DB2STOP processing was successful.
SQL1064N DB2STOP processing was successful.
[db2inst2@localhost ~]$su - dasusr1,切换至服务管理器。
Password: --输入密码
[dasusr1@localhost ~]$db2admin stop,停止服务管理器。
SQL4407W The DB2 Administration Server was stopped successfully.
[dasusr1@localhost ~]$su root,切换至root用户。
Password: --输入密码
[root@localhost dasusr1]#cd /opt/ibm/db2/V9.7/,cd到DB2软件安装目录。
[root@localhost V9.7]#cd instance/
[root@localhost instance]#./dasdrop,删除服务管理器。
SQL4407W The DB2 Administration Server was stopped successfully.
DBI1070I Program dasdrop completed successfully.
[root@localhost instance]#./db2idrop db2inst1,删除db2inst1实例。
DBI1070I Program db2idrop completed successfully.
[root@localhost instance]#cd /root/IBMDB2/server/,cd到DB2安装文件所在目录。
[root@localhost server]#ls
db2 db2_deinstall db2ls db2setup installFixPack
db2ckupgrade db2_install db2prereqcheck doc
[root@localhost server]#./db2_deinstall -a,卸载DB2软件。
Enter full path name for the install directory -
------------------------------------------------
/opt/ibm/db2/V9.7/ --输入DB2软件安装目录。
DBI1016I Program db2_deinstall is performing uninstallation.Please
wait.
The execution completed successfully.
For more information see the DB2 uninstallation log at
"/tmp/db2_deinstall.log.21731".
[root@localhost server]#
成功删除数据库软件后,然后在操作系统分别删除用户组和用户即可。
出处:http://blog.csdn.net/shine_life/article/details/7006358
相关文章推荐
- DB2学习笔记-0002(Linux系统下卸载DB2数据库软件)
- 【Linux学习笔记】Linux_04_软件管理,系统管理
- Linux 学习笔记 -- 第五部分 Linux 系统管理员 -- 第22章 软件安装:源码与 Tarball
- Ubuntu下软件下载/安装/升级/卸载 —— Linux学习笔记(01)
- Linux 学习笔记 -- 第五部分 Linux 系统管理员 -- 第23章 软件安装:RPM、SRPM 与 YUM 功能
- linux系统管理学习笔记之三----软件的安装
- linux学习笔记之软件的安装及卸载
- linux查看系统信息软件安装信息命令学习笔记
- Linux 第六周学习笔记 (2),特殊权限列表,at延时任务及定时机制,系统临时文件的管理
- [Linux学习笔记]系统分区知识点归纳
- [linux内存]伙伴系统学习笔记(三)--分配器API
- Linux学习笔记---RHEL系统启动过程
- linux 系统编程学习笔记一
- 怎样登录和退出Linux系统----Linux学习笔记(1)
- itercast.com学习笔记-Linux磁盘及文件系统管理
- linux学习笔记-学生信息管理系统(shell编程)
- Linux学习笔记----vim文本编辑软件
- 嵌入式linux软件开发学习笔记--uboot
- ARM2440学习笔记--Linux系统下串口调试和USB调试环境搭建
- 3、linux学习笔记--linux系统镜像文件下载源