DB2删除数据库
2021/10/26 19:09:54
本文主要是介绍DB2删除数据库,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
删除数据库
[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.
这篇关于DB2删除数据库的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-07-02springboot项目无法注册到nacos-icode9专业技术文章分享
- 2024-06-26结对编程到底难不难?答案在这里
- 2024-06-19《2023版Java工程师》课程升级公告
- 2024-06-15matplotlib作图不显示3D图,怎么办?
- 2024-06-1503-Loki 日志监控
- 2024-06-1504-让LLM理解知识 -Prompt
- 2024-06-05做软件测试需要懂代码吗?
- 2024-06-0514-ShardingSphere的分布式主键实现
- 2024-06-03为什么以及如何要进行架构设计权衡?
- 2024-05-31全网首发第二弹!软考2024年5月《软件设计师》真题+解析+答案!(11-20题)