无法在aix中创建事件监视器db2detaildeadlock

时间:2018-03-01 03:11:52

标签: db2 deadlock aix monitor db2-luw

基于此链接,http://www-01.ibm.com/support/docview.wss?uid=swg21193054 我正在尝试在我的db2数据库中创建事件监视器db2detaildeadlock。

我正在运行以下命令:

document.addEventListener("DOMContentLoaded", function(event) { 
Your javascript goes here
 });

但是打了

db2 create event monitor db2detaildeadlock for deadlocks with details write to file 'db2detaildeadlock' maxfiles 20 maxfilesize 512 buffersize 17 blocked append autostart

我在AIX服务器上运行我的db2数据库,是否对此命令进行了任何其他语法更改?

DB21034E  The command was processed as an SQL statement because it was not a
valid Command Line Processor command.  During SQL processing it returned:
SQL0104N  An unexpected token "DB2DETAILDEADLOCK" was found following "etails
write to file".  Expected tokens may include:  "CHAR_STRING_LITERAL".

有没有办法检查我的事件监视器My database server : DB2/AIX64 10.5.9 是否已激活或停用?因为在遇到死锁后我无法看到任何死锁日志。

1 个答案:

答案 0 :(得分:0)

此SQL将显示事件监视器的状态

SELECT  SUBSTR(EVMONNAME,1,40) AS EVMON_NAME
,       TARGET_TYPE
,       SUBSTR(OWNER,1,8)        AS OWNER
,       CASE    EVENT_MON_STATE(EVMONNAME)
                WHEN 0 THEN '0 Inactive'
                WHEN 1 THEN '1 Active'
        END                                     AS STATE
FROM SYSCAT.EVENTMONITORS