All Forums Database
mnstr 2 posts Joined 01/09
30 Oct 2009
how to abort session without PEMON or TDManager ?

Dear All

Have the other ways to aborts session ?
How do I abort session by sql syntax?
,i really wanna know -*-


Fred 1096 posts Joined 08/04
31 Oct 2009

In TD12.0 or later, check out the "Open API" SQL functions (documented in the Workload Management API manual).

gryback 271 posts Joined 12/08
02 Nov 2009

Worth mentioning, is that TASM supports abort capability of queries exceeding an exception threshold. This includes the "Abort on Select Only" option to avoid aborting DML and DDL queries.

RFiala 1 post Joined 12/08
24 Oct 2010

One of simplest ways is following. You can go to console and type ABORT SESSION *.USERNAME;

Karam 75 posts Joined 07/09
25 Oct 2010

Hi RFiala - Can you provide an example with a session number as 123456 and username as RFiala ?

Subhash.Gander 22 posts Joined 07/09
26 Oct 2010

Syntax to execute abortsession.

UserNameIn VARCHAR(30),
SessionNoIn INTEGER,
LogoffSessions VARCHAR(1),
UserOverride VARCHAR(1)

SELECT AbortSessions (1, 'abc', 0, 'Y', 'Y');
-- Logoff/Kill all sessions where the user abc is logged on.

You must sign in to leave a comment.