由于enterprise版本又到期了,又不想改系统日期,所以重装。
参考:
http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp
1 Optional: Drop all databases. You can drop databases using the Control Center (on Linux platforms only) or the drop database command. Database files remain intact on your file systems when you drop an instance without dropping databases first.
因为已经到期,数据库无法启动,就drop不了了。
2 Stop the DB2 Administration Server.
#. Log in as the DB2 administration server owner.
#. Stop the DB2 administration server by entering the db2admin stop command.
没有das,跳过
3.Removing the DB2 administration server
# Log in as a user with root user authority.
# Stop the DB2 administration server.
# Remove the DB2 administration server by entering the following command:
--注意使用root运行
[root@localhost ~]# /opt/ibm/db2/V9.7/instance/dasdrop
DBI1104E The Administration Server cannot be dropped.
Explanation:
An attempt to drop the Administration Server failed. The system detects
that the Administration Server does not exist.
User response:
No action required.
DBI1079I Output is saved in the log file /tmp/dasdrop.log.28479.
Explanation:
All processed and failed operations have been saved into this log file.
User response:
Do not modify this file in any way. This file is for IBM Technical
Support reference.
--因为没有,所以删除失败,继续
4.Stopping DB2 instances
# Log in as a user with root user authority.
# To obtain a list of the names of all DB2 instances associated with your current DB2 copy, enter the following command:
[root@localhost ~]# /opt/ibm/db2/V9.7/bin/db2ilist
db2inst1
# Log out.
# Log back in as the owner of the instance you want to stop.
# Run the start up script if it is not included in .profile.
[db2inst1@localhost ~]$ sqllib/db2profile
# You might want to save the database manager configuration file, db2systm, the db2nodes.cfg file, or user defined function or fenced stored procedure applications in INSTHOME/sqllib/function.
# Stop the DB2 database manager by entering the db2stop force command.
# Confirm that the instance is stopped by entering the db2 terminate command.
# Repeat these steps for each instance.
[db2inst1@localhost ~]$ db2stop force --强制关闭数据库
SQL1032N No start database manager command was issued.
[db2inst1@localhost ~]$ db2 terminate --断开连接
DB20000I The TERMINATE command completed successfully.
5.Remove DB2 instances.
# Log in as a user with root user authority.
# Remove the instance by entering the following command:
[root@localhost ~]# /opt/ibm/db2/V9.7/instance/db2idrop db2inst1
DBI1070I Program db2idrop completed successfully.
# Optional: As a user with root user authority, remove the instance owner's user ID and group (if used only for that instance). Do not remove these if you are planning to re-create the instance.
Remove the database files from the systems or drop the databases before dropping the instance if you no longer need the databases. After dropping the instance the database files remain intact.
This step is optional since the instance owner and the instance owner group may be used for other purposes.
因为待会重装,所以不删这些
6.Remove DB2 products.
#. Log in as user with root user authority.
#. Access the path where the DB2 database products are located. To locate the path of the DB2 database product to remove, see Listing DB2 products installed on your system.
#. Run the db2_deinstall -a command from the DB2DIR/install directory or the doce_deinstall -a command from the DB2DIR/doc/install directory, where DB2DIR is the location that you specified when you installed your DB2 database product.
[root@localhost ~]# /opt/ibm/db2/V9.7/install/db2_deinstall -a
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.1833".
--运行成功
[root@localhost opt]# du -sh *
8.0K ibm
--这时/opt下的ibm已经剩下8k了
到此,db2删除完成
分享到:
相关推荐
在Linux环境下,DB2是一款强大的关系型数据库管理系统,广泛应用于企业级数据存储和处理。本文将深入探讨Linux下DB2的常用命令,帮助开发者更好地理解和操作DB2数据库。 1. **安装与启动DB2** - `sudo rpm -ivh ...
linux 下的 DB2命令linux 下的 DB2命令linux 下的 DB2命令linux 下的 DB2命令
Linux 下 DB2 常用命令 DB2 是一个 relation database management system(关系数据库管理系统),广泛应用于企业级的数据存储和管理中。在 Linux 环境下,DB2 提供了丰富的命令行工具,用于管理和维护数据库。下面...
Linux 环境 DB2 客户端安装 DB2 是 IBM 公司开发的一种关系型数据库管理系统,广泛应用于企业级应用中。安装 DB2 客户端是连接 DB2 服务器的必要步骤。本文将详细介绍在 RedHat 5.9 企业版环境下安装 DB2 客户端的...
在Linux环境下安装IBM的DB2数据库管理系统是一项技术性较强的任务,需要遵循一定的步骤来确保安装过程的顺利。以下是对DB2在Linux上安装过程的详细解释: 首先,确保你的Linux系统满足DB2的最低硬件和软件需求。DB2...
### Linux 下安装 DB2 的详细步骤与注意事项 #### 标题与描述概述 本文主要介绍在 Linux 操作系统上安装 IBM DB2 数据库的过程及注意事项。对于初次接触 DB2 或 Linux 的用户来说,该文档提供了从环境准备到数据库...
### Linux下彻底卸载DB2的方法 在Linux环境中卸载IBM DB2数据库系统时,若不按照正确步骤操作,很可能会留下残余文件或配置,从而导致后续安装其他版本DB2或其他数据库系统出现问题。本文将详细介绍如何在Linux操作...
在Linux环境下安装DB2是一个涉及多个步骤的过程,主要包括下载安装DB2软件、配置系统环境、创建用户和用户组、设置实例以及许可授权、调整DB2参数以优化性能,并最终启动数据库实例和创建数据库。以下是对这些步骤的...
在Linux环境下操作IBM DB2数据库管理系统,掌握一系列的命令行工具是至关重要的。这些命令能够帮助用户有效地管理和操作数据库,包括但不限于启动与停止数据库服务、连接数据库、配置管理、数据备份与恢复、性能优化...
实现:在客户端远程连接服务器端的db2(db2之间的互连)
快速启动您的linux应用:使用db2和db2控制中心
Linux 上的 DB2 内存和文件缓存性能调优 本文总结了 Linux 上 DB2 内存和文件缓存的性能调优,讨论了内存使用和文件缓存对性能的影响,以及 Linux 上 DB2 特有的特性。通过本文,可以了解特定的 DB2 特性的优点,...
### 在Linux下安装DB2 V9.7 #### 安装概述 本文将详细介绍如何在Linux环境下(以Red Hat Enterprise Linux 5.4为例)安装IBM DB2 Version 9.7 Express-C Edition(以下简称DB2 V9.7)。DB2 V9.7是一款功能强大的...
在Linux系统中,管理IBM的db2数据库通常涉及一系列的命令行操作。本文将深入解析如何使用这些命令来重启db2数据库,同时介绍一些相关的常用命令。 首先,重启db2数据库之前,必须确保没有任何应用程序正在与数据库...
* Linux RedHat Enterprise Linux 5.4下安装DB2的步骤: 1. 下载DB2 9.7 express C版本文件db2exc_971_LNX_x86.tar.gz 2. 解压缩及解包db2exc_971_LNX_x86.tar.gz 3. 进入相关目录,运行安装文件db2setup 4. ...
### Linux环境下DB2 V10.5安装与数据还原详解 #### 一、DB2 V10.5的安装步骤 ##### 1. 准备阶段 - **下载安装包**:首先,需要下载适用于Linux环境下的DB2 V10.5安装包,即`v10.5fp3_linuxx64_server.tar`。该...
在Linux环境下安装IBM的DB2数据库管理系统是一项技术性较强的任务,需要遵循一定的步骤来确保安装过程的顺利。本文将详细阐述在Linux系统中安装DB2的详细步骤。 首先,安装DB2之前,需要确保你的Linux操作系统版本...
linux环境下db2安装配置,包括初始化用户权限,表空间,建数据库等。
Linux下安装DB2数据库