SAP Knowledge Base Article - Preview

2621283 - sp_who and queries against sysprocesses show many processes with cmd = "COMPILING" - SAP ASE

Symptom

Running SQL to get sysprocesses, which is showing many processes with cmd = "COMPILING".

select convert(varchar(19), getdate(), 140) SampleTime,
p.SPID, p.Application, convert(varchar(10),p.Command) Command,
pp.ObjectName, convert(varchar(10),pp.ObjectType) ObjectType,
ps.ProcedureID, pt.SQLText,
'|'
from master..monProcess p
join master..monProcessStatement ps on p.SPID = ps.SPID and p.KPID = ps.KPID
left outer join master..monProcessProcedures pp on p.SPID = pp.SPID and p.KPID = pp.KPID
join master..monProcessSQLText pt on p.SPID = pt.SPID and p.KPID = pt.KPID
where p.ServerUserID != 0 and p.Command = 'COMPILING'
order by p.SPID
go

--------------------------

 SampleTime          SPID        Application                    Command    ObjectName                     ObjectType ProcedureID SQLText                                                                                                                                                                                                                                                          
 ------------------- ----------- ------------------------------ ---------- ------------------------------ ---------- ----------- ---------------------------------------------- 
 2018-03-13 13:25:43        7372 XXXXXXXXXXXXXX               COMPILING  NULL                           NULL        123456789 OPEN_CURSOR      jconnect_implicit_20929:
 2018-03-13 13:25:43        7372 XXXXXXXXXXXXXX               COMPILING  NULL                           NULL        123456789 10),
 2018-03-13 13:25:43        7372 XXXXXXXXXXXXXX               COMPILING  NULL                           NULL        123456789  = 0000


Read more...

Environment

Adaptive Server Enterprise 16.0 SP02 PL04

Product

SAP Adaptive Server Enterprise 16.0

Keywords

sysprocesses, COMPILING , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.