你的statement monitor switch打开了吗?没打开的话在同一个session里就不会有。 (zxianing@b80eng) /home/zxianing $ db2 get monitor switches
Monitor Recording Switches
Switch list for db partition number 0 Buffer Pool Activity Information (BUFFERPOOL) = ON 02/21/2012 02:25:50.987024 Lock Information (LOCK) = ON 02/21/2012 02:25:50.987024 Sorting Information (SORT) = ON 02/21/2012 02:25:50.987024 SQL Statement Information (STATEMENT) = ON 02/21/2012 02:25:50.987024 Table Activity Information (TABLE) = ON 02/21/2012 02:25:50.987024 Take Timestamp Information (TIMESTAMP) = ON 02/21/2012 02:20:08.707438 Unit of Work Information (UOW) = ON 02/21/2012 02:25:50.987024
(zxianing@b80eng) /home/zxianing $ db2 "select * from t1"