码迷,mamicode.com
首页 > 其他好文 > 详细

ebs 12.1.3 经常需要查看一些服务器日志已经并发管理器、并发请求日志

时间:2020-05-21 16:20:45      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:like   action   art   pattern   sts   date   _id   gsm   服务   

ebs 12.1.3 ,经常需要查看一些服务器日志。

# find /ebsfs/EBSPROD/inst -type f -mmin -100

/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/appl/conc/log/javacache.log

/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/j2ee/forms/forms_default_group_1/server.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/j2ee/forms/forms_default_group_2/server.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/j2ee/forms/forms_default_group_3/server.log

/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/j2ee/oacore/oacore_default_group_1/server.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/j2ee/oacore/oacore_default_group_2/server.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/j2ee/oacore/oacore_default_group_3/server.log

/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/j2ee/oafm/oafm_default_group_1/server.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/j2ee/oafm/oafm_default_group_2/server.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/j2ee/oafm/oafm_default_group_3/server.log

/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/opmn/default_group~forms~default_group~1.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/opmn/default_group~forms~default_group~2.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/opmn/default_group~forms~default_group~3.log

/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/opmn/default_group~oacore~default_group~1.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/opmn/default_group~oacore~default_group~2.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/opmn/default_group~oacore~default_group~3.log

/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/opmn/default_group~oafm~default_group~1.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/opmn/default_group~oafm~default_group~2.log
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/opmn/default_group~oafm~default_group~3.log

/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/Apache/access_log.*
/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.3/Apache/error_log.*

/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/ora/10.1.2/network/apps_ebsprod.log
————————————————

查找并发管理器日志:OPP

SELECT P.CONCURRENT_PROCESS_ID,
       LOGFILE_NAME,
       P.LAST_UPDATE_DATE,
       P.CREATION_DATE,
       P.ORACLE_PROCESS_ID,
       P.PROCESS_START_DATE,
       P.OS_PROCESS_ID,
       P.GSM_INTERNAL_INFO
  FROM FND_CONCURRENT_PROCESSES P
 WHERE LOGFILE_NAME LIKE ‘%OPP%‘;

并发请求日志

SELECT * from fnd_concurrent_requests;

--并发生成日志多少和大小MB
SELECT AVG(LOGCOUNT), AVG(OUTCOUNT), AVG(FILESIZE)
  FROM (SELECT TO_CHAR(T.REQUEST_DATE, ‘YYYY-MM-DD‘) DATE1,
               COUNT(T.LOGFILE_NAME) LOGCOUNT,
               COUNT(T.OUTFILE_NAME) OUTCOUNT,
               SUM(T.LFILE_SIZE / 1024 / 1024) FILESIZE
          FROM FND_CONCURRENT_REQUESTS T
         GROUP BY TO_CHAR(T.REQUEST_DATE, ‘YYYY-MM-DD‘)
         ORDER BY 1) T;

--查询SOA-webservice-接口调用日志
SELECT *
  FROM (SELECT REQUEST_TIMESTAMP AS REQDATETIME,
               REQUEST_COMPLETED AS RESDATETIME,
               WRQ.IREP_NAME AS WEB_SERVICE_NAME,
               FIC.CLASS_ID AS CLASS_ID,
               METHOD AS METHOD_NAME,
               USER_NAME,
               WRQ.USER_ID,
               IP_ADDRESS,
               REQUEST_STATUS AS REQUEST_STATUS,
               RESPONSE_STATUS AS RESPONSE_STATUS,
               MESSAGE_ID,
               REQUEST_PATTERN,
               (SELECT MEANING
                  FROM FND_LOOKUP_VALUES_VL
                 WHERE LOOKUP_TYPE = ‘FND_SOA_RESPONSE_STATUS‘
                   AND LOOKUP_CODE = WRQ.RESPONSE_STATUS) AS RES_STATUS,
               (SELECT MEANING
                  FROM FND_LOOKUP_VALUES_VL
                 WHERE LOOKUP_TYPE = ‘FND_SOA_REQUEST_STATUS‘
                   AND LOOKUP_CODE = WRQ.REQUEST_STATUS) AS REQ_STATUS,
               (SELECT MEANING
                  FROM FND_LOOKUP_VALUES_VL
                 WHERE LOOKUP_TYPE = ‘FND_SOA_MESSAGE_PATTERN‘
                   AND LOOKUP_CODE = WRQ.REQUEST_PATTERN) AS INTERACTION_ARCHITECTURE,
               (SELECT DECODE(COUNT(1), 0, ‘LOG_ABSENT‘, ‘LOG_PRESENT‘)
                  FROM FND_LOG_MESSAGES
                 WHERE TRANSACTION_CONTEXT_ID IN
                       (SELECT TRANSACTION_CONTEXT_ID
                          FROM FND_LOG_TRANSACTION_CONTEXT
                         WHERE TRANSACTION_TYPE = ‘SOA_INSTANCE‘
                           AND TRANSACTION_ID = WRQ.MESSAGE_ID
                           AND REGEXP_LIKE(WRQ.MESSAGE_ID,
                                           ‘^-?[[:digit:],.]*$‘))) AS ENABLE_LOG
          FROM FND_SOA_REQUEST WRQ,
               FND_USER FU,
               ((SELECT CLASS_ID, IREP_NAME, CLASS_TYPE FROM FND_IREP_CLASSES)
                UNION ALL (SELECT -1 AS CLASS_ID,
                                  FND_MESSAGE.GET_STRING(‘FND‘,
                                                         ‘FND_SOA_GXMLG_IREP_NAME‘,
                                                         ‘US‘),
                                  FND_MESSAGE.GET_STRING(‘FND‘,
                                                         ‘FND_SOA_GXMLG_IREP_NAME‘,
                                                         ‘US‘)
                             FROM DUAL)) FIC
         WHERE WRQ.USER_ID = FU.USER_ID(+)
           AND FIC.IREP_NAME = WRQ.IREP_NAME
           AND FIC.CLASS_TYPE NOT IN
               (‘SOAPSERVICEDOC‘, ‘RESTSERVICEDOC‘, ‘WEBSERVICEDOC‘)) QRSLT
 WHERE (((TO_DATE(TO_CHAR(REQDATETIME, ‘dd-mm-yyyy‘), ‘dd-mm-yyyy‘)) >=
       TRUNC(SYSDATE - 7)))
 ORDER BY REQDATETIME DESC;

ebs 12.1.3 经常需要查看一些服务器日志已经并发管理器、并发请求日志

标签:like   action   art   pattern   sts   date   _id   gsm   服务   

原文地址:https://www.cnblogs.com/wangchuangyunhai/p/12931170.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!