Hi, folks,
following sql returns all running sessions for dateabase "pegasusdb" and host "BENONI3" :
CONNECT TO 'sysmaster';
SELECT t0.sqs_sessionid, t0.sqs_statement FROM syssqlstat AS t0, syssessions AS t1
WHERE t0.sqs_dbname = 'pegasusdb'
AND NOT t0.sqs_statement IS NULL
AND t0.sqs_sessionid = t1.sid AND t1.tty = 'BENONI3'
ORDER BY t0.sqs_sessionid DESC
Nevertheless, the sql-statement will be truncated after 200 characters because of column width. Any ideas what can be used instead without truncating ?
I'm wondering how onstat -g sql <sid> will do that ...
Yours, Christof.