I try to optimize a query. After every change, I must wait long time that the query is finished. It is really time consuming.
Is there any way to see the executed queries and kill/stop them??
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
In the DB2 instance command line, you can type
In this list, you should find your process, note the application id. You can use this command to kill it:
Where
xx
is the ID (or a comma-delimited list of IDs).Here is the DB2 for Linux/Unix/Windows v9.7 Information Center article on
FORCE APPLICATION
, and here is the one forLIST APPLICATIONS
. For both of these commands, you have to have the proper privileges on the database instance (most commonlySYSADM
orSYSCTRL
).