博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Check Process Override Options
阅读量:5327 次
发布时间:2019-06-14

本文共 1736 字,大约阅读时间需要 5 分钟。

After reading this  about how the PSAESRV process scheduler service was failing due to someone setting trace options on an application engine process but using override instead of append in the parameter list, I thought it might be a good idea to write a query that checks all process definitions where the parameter list, command line or working directory has been changed in the process definition override options.

The SQL is provided below. You can also download it . You might find that the majority of the processes returned are Crystal Reports so you can amend the SQL to skip this process type if required.

select
  PRCSTYPE ,
  PRCSNAME ,
  DESCR ,
  (
 
select
  XLATSHORTNAME
 
from
  PSXLATITEM
  XI
 
where
  FIELDNAME
 =
 
'
PARMLISTTYPE
'
 
and
  FIELDVALUE
 =
  PD . PARMLISTTYPE
 
and
  EFFDT
 =
  (
 
select
 
max ( EFFDT )
 
from
  PSXLATITEM
 
where
  FIELDNAME
 =
  XI . FIELDNAME
 
and
  FIELDVALUE
 =
  XI . FIELDVALUE
  )
 
and
  EFF_STATUS
 =
 
'
A
'
  )
 
as
  PARMLISTTYPE ,
  PARMLIST ,
  (
 
select
  XLATSHORTNAME
 
from
  PSXLATITEM
  XI
 
where
  FIELDNAME
 =
 
'
CMDLINETYPE
'
 
and
  FIELDVALUE
 =
  PD . CMDLINETYPE
 
and
  EFFDT
 =
  (
select
 
max ( EFFDT )
 
from
  PSXLATITEM
 
where
  FIELDNAME
 =
  XI . FIELDNAME
 
and
  FIELDVALUE
 =
  XI . FIELDVALUE
 
and
  EFFDT
 <=
  sysdate )
 
and
  EFF_STATUS
 =
 
'
A
'
  )
 
as
  CMDLINETYPE ,
  CMDLINE ,
  (
 
select
  XLATSHORTNAME
 
from
  PSXLATITEM
  XI
 
where
  FIELDNAME
 =
 
'
WORKINGDIRTYPE
'
 
and
  FIELDVALUE
 =
  PD . WORKINGDIRTYPE
 
and
  EFFDT
 =
  (
 
select
 
max ( EFFDT )
 
from
  PSXLATITEM
 
where
  FIELDNAME
 =
  XI . FIELDNAME
 
and
  FIELDVALUE
 =
  XI . FIELDVALUE
 
and
  EFFDT
 <=
  sysdate )
 
and
  EFF_STATUS =
 
'
A
'
  )
 
as
  WORKINGDIRTYPE ,
  WORKINGDIR
from
  PS_PRCSDEFN
  PD
where
  ( PARMLISTTYPE
 !=
 
'
0
'
 
OR
  CMDLINETYPE
 !=
 
'
0
'
 
OR
  WORKINGDIRTYPE
 !=
 
'
0
' )
order
 
by
  PRCSTYPE ,
  PRCSNAME ;

转载于:https://www.cnblogs.com/bryanchen/p/3389753.html

你可能感兴趣的文章
What Linux bind mounts are really doing
查看>>
linux top命令详解
查看>>
博弈论小结
查看>>
模拟Post登陆带验证码的网站
查看>>
预科阶段:快速实战入门
查看>>
CentOS下安装配置MySQL8.0的步骤详解
查看>>
NYOJ458 - 小光棍数
查看>>
java中常用方法
查看>>
【Programming Clip】06、07年清华计算机考研上机试题解答(个别测试用例无法通过)...
查看>>
HTML基础
查看>>
老罗将死,或者Android也将就换代,但是互联网的,共享,互助精神将永存
查看>>
canvas动画
查看>>
系统软件构成
查看>>
4,7周围玩家
查看>>
关于webpack升级过后不能打包的问题;
查看>>
vue - 生命周期
查看>>
追忆我的2008-养成做笔记的习惯
查看>>
SQL Server用户权限详解
查看>>
VS2017动态链接库(.dll)的生成与使用
查看>>
Python正则表达式
查看>>