壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 429|回复: 0

[供应链] Oracle MSCA(Mobile Supply Chain Application) Debug Log & SQL Trace

[复制链接]
发表于 2013/6/20 17:03:50 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
MSCA Debug Log
1. 找到mwa.cfg配置文件
In 11i: $MWA_TOP/secure/

In R12: $INST_TOP/admin/install/


2. 设置mwa.cfg

trace level: mwa.LogLevel=TRACE

'mwa.logdir' 为日志输出路径,R12下,mobile日志会写到$INST_TOP/logs下
注:mwa.LogLevel可以设置为: Fatal, Error, Warning, Debug, and Trace.
Fatal只有在出现错误的情况才会记录日志. Trace会打出所有日志。因为性能原因,一般情况下不要设置logLevel到TRACE

3. 重启mobile Server


4. 业务处理, 在日志目录下就能看到[port].INV.log,[port].system.log

MSCA SQL Trace
1. Go to $MWA_TOP/secure directory.
2. In the file mwa.cfg , set mwa.LogLevel=performance.
3. Restart the mobile server.
4. Perform the related navigation steps to cause the issue.
5. You can search in the trace directories for files created. Or you can try to locate the particular file using SQL like the following to help. Query to identify the trace file name with the corresponding number from the username.
select prs.spid
from v$session ses , v$process prs
where ses.program = 'JDBC Thin Client'
and ses.client_info is not null
and ses.osuser = '&OS_USER_NAME'
and ses.paddr = prs.addr
order by ses.logon_time desc ;

6. Use the column "prs.spid" which maps to the filename in udump location. For example, if the column has the value 18027, then the file name could be  "ora_18027.trc".
7. Create a TKPROF file and upload both the raw trace (.trc) and TKPROF.
8. After generating the trace file, ensure that you disable SQL*Trace by stopping the mobile server, resetting the parameter in mwa.cfg, and restarting the mobile server.Reference:
SQL*Trace with WMS-MWA: Mobile Applications (Tracing SQL Via Database Trace To Allow For TKPROF Of Results Of User Actions) (Doc ID 277655.1)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/29 00:49 , Processed in 0.015848 second(s), 18 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表