How to kill SAP Hana session - It is easy to end or kill SAP Hana session - Quick Tips


How to kill SAP Hana Session

Do you know if it's simple to locate SAP HANA's IDLE connection session? If so, why do you need to do so? It's most likely because of a zombie session or a procedure where the session is no longer in use.


There's also an intriguing technique that I typically employ when dealing with such difficulties -

2092196 - SAP HANA How-To: Terminating Sessions

You may also use keywords like - SAP HANA terminate session connection disconnect cancel kill hang stuck, KBA, HAN-DB-ENG, SAP HANA DB Engines, HAN-DB, SAP HANA Database, HAN-DB-ENG, SAP HANA DB Engines, HAN-DB, SAP HANA Database, HAN-DB-ENG, SAP HANA DB Engines, HAN-DB, SAP HANA Database, The simplest approach to find out your IDLE session is to do the following: -

SELECT CONNECTION_ID, IDLE_TIME FROM M_CONNECTIONS WHERE CONNECTION_STATUS = 'IDLE' AND CONNECTION_TYPE = 'Remote'  ORDER BY IDLE_TIME DESC

Therefore once finding out the session then execute the following ALTER command to end it.

ALTER SYSTEM DISCONNECT SESSION   '{connection_id}'

These checks are necessary if any suspicious jobs, sessions, or remote calls are initiated, and the system is left orphaned.


No comments: