ESYU: R12 - R12 Trace/Debug file을 생성하는 방법
Purpose
Version: 12.0
Information in this document applies to any platform.
R12에서 Trace와 Debug file 생성 방법을 알아본다.
Solution
1. Navigate Responsibility: System Administrator> Profile> System>Query
User: Trace를 생성할 user 명을 입력
Profile: Initialization SQL Statement - Custom
2. User columne에 아래의 내용을 입력
begin fnd_ctl.fnd_sess_ctl('','','TRUE','TRUE','LOG','ALTER SESSION SET EVENTS='||''''||'10046 TRACE NAME CONTEXT FOREVER,LEVEL 12'||''''); end;
3. 입력한 내용을 저장
FND debug messages를 생성:
4. Navigate Responsibility: System Administrator> Profile> System>Query
User: Debug를 생성할 user 명을 입력
Profile: FND:%Debug%
5. 아래 profile options 값을 user level로 set
FND: Debug Log Enabled Yes
FND: Debug Log Filename <empty>
FND: Debug Log Level STATEMENT
FND: Debug Log Mode Asynchronous with Cross-Tier Sequencing
FND: Debug Log Module %
6. 입력한 내용을 저장
Example:
7. Navigate: Payables Responsibility> Other> Request> Run> Select and Submit the Report
(특정 Report를 실행한다)
8. Trace 와 FND Debug messages를 disable
9. FND Debug message를 찾기위해 아래 query를 실행
select log_sequence, timestamp, module,message_text
from fnd_log_messages fnd
where trunc(timestamp) = trunc(sysdate)
and (module like '%xla.%' or module like '%ap.%')
and trunc(timestamp) = trunc(sysdate)
order by timestamp;
SELECT log_sequence, message_text,substr(module,1,100)
FROM fnd_log_messages msg
, fnd_log_transaction_context tcon
WHERE msg.TRANSACTION_CONTEXT_ID = tcon.TRANSACTION_CONTEXT_ID
AND tcon.TRANSACTION_ID= /*Give the request id of accounting program*/
ORDER BY LOG_SEQUENCE desc
Debugging의 활성화를 위해 아래 profile option을 사용:
FND: Debug Log Enabled : Yes
FND: Debug Log Level : Statement
Debug message를 얻기 위해 아래 query 문을 사용:
SELECT substr(module,1,70), MESSAGE_TEXT, timestamp, log_sequence
FROM fnd_log_messages msg, fnd_log_transaction_context tcon
WHERE msg.TRANSACTION_CONTEXT_ID = tcon.TRANSACTION_CONTEXT_ID
AND tcon.TRANSACTION_ID = <your child request ID>
ORDER BY LOG_SEQUENCE
10. 아래 SQL을 이용해 trace file이 생성되는 위치를 확인, raw trace와 tkprof'd trace
file을 upload
select value
from v$parameter
where name = 'user_dump_dest';
Reference
Note 458371.1
Similar Messages
-
ESYU: Autocreate issue를 위한 Debug file 생성 방법
Purpose
Oracle Purchasing - Version: 11.5.8 ~
PO Autocreate issue 발생시 문제 해결을 위해 Debug file을 생성하는 방법에
대한 설명을 목적으로 한다.
Solution
Autocreate debug utility는 11i_PRC_PF.H (patch 2320032) version 즉 11.5.8
version 부터 가용하다.
System Administrator로 log-in 후 specific user(autocreate 생성자) level로
아래 profile options 값을 setting 한다.
-. Set the FND Debug Log Enabled: Yes
-. Set the FND Debug Log Level: Statement
-. Set the FND Debug Log Module: PO
Oracle Application을 log-out 후 위 profile option 값을 setting 한 user로 log-in을
다시 한다.
Autocreate를 통해 PO를 생성합니다. PO가 정상적으로 생성되거나 failed 될 것이다.
Log file을 monitor 하는 방법:
As System Administrator Go to Help-> Dignostics-> Logging -> View
Search System Logs page가 pop up 될 것이다.
특정 parameter나 아래 모든 parameters에 값을 입력 후 log를 view 할 수 있다.
Level: Statement(optional)
View : %PO_INTERFACE_S% ( For Autocreate)
Posted After and Posted Before: Log를 보고자 원하는 date
press GO
다음 Module name을 가진 logs를 조회:
%PO_INTERFACE_S%
Download All을 이용하면 log file을 excel file로 export 할 수있다.
Delete All을 이용하여 log statements는 remove 된다.
Reference
Note 220747.1 -
I am not seeing traces in the xsengine trace log; nor am I able to effectively set breakpoints in the Web Editor and stop page processing. I'll start by defining roles and configuration, describing actions that aren't working, and then finish with 2 questions.
ROLES AND CONFIGURATION
According to the developer guide, the following configuration and roles need to be in place for tracing and debugging to work. This is our current role state:
User assigned Debugger role
To change Trace level, user assigned TraceAdmin role
User assigned TraceViewer role, child role of Developer
To view tracing, confirm the following configuration. This is our current config state.:
In the xsengine.ini file, the debugger > enabled node is set to true
In the xsengine.ini file, the httpserver > developer_mode node is set to true
ACTIONS
To start tracing, set the Trace level for your package, e.g., debug. Include a trace call in the code, e.g., $.trace.debug("testing debug trace"). In the Web Editor, run the xsjs file, and in the resulting browser window, click the Call Backend button. Here is where my issues begin: there is no Call Backend button, in any browser version.
To start debugging, set breakpoints in the Web Editor by clicking the line number. A breakpoint is indicated by a red arrow on the line number. Then run the page. The page should stop processing at that point. (You can also set breakpoints in Hana Studio by running in Debug perspective, and setting a debug configuration. I tried this also, but was unable to create a desired configuration for port 443; this is a separate issue, outside the scope of this discussion.)
QUESTIONS
What am I missing in setting up tracing?
What am I missing in setting up debugging?
Thanks in advance for any guidance.
BillKrishna,
Thank you for your response. Running breakpoints in the Hana Studio debug perspective has its own set of challenges for us. The web server is using ssl, and thus is set to port 443, rather than port 80(server instance number). I have not been able to successfully create a configuration for running xsjs scripts through Hana Studio. But I'll keep trying.
Bill -
How do I find the program that is creating a debug file
Hi,
I have a bunch of debug files in /usr/tmp directory on a Unix box. I am using Oracle Apps 11i. How do I find which program is causing this file?
There content of the debug files does not have much information to point to any particular program.
Thanks
AsgarThanks for the update.
The user is oracle and group is dba. I know from the name of the file that it is coming from oracle apps (somewhere in a custom program).
Asgar -
SHIPPING EXECUTION에 대해 DEBUG FILE을 생성하는 방법
제품: Applications
작성날짜 : 2006-05-30
SHIPPING EXECUTION에 대해 DEBUG FILE을 생성하는 방법
==========================================
PURPOSE
Shipping Execution에 대해 Debug file을 생성하는 방법을 기술함.
Explanation
Log file을 생성하기 위한 여러 방법들이 있으며, 이는 다음과 같은 patch level에 의해 결정된다.
A. debug file from the Shipping Transaction or Quick Ship forms in
version 11.5.9 or higher.
B. debug file for Pick Release in version 11.5.9 (Family pack I)
or higher.
C. debug file for Pick Release prior to version 11.5.9
D. debug file for Interface Trip Stop - SRS in version 11.5.9
(Family pack I) or higher.
E. debug file for Interface Trip Stop - SRS prior to version
11.5.9 (Family pack I).
F. debug file for an API in version 11.5.9 (Family pack I) or higher:
G. debug file for an API prior version 11.5.9 (Family pack I):
A. To generate a debug file from the Shipping Transaction or
Quick Ship forms in version 11.5.9 (Family pack I) or higher:
1. Set the following profile options:
OM: Debug Level - set to 5
WSH: Debug Enabled - set to Yes
WSH: Debug Level - set to Statement
WSH: Debug Log Directory - any directory that can be written to by
the database
여기서, 설정하는 directory는 다음을 check하여야 합니다.
To check, run the following SQL statement:
Code:
select value from v$parameter
where name = 'utl_file_dir'
Set profile option WSH: Debug Log Directory at the Site
& Application Level.
2. Shipping form --> Tools
Debug box를 check. ==> This will print out a file name
- NOTE down this file name.
3. Perform the action you wish to debug.
4. Tools --> uncheck Debug box.
5. After you have completed generating the debug file,
set profile OM: Debug Level back to 0
WSH: Debug Enabled set to No
6. step 1의 debug directory밑에 debug file이 생성됨.
B. To generate debug information for Pick Release in version 11.5.9 or
higher:
1. Set the following profile options:
OM: Debug Level - set to 5
INV: Debug Level - set to 10
WSH: Debug Enabled - set to Yes
WSH: Debug Level - set to Statement
2. Release Sales Order for Picking form --> Tools
==>check the Debug box.
3. Submit the pick release.
4. Provide "Pick Selection List Generation" log file.
C. To generate debug for Pick Release prior to version 11.5.9 :
1. Set the following profile options:
OM: Debug Level - set to 5
INV: Debug Level - set to 10
2. Release Sales Order for Picking form --> Tools
==>check the Debug box.
3. Submit the pick release.
4. Provide "Pick Selection List Generation" log file.
D. To generate debug for Interface Trip Stop - SRS in 11.5.9 or higher:
1. Set the following profile options:
OM: Debug Level - set to 5
INV: Debug Level - set to 10
WSH: Debug Enabled - set to Yes
WSH: Debug Level - set to Statement
Set the Debug Level parameter to 1 (Debugging ON) .
2. Submit the job.
3. Provide the log file.
E. To generate debug for Interface Trip Stop - SRS prior to 11.5.9:
1. Set the following profile options:
OM: Debug Level - set to 5
INV: Debug Level - set to 10
Set the Debug Level parameter to 1 (Debugging ON) .
2. Submit the job.
3. Provide the log file.
F. To generate debug for an API in 11.5.9 or higher:
1. Set the following profile options:
OM: Debug Level - set to 5
INV: Debug Level - set to 10
WSH: Debug Enabled - set to Yes
WSH: Debug Level - set to Statement
WSH: Debug Log Directory - set to a valid writeable directory path
2. Add the following line of code in the wrapper script which calls
the API:
Code:
DECLARE
l_file_name VARCHAR2(32767);
l_return_status VARCHAR2(32767);
l_msg_data VARCHAR2(32767);
l_msg_count NUMBER;
BEGIN
fnd_profile.put('WSH_DEBUG_MODULE','%');
fnd_profile.put('WSH_DEBUG_LEVEL',WSH_DEBUG_SV.C_STMT_LEVEL);
wsh_debug_sv.start_debugger
(l_file_name,l_return_status,l_msg_data,l_msg_count);
3. Submit the job.
4. Provide the log file.
G. To generate debug for an API prior to 11.5.9 (Family pack I):
1. Set the following profile options:
OM: Debug Level - set to 5
INV: Debug Level - set to 10
2. Add the following line of code in the wrapper script which calls
the API:
Code:
oe_debug_pub.initialize;
oe_debug_pub.SetDebugLevel(5);
DBMS_OUTPUT.PUT_LINE('Debug File = '
||OE_DEBUG_PUB.G_DIR||'/'||OE_DEBUG_PUB.G_FILE);
3. Submit the job.
4. Provide the log file.
Example
Reference Documents
Note#290432.1 -
Windows Server 2012r2 Failover Cluster Event Trace Log files
Hi
The only documentation I can find regarding event trace log files (Diagnostic.etl.*) for Failover Clustering relate to Server 2008/2008r2, which state that the etl files should be in C:\Windows\System32\winevt\Logs.
I have been exploring a clustering lab for Server 2012r2 and cannot find these files in that folder.
Strangely the PS cmdlet Get-ClusterLog still works!
Where are the etl files?
TIAHi,
Please check if the log is available in C:\ProgramData\Microsoft\Windows\WER\ReportQueue\.
If not, you can use Get-ClusterLog with the Destination parameter to get the log file.
Destination
Specifies the location to copy the cluster log(s) to. To copy to the current folder use "-Destination ." for this parameter.
http://technet.microsoft.com/en-us/library/ee461045.aspx
Thanks.
Jeremy Wu
TechNet Community Support -
Data Integrator build failure - could not open trace log file
HI, this is regarding data integrator 11.5. I have a job that failed trying to run a data flow with the below error. Its run perfectly fine plenty of times in the past. It looks like it just couldn't open the trace log file that it had been writing to... anyone know what would cause this? No one would have been opening or modifying that file during the job except for the job itself. I was just wondering if anyone has run into this before. I am sure it will work if I just
(11.5) 03-27-08 02:05:20 (E) (1128:5536) RUN-050011: |Dataflow xMatter_Exception_Fee_Delta_DF
Error: .HI, this is regarding data integrator 11.5. I have a job that failed trying to run a data flow with the below error. Its run perfectly fine plenty of times in the past. It looks like it just couldn't open the trace log file that it had been writing to... anyone know what would cause this? No one would have been opening or modifying that file during the job except for the job itself. I was just wondering if anyone has run into this before. I am sure it will work if I just
(11.5) 03-27-08 02:05:20 (E) (1128:5536) RUN-050011: |Dataflow xMatter_Exception_Fee_Delta_DF
Error: . -
Many trace log file in udump?
Hello,
when I turn on sql_trace:
SQL>alter system set sql_trace=true;
and I don't connect to it. But in udump folder've many trace log file.
I don't understand!
Help!All technical errors (lack of space, quota exceeded, primary key violations, etc,etc) will automatically result in a trace file in the udump directory. Not reading those trace files, and just worrying about the amount of space they take, is not what you should do, you should address the issues diagnosed in those trace files.
Sybrand Bakker
Senior Oracle DBA -
How to trace the files in macbook without spotsearch?
Hi,
By mistake i dragged one folder from favorites and it vanishes and while using spotsearch i m not able to trace the files. Hence please suggest how we can search it?
OS used is OS X Yosemite.See if you can find the file using this program. If you go Finder/View/Show Path Bar, it will show you where it is located.
EasyFind – Spotlight Replacement -
CLoud computing workload trace log file
Hi. i need a cloud system workload trace based on virtualization.
in parallel workload archive (http://www.cs.huji.ac.il/labs/parallel/workload/) and in grid workload archive (http://gwa.ewi.tudelft.nl/pmwiki/pmwiki.php?n=Main.Home) we have grids workload but no virtulization is mentioned.
is there any website that gives trace log files in any format for a cloud network?Same problem please help me..
middaily -
Hi,
How do I trace/debug a JDBC query before it gets executed by Oracle.
I have a query that works in SQL Plus, but when I try to execute it from my application, it always gives an empty resultset. (The connection works, and all other queries works).
Here is the query in Java format:
"SELECT instrument_id, code, name, " +
" latest_buy, latest_sell " +
"FROM instrument " +
"WHERE upper(name) like(upper('?%')) " +
" OR upper(code) like(upper('?%')) " +
"ORDER BY name";
I replace the question marks by using, setString in PreparedStatement.
Now I would like to view the final query before execution. How should I do that?
thanks
/Kaj
[email protected]
null(1) You cannot replace values inside of SQL quotes. The ? in you query are literal characters.
(2) You can see how JDBC transforms your SQL with the following code snippet from the JDBC manual.
import oracle.jdbc.driver.OracleSql;
public class Foo
public static void main (String args[]) throws Exception {
show ("{call foo(?, ?)}");
show ("{? = call bar (?, ?)}");
show ("{d '1998-10-22'}");
show ("{t '16:22:34'}");
show ("{ts '1998-10-22 16:22:34'}");
public static void show (String s) throws Exception {
System.out.println (s + " => " + new OracleSql().parse (s));
} } -
Trace.txt file cannot be opened
Dear experts,
We currently face the issue that it's not possible anymore to open any trace.txt file from the import overview:
When clicking on the link to the file another browser tab opens up and shows the following message:
We checked as enterprise user for available logs:
In the highlighted log we found an entry related to the opening of a trace.txt file:
In addition we checked with the tool HTTP watch (basic edition) for additional details but only found a hint related to a http 404 error:
We also checked with our internal IT if there is any issue related to the server but they couldn't find anything wrong or suspicious. They suspect the error to come from SAP Sourcing.
Do you have any idea what might cause this behaviour or where we can check in addition to find the root cause of this? Any indication is very appreciated.
Thank you,
FlorianHello Prasad,
Thanks a lot for your quick reply. The vendor upload from the screenshot was just an example. The main issue is that we cannot open any trace.txt file from any import overview, no matter what kind of data we uploaded or if the import was successful or failed.
Is it possible that custom scipts also prevent opening these trace files? If so I'm happy to turn off custom scripts and test it.
I will post the rest results here asap.
Thank you,
Florian -
Hello,
latest Adobe Reader for Linux (9.5.5) - its plugin for firefox named nppdf32.so creates junk debug files named: 'C:\\nppdf32Log\\debuglog.txt' in directories from where a firefox was executed.
This happens since Acrobat Reader 9.5.1 release.
How to make Adobe fixing this bug?
How to contact them efficiently?
This bug exists since 9.5.1 dated 04/09/2012 and Adobe do not care. Fix is trivial for Adobe: disable debug logging in release versions and stop using Windows path 'C:\\nppdf32Log\\debuglog.txt' in Linux products.
Workaround for this bug is trivial: open in hex editor: nppdf32.so file installed by Adobe Reader, go to position 0x0002193a in this file (or simply search for C:\ - there is only one place), and replace string:
C:\\nppdf32Log\\debuglog.txt
with:
/dev/null
Because string /dev/null is shorter than C:\\nppdf32Log\\debuglog.txt fill remainings of previous string with hex zeroes: 00 to keep everything in place.
Come on Adobe what's wrong with you! Why you do not provide such simple fix by yourself! It's 3 minutes of primitive work!Here are few solutions:
1. You can configure firefox to open pdf in external application like acroread. This way plugin problem is bypassed. - I use it this way. It looks to be faster this way.
2. "C:\nppdf32Log\debuglog.txt" is created every time in directory from where you executed firefox/opera/other browser and opened any pdf file in browser. So this is not only home directory. You can fix this problem by yourself by hex editing nppdf.so file and replacing C:\nppdf32Log\debuglog.txt path in this file with /dev/null path. See my post here for detailed instructions: http://forums.adobe.com/thread/1253800 -
Trace/Debug .aspx/.ascx/.ascx.cs ?
Can anybody help me how to Trace/Debug .aspx/.ascx/.ascx.cs in VS IDE?
Many thanks for your help!Maybe start here:
<a href="http://msdn2.microsoft.com/en-us/library/k0k771bt(VS.80).aspx">http://msdn2.microsoft.com/en-us/library/k0k771bt(VS.80).aspx</a>
http://www.odetocode.com/Articles/425.aspx
Cheers,
Corbin -
Debug mode configuration debug-file
Hello,
we have doployed a j2ee-application on was 7.0, netweaver2004s, SP11.
Oon Tomcat and resin there are nor problems, but running uon was .7.0 there appear exceptions.
How can we configure the debug-mode on was 7.0 and the debug-File?
Best regards
Oliver ProdingerHi Oliver,
Here is the link to the documentation:
http://help.sap.com/saphelp_nw2004s/helpdata/en/66/547f09281d464b951c9a3a6b06a12d/frameset.htm
HTH!
-Vladimir
Maybe you are looking for
-
How to install filters 8BF in photoshop CC
How to install filters 8BF in photoshop CC? I ask because it does not appear in the menu Photoshop, or do not work
-
Available IDoc Types in ECC 6.0
Can anybody please let me know if standard IDoc types available for below documents in ECC 6.0? If so, please let me know the technical names. Secial Purpose Ledger (SPL) Outbound SPL Inbound G/L Inbound CCA Inbound Internal Orders posting Inbound Th
-
Address Book Question -- IS THIS POSSIBLE ??
Is "appending" information possible to address book ? Or like a way to add info from one address book to another with out it deleting anything on the one getting updated OR with out making duplicates of the contact info(s) ???? Kinda like what we cal
-
Hi, I would like to know what is the best practice for following scenario. 1) I have to call different web services based on message content through ESB 2) i have two ways, either i have one ESB developed and based on content i route them to differen
-
Passing by value is good or with out by value is good.
Hi, <numbers> <number id= "a">one</number> <number id= "b">two</number> <number id="c">ten</number> <number id= "d">six</number> </numbers>' Above xml is in abc table, col xmlcol (type is blob) select XMLCAST(XMLQuery ('for $num in /numbers/number wh