免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 10610 | 回复: 19
打印 上一主题 下一主题

db2表空间被锁,如何解锁 ? 急 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-26 18:24 |只看该作者 |倒序浏览
db2表空间被锁,重启数据库, 无效!该如何解锁呢?
多谢指点!

论坛徽章:
0
2 [报告]
发表于 2003-03-26 18:43 |只看该作者

db2表空间被锁,如何解锁 ? 急

错误代码是
Table space access is not allowed.  SQLSTATE=55039

论坛徽章:
0
3 [报告]
发表于 2003-03-26 21:33 |只看该作者

db2表空间被锁,如何解锁 ? 急

http://chinaunix.net/forum/viewtopic.php?t=20020
看看,也许有帮助!

论坛徽章:
0
4 [报告]
发表于 2003-03-27 08:13 |只看该作者

db2表空间被锁,如何解锁 ? 急

你是 restart database ?

论坛徽章:
0
5 [报告]
发表于 2003-03-27 08:58 |只看该作者

db2表空间被锁,如何解锁 ? 急

[quote]原帖由 "iwin21cn"]你是 restart database ?[/quote 发表:

不是,
force application all
db2stop
db2start

db2 有为表空间解锁的命令吗?

论坛徽章:
0
6 [报告]
发表于 2003-03-27 09:02 |只看该作者

db2表空间被锁,如何解锁 ? 急

是不是你的表空间或容器有问题啊

论坛徽章:
0
7 [报告]
发表于 2003-03-27 10:31 |只看该作者

db2表空间被锁,如何解锁 ? 急

/home/hisinst>;db2 "list tablespace containers for 2 show detail"|pg

            Tablespace Containers for Tablespace 2

Container ID                         = 0
Name                                 = /dev/rhisdb01
Type                                 = Disk
Total pages                          = 5242880
Useable pages                        = 5242848
Accessible                           = Yes           

容器是正常的阿
正常表空间状态是
State                                = 0x0000
   Detailed explanation:
     Normal                                   
现在表空间状态是
Tablespace ID                        = 4
Name                                 = ff
Type                                 = Database managed space
Contents                             = Any data
State                                = 0x0004
   Detailed explanation:
     Quiesced: EXCLUSIVE   

如何解除这种状态,恢复到正常状态?

论坛徽章:
0
8 [报告]
发表于 2003-03-27 11:20 |只看该作者

db2表空间被锁,如何解锁 ? 急

用 quiesce tablespaces for table hisinst.trgg1 reset 可以恢复表空间状态,但问题是现在不知道那个表需要reset,
1.如何知道是那个表导致了表空间被挂起?
2.如果不知道,如何使用quiesece命令reset所有表?
请多多指教

论坛徽章:
0
9 [报告]
发表于 2003-03-28 15:11 |只看该作者

db2表空间被锁,如何解锁 ? 急

Enter db2 "list tablespaces show detail".
Find the tablespace id and object id that have the tablespace in this state.
Look at the system catalog table syscat.tables to determine to which table the object id refers.
Reissue the load with the replace or restart option against this table.

Reference: 19523 / 21130 Date: 12 Sep 2002 Keyword: General [ Return to mai

论坛徽章:
0
10 [报告]
发表于 2003-03-28 15:24 |只看该作者

db2表空间被锁,如何解锁 ? 急

保证有效,我现在的苦恼是傍边这些CODING的兄弟老是造成deadlock,不知道怎么帮他们,郁闷ing!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP