db2 SQL6036N解决办法

问题背景:

数据库在进行大量的运算和数据处理的过程中,IO、CPU等资源消耗非常高的时候,强制停止数据库。db2stop force

结果数据库命令迟迟没有响应。这个时候对数据库进行其他操作均无响应,执行启动命令,返回SQL6036N。此时说明数据库已经hung了。

或 调试存储过程,导致数据库hung,想要通过控制中心重启下db2,结果长时间没有任何反应,再想重新连接时报错,如下

SQL6036N  START 或 STOP DATABASE MANAGER 命令已在处理之中。

db2stop 命令同样会报相同的错

解决办法:

删除/home/username/sqllib/ctrl/db2strst.lck文件,默认这个文件是空的。

执行db2_kill,会提示:Application ipclean:Removing DB2 engine and client IPC resources for db2name.

重新启动db2start,查看数据库的活动状态:db2 list active databases 会显示当前活动库,这时候说明数据库已经恢复正常了。

-------------------------参考-------------------------

http://www-01.ibm.com/support/docview.wss?uid=swg21427711

Unable to start or stop db2 - DB2 is hung
 
 
Technote (troubleshooting)

Problem(Abstract)
SQL6036N: START or STOP DATABASE MANAGER command is already in progress.

Symptom
DB2 will not start or stop.


Cause
DB2 is hung.

Diagnosing the problem
SQL6036N maybe seen when issuing db2stop or db2start, or the command may hang.

Resolving the problem
In some cases, db2 will appear to be hung and will not respond to db2stop or db2start. The db2 commands will give the following message:

SQL6036N: START or STOP DATABASE MANAGER command is already in progress.

To force the db2 to shut down, open a db2 client command line window and issue:
db2_kill

Note: restarting the database or recycling the system may also resolve the issue.

 
Product Alias/Synonym
TSM

----------------------------------end-----------------------------------

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
DB2常用命令 db2level 显示db2的版本号 显示SQL出错信息 db2 "? sql6031" db2mtrk 管理DAS 产生:root运行-dascrt -u dasuser1 删除:root运行-dasdrop 启动:dasusr1运行-db2admin start 停止:dasusr1运行-db2admin stop db2_kill ipclean db2start dbpartitionnum 9 restart AIX启动控制中心: db2cc DB2用户管理: db2 use os to manage users.You can use following steps to add a db2 user: 1,add a user on os. 2,grant rights to user. GRANT CREATETAB,CONNECT ON DATABASE TO USER FUJIE; grant select, update, delete on table employee to user john with grant option 一,实例 产生 db2icrt -a AuthType(SERVER,CLIENT,SERVER_ENCRYPT) -p PORT_NAME 表空间PREFETCHSIZE的设置,EXTENTSIZE的关系,缓冲池的监控,页清除程序的多少。 临时表空间页面大小与其他表空间页面大小的设置,临时表空间与缓冲池的设置。 example:db2icrt db2 -s ese -p d:\db2 -u Administrator 注意:在UNIX 上产生实例时需要产生一个和实例名称相同的用户名,和fencedid 用户。 如:db2icrt -s ese -u db2fenc2 db2inst2 将在db2inst2用户中产生实例db2inst2. 缺省创建32位实例,创建64位实例:db2icrt -s ese -w 64 -u db2fenc2 db2inst2 删除 db2idrop instance-name 启动 db2start 停止 db2stop force 连接 db2 attach to testdb2 db2 detach 列出实例 db2ilist 设置当前实例 set db2instance= 得到当前实例 db2 get instance 设置实例自动重启动UNIX db2iauto -on db2iauto -off 获取实例的配置参数 db2 get dbm cfg 修改配置参数 例如:db2 update dbm cfg using authentication server_encrypt db2stop and db2start 二,声明注册表和环境变量 db2set 注意:设置完成后需要退出用户,再注册进入才能生效。 列出所有受支持的变量 db2set -lr 列出当前实例所有已定义的变量 db2set 要列出概要文件注册表中所有定义的注册表变量 db2set -all 列出单个变量 db2set registry_variable_name 更改变量 db2set registry_variable_name=new_value 变量复位为缺省值 db2set -r registry_variable_name db2set DB2CODEPAGE=819 db2set DB2CODEPAGE=1386 db2 -tvf my_sql.sql 三,创建节点配置文件 db2nodes.cfg UNIX 格式:dbpartitionnum(0-999) hostname [logical-port [netname]] WIN 格式:nodenumber hostname computername logical_port netname

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大富大贵7

很高兴能够帮助到你 感谢打赏

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值