How to Run Statement Level/Java trace or a SQL Trace in Self Service Application
ITPUB有朋友問,解答如下
[@more@]Statement Level/ Java Trace:
1 - Remove any messages from the FND_LOG_MESSAGES table for the user running the process to be traced.
To get the user id of your self service user:
select user_id
from fnd_user
where user_name = '????'
Delete all rows in the tables for this user:
delete from FND_LOG_MESSAGES
where user_id =� xxx����
2- To set fnd logging you need to set the following FND system profiles:
Log onto the Applications forms with System Administrator responsibility
Navigate to Profile > System
At User Level for the employee you are tracing set these values:
In the Profile field, query and then set the value as noted
FND: Debug Log Enabled - Yes OAF 11.5.10 CU1 it is called FND: Log Enabled
FND: Debug Log Level - Statement
FND: Diagnostics = Y - Enables the Diagnostics Button on the SS Framework
FND: Debug Log Filename = This is optional. Use if want to direct to specific directory/name
Reference a directory where you have write privledges Directory/filename�
Example: /usr/tmp/MyDump.txt�
At the Site level, set these values
In the Profile field, query and then set the value as noted
FND: Debug Log Mode - Asynchronous with Cross-Tier Sequencing (this may or may not be there)
FND: Debug Log Module - xxx.plsql.% xxx is the application ex. per.plsql.% (NOTE HXC, OTL uses PER)�
When you log into self service, a message will be displayed that logging is enabled.
Perform the action which caused the problem.�
To extract the log messages from the database you again need the user id of your self service user and then run this query:
select *
from fnd_log_messages
where user_id = ????
order by log_sequence
Upload the output file to the TAR.
*** Do not forget to turn off the logging when done.
*** Reset all the profile values
SQL trace:�
Responsibility = SysAdmin
Navigation: Security > Profile
User: Enter User name
Query the Profile: FND: Diagnostics
Set the FND:Diagnostics profile to Yes at User level.
Login into Self Service under the same user used to set the profile value.
Click the diagnostic icon at the top of the page.
It shows two options:
Show Log
Set Trace Level
Select 'Set Trace Level'
Click Go.It shows a page with a set of options.�Set Trace Level - This is like a forms trace - with several options:
Disable Trace - used to end the trace
Trace (Regular) - just like a forms trace
Trace with Binds - record the bind variables in the trace
Trace with waits - Good for performance issues.
Trace with binds and waits - combines both of the above
Choose�� Trace option�
Click Save.Execute the process in Self Service. This will put the sql trace in the usual log directory.
Turn off Trace.
Select the Diagnostic icon.
Click on option: Set Trace Level
Click Go
Select : Disable Trace
To determine where the raw trace file is located.
From SQLPlus:
SELECT value
FROM v$parameter
WHERE name = ?user_dump_dest?;
run TKPROF procedure on the raw trace file
For example:
hrab51_ora_18190.trc is the name of the raw trace file
trace1.txt is the name of the TKPROF file
tkprof hrab51_ora_18190.trc ~/trace1.tkt explain=apps/apps sort=exeela,prsela,fchela'
See <169935.1> available on Metalink
169935.1>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8710/viewspace-974676/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to Run and View a Listener Trace. [ID 147446.1]View
- Event 10046 - Enable SQL Statement TraceSQL
- How to enable trace in OracleOracle
- how to start '10046 trace name context forever,level 12'Context
- SQL TraceSQL
- ollydbg的教學-Run trace
- SQL_TRACESQL
- trace top sql sessionSQLSession
- Oracle sql trace用法OracleSQL
- SQL Server TRACE FLAGSQLServer
- 【轉】 sql_traceSQL
- zt_dbanotes_Oracle Trace Level Event NumbersOracle
- sql_trace生成及使用tkprof檢視trace fileSQL
- Microsoft SQL Server Trace FlagsROSSQLServer
- sql_trace的使用SQL
- oracle“SQL Trace”簡介OracleSQL
- How to read Oracle 10046 trace fileOracle
- sql trace有兩種方法在session級進行trace(轉)SQLSession
- 【實驗】【SQL_TRACE】使用sql_trace功能獲得show parameter的sql語句SQL
- Oracle 10046 SQL TRACEOracleSQL
- SQL_TRACE與tkprof分析SQL
- 開啟/檢視 sql traceSQL
- sql trace 簡單測試SQL
- sql_trace 及 tkprof 工具SQL
- SQL 的跟蹤方法traceSQL
- 10298 trace name context forever, level 32Context
- alter session set events 'immediate trace name controlf level 8'Session
- Oracle診斷案例-Sql_traceOracleSQL
- sql_trace相關指令碼SQL指令碼
- sql trace的使用說明一SQL
- sql_trace 原檔案解析SQL
- sql_trace/ 10046 整理SQL
- 跟蹤 sql 的trace檔案SQL
- sql_trace and 10046事件SQL事件
- 利用sql_trace提高自學能力SQL
- 【筆記】 sql_trace相關筆記SQL
- Oracle SQL_TRACE使用小結OracleSQL
- sql_trace跟蹤工具(轉)SQL