当我运行 DBUnit 测试时,我遇到了一个奇怪的 DB2 问题。 我的 DBUnit 测试是高度定制的,但我认为这不是问题。 当我运行测试时,我遇到了失败:
SQL代码:-1084,SQLSTATE:57019
翻译为
SQL1084C 无法分配共享内存段。
这听起来像是一个奇怪的内存问题,尽管这是一个非常奇怪的事情。 如果我 ssh 到测试数据库服务器,然后进入 db2 并执行“连接到 MY_DB”,测试就会开始成功! 这似乎与所报告的假定内存错误无关。
我有两次测试,第一个测试成功了,第二个测试失败了。 但是,当 DBUnit 设置代码获取与数据库服务器的连接以加载我的 xml 数据集时,它会失败。
有什么想法可能会发生什么吗?
I am having a strange DB2 issue when I run DBUnit tests. My DBUnit tests are highly customized, but I don't think it is the issue. When I run the tests, I get a failure:
SQLCODE: -1084, SQLSTATE: 57019
which translates to
SQL1084C Shared memory segments cannot be allocated.
It sounds like a weird memory issue, though here's the big strange thing. If I ssh to the test database server, then go in to db2 and do "connect to MY_DB", the tests start succeeding! This seems to have no relation to the supposed memory error that is being reported.
I have 2 tests, and the first one actually succeeds, the second one is the one that fails. However, it fails in the DBUnit setup code, when it is obtaining the connection to the DB server to load my xml dataset.
Any ideas what might be going on?
发布评论
评论(2)
就我而言,它是过期的 DB/2 许可证。
您可以通过发布来查看您的许可证
db2licm -l
如果您有许可证文件,则可以通过以下方式安装它:
db2licm -a db2ese.lic
另请参阅
In my case it was an expired DB/2 license.
You can see your licenses by issuing
db2licm -l
If you have a license file you can install it by, for example:
db2licm -a db2ese.lic
See also
好吧,我想我通过执行以下操作来修复它:
至少,现在事情似乎正常......
Well, I think I fixed it by doing the following:
At least, things seem to be working now.....