Enabling trace file in Debug mode
Hi all
how to enable the trace file in debug mode,...
can any one help me in this,...
Hi,
answered in your second thread on this. *g
Regards,
Heike
Similar Messages
-
Cannot read properties files in debug mode .....
I am using JDeveloper 10g (10.1.3.0.4) and cannot seem to read properties files in debug mode, while it runs fine in Run (non debug) mode!!
For code like this:
Properties props = new Properties();
String dbPropsFile = "/pol_main.properties";
InputStream is;
is = this.getClass().getResourceAsStream(dbPropsFile); <---- ERRORS HERE!
props.load(is);
I get error messages like:
"Unable to find source file for package oracle.classloader, filename PolicyClassLoader.java".
Cannot go any further.
I am using the "hotspot" virtual machine under Project debug options. Using Sun's
JDK 1.5 update 6 with Ojvm installed.
Thanks.I think I figured out something. In jDeveloper 10.1.3, open your project properties and click on the Run/Debug treeview branch. Now Edit the Run Configuration you are using (mine is Default) and check the Run Directory. If I change this to be the root of my source, which is one level down from my .jpr file, it now uses my standard path and finds my files. I suppose you could also change this to use the classes directory as the root as long as your props files were there too. My problems seem to be the result of my project root being one folder higher than my source root due to the way our project was imported from CVS. --Ed
-
Unable to generate SQL trace file in shared mode ??
Hello,
I have a 10.2.0.1.0 database on Win2003 server 64 bits, with several instances.
On instances in dedicated mode, I can create trace files by using dbms_system.set_sql_trace_in_session, but on instances in shared mode nothing happens : no file is created in the udump directory.
This doesn't make any sense to me o_O
The shared parameters are the following :
dispatchers=(protocol=TCP)
shared_servers=1
I've checked all the necessary parameters to create a trace file (user_dump_dest, timed_statistics, max_dump_file_size...) and everything is fine.
I really don't understand why I can't create trace files when the instance is in shared mdoe...
Can anyone help about this weird issue ?
thank you !
regards,
AntoineRemember also that in Shared Server mode the trace information is not written to a single file but is written to the Shared Server trace file. Before Oracle 10g there was no way to pull all the trace information for a single user session together out of the trace files. There is a tool for doing so with 10g.
HTH -- Mark D Powell -- -
Trace files being truncated after 18mb
I have enabled trace file debugging for my application and after the trace file has reached approx 18mb, it stops writing to the file. Im also doing logging and the log file is usually around 80mb. Is there some sort of maximum file size restriction? How do I fix this?
You gave almost no details but as a general statement there are no limits on file sizes, at least with the size of files you're dealing with. Some O/S's and file systems might have an issue after 2GB.
What is your application? What kind of logging does it use (i.e. log4j, jdk logging, etc). What O/S are you on? How much free disk space do you have? -
Extract SQL history from 10046 trace files
Hi all,
I need to extract the complete sql history from sql trace files to "debug" a client application.
I know I can read the raw trc file and rebuild the sql history looking for the PARSING / EXEC / FETCH entries.
However, this is a very long and boring manual task: do you know if there is some free tool to automate this task?
thanks
Andreauser585511 wrote:
I agree that the 10046 trace captures everything. If I do read the raw trc file I see the DML. The problem is that tkprof's record does not record the DML (maybe it thinks that some DML is recursive sql and it gets misleaded... I am not sure) so I am looking for an alternate tool to process 10046 trace files
Regards
AndreaReally?
Generate a trace of some dml:
oracle:orcl$
oracle:orcl$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Thu May 16 08:28:55 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn snuffy/snuffy
Connected.
SQL> alter session set tracefile_identifier = "snuffy_session";
Session altered.
SQL> alter session set events '10046 trace name context forever, level 12';
Session altered.
SQL> insert into mytest values (sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> ALTER SESSION SET EVENTS '10046 trace name context off';
Session altered.
SQL> exitrun tkprof on the trace
oracle:orcl$ ls -l $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/*snuffy
*.trc
-rw-r----- 1 oracle asmadmin 3038 May 16 08:29 /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snuffy_session.trc
oracle:orcl$ tkprof /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snu
ffy_session.trc snuffy.rpt waits=YES sys=NO explain=system/halftrack
TKPROF: Release 11.2.0.1.0 - Development on Thu May 16 08:31:32 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.Look at the report:
oracle:orcl$ cat snuffy.rpt
TKPROF: Release 11.2.0.1.0 - Development on Thu May 16 08:31:32 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Trace file: /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snuffy_session.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
SQL ID: 938dgt554gu98
Plan Hash: 0
insert into mytest <<<<<<<<<<<<<<<< oh my! Here is the insert statement
values
(sysdate)
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 1 5 1
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.00 0 1 5 1
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 86 (SNUFFY)
Rows Row Source Operation
0 LOAD TABLE CONVENTIONAL (cr=1 pr=0 pw=0 time=0 us)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 83
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 3.35 3.35
SQL ID: 23wm3kz7rps5y
Plan Hash: 0
commit
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 1 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.00 0 0 1 0
Misses in library cache during parse: 0
Parsing user id: 86 (SNUFFY)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
SQL*Net message from client 2 4.72 8.50
log file sync 1 0.00 0.00
SQL ID: 0kjg1c2g4gdcr
Plan Hash: 0
ALTER SESSION SET EVENTS '10046 trace name context off'
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.00 0 0 0 0
Misses in library cache during parse: 0
Parsing user id: 86 (SNUFFY)
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 3 0.00 0.00 0 0 0 0
Execute 3 0.00 0.00 0 1 6 1
Fetch 0 0.00 0.00 0 0 0 0
total 6 0.00 0.00 0 1 6 1
Misses in library cache during parse: 0
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 3 0.00 0.00
SQL*Net message from client 3 4.72 11.86
log file sync 1 0.00 0.00
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 0 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 0 0.00 0.00 0 0 0 0
Misses in library cache during parse: 0
3 user SQL statements in session.
0 internal SQL statements in session.
3 SQL statements in session.
0 statements EXPLAINed in this session.
Trace file: /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_4086_snuffy_session.trc
Trace file compatibility: 11.1.0.7
Sort options: default
1 session in tracefile.
3 user SQL statements in trace file.
0 internal SQL statements in trace file.
3 SQL statements in trace file.
3 unique SQL statements in trace file.
58 lines in trace file.
8 elapsed seconds in trace file.
oracle:orcl$ -
Flash player crashes when I launch swf in debug mode
Not sure whether this is a bug on the player side or flash builder side, but when I export and debug the flash player crashes. This means I cant trace and debug.
Please help. Can I trace without using debug mode?The web site I was trying to open was http://www.jaylenosgarage.com The add was for Sprint phone service about half way down the page, on the right. I was using this site as a test site. It allso didn"t work on the Adobe site. The page was the one you receive after you finish installing the upgrade.
-
Hi
Is it possible to configure JDBC on OC4J to create SQL query
trace file ( for debug purpose)A very easy way to achieve this is to use the Open Source P6SPY utility. It acts as a wrapper over a JDBC DataSource, which intercepts and logs the JDBC calls, then delegates the call to the underlying DataSource.
It's trivial to setup and use, and is a pretty handy utility to have in your toolkit.
http://www.p6spy.org/
-steve- -
Is it possible to extract a VI from an executable which has debug mode enabled?
It is a curiosity question from a client.
Is it possible to extract a VI from an executable which has debug mode enabled?
Since the block diagram would not be in edit mode.... Is it possible to "peer" into the executable, look at a VI and recover the block diagram? This owuld be for a deleted VI that is part of an executable which had debug mode enabled..
Did anyone try this?
Curious..Extract VIs from an EXE? No problem. Even if debugging isn't enabled you can extract VIs, they just won't have block diagrams, and may not have front panels depending on if they were removed in the EXE making process.
Attached is an example project for making an EXE, the EXE itself, and a VI for extracting VIs from the EXE. The code is quite primative and it was just meant to demonstrate how this can be done.
To extract the Main.vi from the Application.exe, run Extract Main.vi from EXE.vi, provide the path to the EXE and the path to where the VI should be saved and then run the VI. This VI will set keys in the INI file for the application, then run th EXE. Then it opens an application reference to the EXE, then opens a VI reference to Main.vi. Then it aborts Main.vi, and extracts it.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
Attachments:
Test EXE Extract.zip 763 KB -
Name of trace file from trace enabled concurrent program
Hi all,
I am looking for a sql script or method to find the name of a trace file in udump for trace enabled concurrent programs. I know the trace files show 11i logon (user_name from fnd_user) in the name of the trace file but I am looking for a sql that would give the exact name of the raw trace file with request id as input.
I have 11.5.10.2.
Any help?
Thanks,Please see these docs.
11i-How to find the Trace file generated for a concurrent program [ID 270446.1]
How to find the Trace file generated for a concurrent program? [ID 967966.1]
FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
Thanks,
Hussein -
Trace enabled, but no trace file generated
I have enabled trace (Application Developer -> Concurrent -> Program, find the report, tick 'Enabled Trace', save), then i execute the report, but no trace file is generated, check the fnd_concurrent_requests table, the record has oracle_process_id=null.
what can I do to have trace generated?Hi,
I have enabled trace (Application Developer -> Concurrent -> Program, find the report, tick 'Enabled Trace', save), then i execute the report, but no trace file is generated, check the fnd_concurrent_requests table, the record has oracle_process_id=null.
what can I do to have trace generated?Please enable trace from Apps 11i form -> Help -> Diagnostic -> Trace ( Here u can select the option like Regular trace, trace with bin etc) as per your requirement. But for this trace profile option should be enabled for your user.
Regards,
X A H E E R -
Debugging mode stopped automatically when using xml file load
Dear Sir,
I am trying to develop a new add-on using xml files for creating new forms. In fact I was using the sample code delivered with the SDK ( WorkingWithXml - under VB.NET). The Problem is that when I am in the debuging mode and after the form load. the application goes out of the debugging mode and stop action.
In fact what i was trying to do first is to create a new menu and then when i click on this menu a new form appear but once the menu is loaded the application stop the debugging mode automatically.
Can somebody clarify to me what I am doing wrong and why the debugging mode is stopped automatically, noting that i am still in the add-on developpement phase.
As i mentioned above i used the WorkingWithXml sample code (VB.NET) and i have adjusted in a way to load menu and then on the menu click i load my form.
Please advice
Best RegardsHi Mary,
Put your code between in a Try Catch block. In the Catch part use the following:
oApplication.MessageBox("CompError: " & oCompany.GetLastErrorCode.ToString & ", " & oCompany.GetLastErrorDescription & vbCrLf & "Message: " & ex.Message)
This should give you a clearer idea of what the error is all about.
The most likely reason is that there is something wrong with your XML file.
Regards,
Vítor Vieira -
Enable the Debug mode for Dispatcher and Server0.
Hello All,
In our EP server 7.0(stand alone java) apart from SDM we need to enable the Debug mode for Dispatcher and Server0.I tried to do it from mmc but cannot do so.When I try to right click & enable from mmc the "Enable Process" is not highlited,it is disabled.How Can I enable the the Debug mode for Dispatcher and Server0?Hi
Goto Configtool Select Instance_IDxxxxx on the right side you can see "Servers Debug" tab, select that and choose, enable debug and debuggable options.
Save the settings.
Then expand the above mentioned node and select Server_IDxxxxxxx , you will see a tab Debug select it and choose, enable debug and debuggable options.
Save the settings.
After it is done, take a restart of the instance. This should help you.
Regards
Rahul -
Trace file: DEBUG: AUTONOMOUS PROCESS REDO POO
I have a trace file being generated at 00:01 usually daily. Any idea what this is?
$cat /u01/app/oracle/admin/A001/bdump/a001_j000_3562.trc
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /u01/app/oracle/product/10.1.0/Db_1
System name: Linux
Node name: mybox.mydomain.com
Release: 2.6.9-1.724_FC3
Version: #1 Sun Jan 2 15:43:49 EST 2005
Machine: i686
Instance name: A001
Redo thread mounted by this instance: 1
Oracle process number: 12
Unix process pid: 3562, image: [email protected] (J000)
*** 2005-01-06 00:01:26.780
*** SERVICE NAME:(SYS$USERS) 2005-01-06 00:01:26.701
*** SESSION ID:(153.270) 2005-01-06 00:01:26.701
DEBUG: AUTONOMOUS PROCESS REDO POOL ALLOCATED
*** 2005-01-06 00:01:39.222
DEBUG: AUTONOMOUS PROCESS REDO POOL FREEDYou displayed your owsidev_reco_1273966.trc file. This is the trace file being generated by the recoverer process.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/process.htm#i21745
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm#sthref667
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/process.htm#i24691 -
Signon tracing enable multi-session trace file?
Hi Guys,
When I enable PeopleCode tracing in signon tracing link, I found trace file was generated with somebody else name. I was thinking it should generate my trace file only. Does anyone know if it is correct or these is any configuration about this?
Thanks,
BobJohn_75 wrote:
Thank you DBMS_DIRECT.
trace is enabled only on the instance to which the caller is connected
So, how do i enable tracing for sessions spawned by Java or C++ applications.
According to the documentation, i can use DBMS_MONITOR for tracing applications
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm
Your 2 node RAC has two instances (e.g. INST1 and INST2). My understanding of that is that with the above command, to be able to trace session 123 connected to INST1, your SYS need to be connected to INST1. To be able to trace session 456 connected to INST2, your SYS need to be connected to INST2. -
Getting timestamps for SQL session without the trace file enabled
hi, i have a clarification. Is there a method or way by which i can get the timestamps of an SQL session without the the trace file enabled , and if so please get me the details of this.
thanks in advance.Hi,
Don't very understand what do you want.
SQL> set timing on
SQL> select * from dual;
D
X
Elapsed: 00:00:01.07
SQL> Is this ?
Nicolas.
Maybe you are looking for
-
User exit/BADI for PO item blocking
Hi All, Is there any userexit/BADI available for blocking PO item? We want block PO item based on some header and item data validations. We need an exit which will be triggered before displaying the first screen(In case of PO change-ME22N). While cre
-
The box in my Photoshop Elements, which shows the size and type of brushes, has shrunk to one unreadable line. How can I expand this box to its original size? I have tried dragging it open but nothing happens and none of the tool boxes appear to give
-
Receive transaction error (InTransit shipment)
Hi I am doing a receiving for Inter org, using the type Intransit shipment, in 11.5.10.2 Inserted the data in the rcv_headers_interface and rcv_transaction_interface table, run the receiving transaction processor conc prog. found no records in po_int
-
How to do a screenshot in an ipod 5th gen 16gb?
I tried to install a screenshot app on my ipod because it doesnt have a screenshot but there arent any proper screenshot app but just snapchat save comes up in the app store.
-
Outlook 2010 Spell Checker AutoCorrect Issue
I have a senior executive who is running Office Professional 2010 Plus (32-bit) on Windows 7 Enterprise. His Outlook spell checker has been working fine up to very recently (not sure of the exact date of his issue). AutoCorrect is turned on in Outlo