db2top:如何用实际值替换问号(?、?、?)?

db2top: How do I replace question marks (?, ?, ?) with actual values?

我 运行 db2top 是这样的:

db2top -d mydb -u myuser -p mypass 
Shift+D, Shift+W, q (after running a binary that executes sql commands)
cat db2adv.sql

看到这样的行:

insert into mydb.party (registered_number) values (:L0 );

select MAPPING_ELEMENT_ID from final table (INSERT INTO CONFIG.MAPPING_ELEMENT (SQL_ACTION, META_ACTION, MAPPING_ID) VALUES (?, ?, ?) );

我明白了?可能是参数化查询,但如何才能看到 DB2 处理的实际值?

主机变量不会显示在 db2top 中。同样在 DSM(数据服务器管理器)或 dsmtop 这个新工具(db2top 的替代工具)中你的“?”的内容。未显示。 您可以遵循 mustaccio 的建议或使用 DB2 审计工具或 activity 事件监视器。这些选项将允许查看您要求的详细信息。