登录 注册
当前位置:主页 > 资源下载 > 50 > 检查在sybase15.7 for linux 6环境下安装与创建服务时,存在逻辑读较多情况的SPID

检查在sybase15.7 for linux 6环境下安装与创建服务时,存在逻辑读较多情况的SPID

  • 更新:2024-07-08 19:54:26
  • 大小:7.9MB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:Sybase - 数据库
  • 格式:PPT

资源介绍

通过以下语句检查逻辑读较多的SPID select SPID, KPID, BatchID, ContextID, DBID, ProcedureID, StartTime, ElapsedTime=datediff(ss,StartTime,max(EndTime)), CPUTime=sum(CpuTime),LogicalReads=sum(LogicalReads), PagesModified=sum(PagesModified) from master..monSysStatement group by SPID, KPID, BatchID, ContextID, DBID, ProcedureID, StartTime having datediff(ss,StartTime,max(EndTime)) > 0 and sum(LogicalReads) > 0 order by 7