DBUnit 的奇怪 DB2 问题

发布于 2024-07-05 02:58:22 字数 554 浏览 17 评论 0 原文

当我运行 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

单挑你×的.吻 2024-07-12 02:58:22

就我而言,它是过期的 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

这样的小城市 2024-07-12 02:58:22

好吧,我想我通过执行以下操作来修复它:

db2stop force
db2start

至少,现在事情似乎正常......

Well, I think I fixed it by doing the following:

db2stop force
db2start

At least, things seem to be working now.....

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文