FORM级别和数据库级别的Trace
metalink上的文章較全的,中文的可參考我的博客EBS開發技術之trace http://blog.csdn.net/cai_xingyun/article/details/17250971
This document provides instructions on how to create and retrieve Forms and Database level SQL trace. The example details below are for receiving processes, but these instructions are also applicable for other forms and concurrent processes.?
Please reference Note 299497.1 for instructions on how to gather debug information for receiving processes.
Forms Level Trace
Forms level trace is SQL trace generated before the transaction is saved on a form. It is enabled from the form and captures SQL code related to the execution of the form.? This should be used when the error occurs on the form BEFORE clicking on the save.? Typically these are FRM or APP errors but there could be other varying error messages.
Steps to generate forms level trace:
Help > Diagnostics > Trace > No Trace
select value from V$PARAMETER where name like 'user%';
tkprof <filename>.trc <filename>.out explain=<found username/password>
example: tkprof file1234.trc file1234.out explain=<apps/apps>
Database Level Trace
Database level trace is SQL trace generated after the transaction is saved and receiving transaction processor is processing the transaction. This should be generated when the error occurs AFTER clicking Save to commit the transaction on a receiving form. In Online receiving mode typically "rvtptcontrol failed" error occurs.? For Immediate or Batch receiving modes the error(s) is recorded in the receiving transaction processor concurrent request log file. There are many ways to gather a database trace file for receiving processes.
Methods to Generate Database Level Trace
1. Profile PO: Enable SQL Trace for Receiving Processor
Setting this profile to ‘Yes’ will generate a Event 10046 Level 12 database level trace for the receiving transaction being saved.
Steps to generate trace file:
- Bring up the Core application - System Administrator responsibility
- Go to Profile > System
- Check off the USER box - and enter the username of the user for whom trace needs to be enabled
- Search on the following profile option - 'PO: Enable SQL Trace for Receiving Processor'
- At the user level, set the value of the profile to 'Yes'
Error message will be displayed on the form only in online mode. In Immediate / Batch mode, the error will be recorded in the concurrent request log file of Receiving Transaction Processor.
Location of the trace file:
2. Enable trace for the concurrent program
This can be used only when saving the transaction in Immediate or Batch mode. This method generates an Event 10046 Level 1 trace only with no bind variables and no waits.
Steps to generate trace file:
- Bring up the Core application - System Administrator responsibility
- Goto Concurrent > Program > Define
- Query the concurrent program (shortname = RVCTP)
- Check the trace box to enable trace and Save
Location of the trace file:
The trace file can be located using the SQL below. Use the concurrent request id noted in step 3.
3. Enable profile ‘Initialization SQL Statement – Custom’
This method should be used when there is requirement to capture trace for processes in related products like INV, OM, WIP etc. initiated by Receiving Transaction Processor. This method enables and Event 10046 Level 12 database trace for the entire session of the user for whom the profile is enabled. The session can be linked to an online Form, a Concurrent Program, or any other piece of code that requires accessing the database.? Hence, this method must be used carefully as it can generate many trace files as user navigates through the applications.
Steps to generate trace file :
- Bring up the Core application - System Administrator responsibility
- Move to Profile/System
- Check off the USER box - and enter the username of the user for whom trace needs to be enabled
- Search on the following profile option - 'Initialization SQL Statement - Custom'
- Please set this at the user level with the following string:
- # 1. Cut and paste the above sql statement into the profile value editor. This must be one complete line of text - so may be best to copy the string into notepad prior to putting it into the profile and making sure that there are no special characters in the string.
# 2. String 'RCVTRACE' in the above statement can be changed to any user-defined value. This is the string that will be included in the filename and will help in identifying all the trace files related to a session.
Error message will be displayed on the form only in online mode. In Immediate / Batch mode, the error will be recorded in the concurrent request log file of Receiving Transaction Processor.
Location of the trace file:
轉載于:https://www.cnblogs.com/wanghang/p/6299392.html
總結
以上是生活随笔為你收集整理的FORM级别和数据库级别的Trace的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: jekenis: docker安装前,修
- 下一篇: 对于.swp文件的恢复方法