识别 WLM 作业选择了我的存储过程

发布于 2024-11-03 17:08:56 字数 168 浏览 7 评论 0原文

我们如何知道哪个 WLM 作业选择了我调用的 DB2 存储过程调用。我看到一些作业正在使用 DB2XWLM* 运行,其中 DB2X 是数据库区域。但是如何检查哪个特定作业占用了我的存储过程调用。

希望我说清楚了,如果有不清楚的地方请告诉我。感谢您的兴趣。

How could we know which WLM job has picked my DB2 stored procedure call invoked. I see some set of jobs are running with DB2XWLM* where DB2X is database region. But how to check which particular job had taken my stored procedure call.

Hope I made clear, please let me know if something is not clear. Appreciate your interest.

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

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

发布评论

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

评论(4

愿得七秒忆 2024-11-10 17:08:57

通过在存储过程中给出一些“唯一的显示语句”并通过在 上创建显示语句,我们可以检查哪个 WLMjob 选择了该存储过程。

By giving few 'unique display statements' in the Stored procedure and by making the display statements on , we can check which WLMjob has picked the Stored procedure.

九八野马 2024-11-10 17:08:57

通常,存储过程在创建时会分配给一个区域。

如果您能够看到 CREATE PROCEDURE 语句的 DDL(也许通过 DB2 管理工具),应该有这样一行:

WLM ENVIRONMENT DB2SP3

DB2SP3 将是您的存储过程所在的环境。我不确定它是否总是以这种方式工作,但值得检查。

Typically a stored procedure is assigned to a region when it's created.

If you are able to see the DDL for the CREATE PROCEDURE statement (perhaps through DB2 admin tool), there should be a line like:

WLM ENVIRONMENT DB2SP3

DB2SP3 would be the environment your stored procedure lives in. I'm not sure that it always works this way, but it's worth checking.

软糖 2024-11-10 17:08:57

转到作业输出,您可以在其中看到 SP 的显示语句。该 JCL 已指定 WLM。只要搜索WLM这个词就可以找到它。

Go to the job output where you can see display statements of your SP. That JCL has WLM specified. Just search for WLM word and you can find it.

清风疏影 2024-11-10 17:08:57

我意识到这是一篇旧帖子,但这里是供将来参考的答案:

select schema ,owner ,name ,WLM_ENVIRONMENT
  from SYSIBM.SYSROUTINES
 where schema = 'yourschemaname'
   and name = 'yourSPname'

WLM_environment 是您正在寻找的列。
(db2v11)

I realize this is an old post but here is the answer for future reference:

select schema ,owner ,name ,WLM_ENVIRONMENT
  from SYSIBM.SYSROUTINES
 where schema = 'yourschemaname'
   and name = 'yourSPname'

WLM_environment is the column you are looking for.
(db2v11)

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