Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

How to really kill a session

$
0
0

HI all,

I have a session that holds a bunch of locks and blocks everything else. No matter what I try, I cannot get rid of it:

 

hdbsql HDB=> select connection_id, transaction_id, client_pid, object_name FROM m_object_locks l, m_connections c WHERE c.transaction_id = l.LOCK_OWNER_TRANSACTION_ID;

| CONNECTION_ID  | TRANSACTION_ID  | CLIENT_PID           | OBJECT_NAME   |

| -------------- | --------------- | -------------------- | ------------- |

|         400576 |              33 |                 5093 | ACTIVEMQ_LOCK |

|         424038 |             344 |                23158 | DOCUMENT_IN   |

|         424038 |             344 |                23158 | CATS_IN       |

|         424038 |             344 |                23158 | CATS          |

|         424038 |             344 |                23158 | DOCUMENT      |

|         424038 |             344 |                23158 | COMP_AGG      |

|         424038 |             344 |                23158 | META_AGG      |

|         424038 |             344 |                23158 | HOURLY_COUNT  |

|         424038 |             344 |                23158 | COUNTS        |

|         424038 |             344 |                23158 | COUNTS_IN     |

|         424038 |             344 |                23158 | DATE          |

|         424038 |             344 |                23158 | ALL_DATES     |

|         424038 |             344 |                23158 | VEGA_COMPANY  |

13 rows selected (overall time 11.702 msec; server time 10.894 msec)

 

hdbsql HDB=> alter system disconnect session '424038';

0 rows affected (overall time 2615 usec; server time 1851 usec)

 

hdbsql HDB=> alter system cancel session '424038';

0 rows affected (overall time 2806 usec; server time 1870 usec)

 

hdbsql HDB=> select connection_id, transaction_id, client_pid, object_name FROM m_object_locks l, m_connections c WHERE c.transaction_id = l.LOCK_OWNER_TRANSACTION_ID;

| CONNECTION_ID  | TRANSACTION_ID  | CLIENT_PID           | OBJECT_NAME   |

| -------------- | --------------- | -------------------- | ------------- |

|         400576 |              33 |                 5093 | ACTIVEMQ_LOCK |

|         424038 |             344 |                23158 | DOCUMENT_IN   |

|         424038 |             344 |                23158 | CATS_IN       |

|         424038 |             344 |                23158 | CATS          |

|         424038 |             344 |                23158 | DOCUMENT      |

|         424038 |             344 |                23158 | COMP_AGG      |

|         424038 |             344 |                23158 | META_AGG      |

|         424038 |             344 |                23158 | HOURLY_COUNT  |

|         424038 |             344 |                23158 | COUNTS        |

|         424038 |             344 |                23158 | COUNTS_IN     |

|         424038 |             344 |                23158 | DATE          |

|         424038 |             344 |                23158 | ALL_DATES     |

|         424038 |             344 |                23158 | VEGA_COMPANY  |

13 rows selected (overall time 10.764 msec; server time 9946 usec)

 

hdbsql HDB=>

[1]+  Stopped                 hdbsql

i2s@vega3:~$ ps axu|grep 23158

i2s      25265  0.0  0.0   5524   840 pts/2    S+   19:00   0:00 grep --color=auto 23158

 

Is there a way to stop this transaction without restarting the (production) database?

 

-- Micha


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>