DB2删除数据库
来源:互联网 发布:网络教育能读本科嘛 编辑:程序博客网 时间:2024/06/06 06:32
删除数据库
[db2inst1@localhost home]$ db2 drop database test;
SQL1035N The database is currently in use. SQLSTATE=57019
[db2inst1@localhost home]$ db2 list applications --查看链接
Auth Id Application Appl. Application Id DB # of
Name Handle Name Agents
-------- -------------- ---------- -------------------------------------------------------------- -------- -----
DB2INST1 db2bp 2231 *LOCAL.db2inst1.170324033829 TEST 1
[db2inst1@localhost home]$ db2 force applications all --关闭链接
DB20000I The FORCE APPLICATION command completed successfully.
DB21024I This command is asynchronous and may not be effective immediately.
[db2inst1@localhost home]$ db2 list applications --查看链接
SQL1611W No data was returned by Database System Monitor.
[db2inst1@localhost home]$
[db2inst1@localhost home]$ db2 deactivate database test --接触激活
SQL1493N The application is already connected to an active database.
[db2inst1@localhost home]$ db2 terminate --退出db2
DB20000I The TERMINATE command completed successfully.
[db2inst1@localhost home]$ db2 drop db test --删除数据库
DB20000I The DROP DATABASE command completed successfully.
[db2inst1@localhost home]$ db2 drop database test;
SQL1035N The database is currently in use. SQLSTATE=57019
[db2inst1@localhost home]$ db2 list applications --查看链接
Auth Id Application Appl. Application Id DB # of
Name Handle Name Agents
-------- -------------- ---------- -------------------------------------------------------------- -------- -----
DB2INST1 db2bp 2231 *LOCAL.db2inst1.170324033829 TEST 1
[db2inst1@localhost home]$ db2 force applications all --关闭链接
DB20000I The FORCE APPLICATION command completed successfully.
DB21024I This command is asynchronous and may not be effective immediately.
[db2inst1@localhost home]$ db2 list applications --查看链接
SQL1611W No data was returned by Database System Monitor.
[db2inst1@localhost home]$
[db2inst1@localhost home]$ db2 deactivate database test --接触激活
SQL1493N The application is already connected to an active database.
[db2inst1@localhost home]$ db2 terminate --退出db2
DB20000I The TERMINATE command completed successfully.
[db2inst1@localhost home]$ db2 drop db test --删除数据库
DB20000I The DROP DATABASE command completed successfully.
0 0
- DB2删除数据库
- DB2删除数据库
- 关于DB2数据库的删除和除去
- DB2 数据库删除不了问题分析
- 使用命令删除DB2数据库,然后新建
- DB2数据库所在磁盘丢失删除数据库步骤
- 删除ODBC设置中多余的DB2数据库别名
- 删除ODBC设置中多余的DB2数据库别名
- DB2数据库
- DB2数据库
- db2数据库
- DB2数据库
- DB2数据库
- DB2数据库
- 数据库---db2
- SQL1032N 未发出启动数据库管理器的命令。SQLSTATE=57019 删除DB2数据库
- DB2 中删除数据
- DB2 删除重复记录
- Java反射得到属性的值和设置属性的值
- html5第三课时,标签应用。
- semver(语义化的版本控制)
- Android APP通用型拒绝服务漏洞分析
- JAVA类加载机制
- DB2删除数据库
- 记跟李院长谈话心得
- 纯CSS3 3D图片向上翻转渐隐消失动画DEMO演示
- 添加登录拦截器【springboot mybatis学习与开发(四)】
- sonarqube 汉化 An error has occurred. Please contact your administrator
- c++上机作业3
- Python ' ~ ' (取反) 操作符解释
- mysql日期 获取本月第一天 获取下个月的第一天
- 【Qt开发】【VS开发】【Linux开发】OpenCV、Qt-MinGw、Qt-msvc、VS2010、VS2015、Ubuntu Linux、ARM Linux中几个特别容易混淆的内容