Interpretation of the trace (in SQLDeveloper) file
Dear community,I have currently SQLDeveloper allows to view a trace of a SQL file to determine its statistics. I now have the problem, SQLDeveloper is shaped slightly different column header names like TKPROF:
I got the following results, presented in a table:
===============================
Count Elapsed CPU Phy. Cons. Logical Rows
Parse 1.00 0.03 0.03 0.00 0.00 461.0 0.00
Execute 1 0.00 0.00 0.00 0.00 0.00 0.00
Fetch 1.00 39.02 4.06 12130.00 54861.00 79470.00 50.00
Total 3.00 39.04 4.09 12130.00 54861.00 79931.00 50.00
===============================
You can check this list here:http://Tinypic.com/view.php?pic=n6qmb8 & s = 7
Now my problem is, that is meant by' Phy', 'Idiots' and 'logic '?
Which of these columns are equivalent to the DISK, APPLICATION, CURRENT?
Here's the SQL query which I generated the trace:
==========================
SELECT
TABLE_DOG.KEY_ID,
TABLE_DOG.ALPHA_ID,
TABLE_DOG.BETA_ID,
TABLE_DOG.GAMMA_ID,
TABLE_DOG.EPSILON_ID,
TABLE_DOG.FALCON_ID,
TABLE_DOG.ZETA_ID,
TABLE_DOG.USUS_ID,
TABLE_DOG.VALUE_ONE,
TABLE_DOG.VALUE_ONE_DATE,
TABLE_DOG.VALUE_BIRD,
TABLE_DOG.VALUE_SONG,
TABLE_DOG.SUNNY_ID,
TABLE_DOG.INDIGO_ID,
TABLE_DOG.OMEGA_ID,
TABLE_DOG.DAY_DATE,
TABLE_DOG.SUPER_FLAG,
TABLE_DOG.VER_ONE,
TABLE_DOG.ZULU_ID,
TABLE_DOG.XETHA_ID,
TABLE_DOG.VALUE_BOAT,
TABLE_DOG.VALUE_ROAD,
TABLE_DOG.VALUE_ROAD_DEVIATION,
TABLE_DOG.VALUE_ROAD_UNIT_CLASS_ID,
TABLE_DOG.VALUE_ONE_UNIT_CLASS_ID,
TABLE_DOG.VALUE_ONE_RECEIVED_DATE,
TABLE_DOG.VALUE_ONE_QUALITY_CLASS_ID,
TABLE_DOG.HAT_ID,
TABLE_DOG.VALUE_BOOK,
TABLE_DOG.VALUE_BOOK_MSG_ID,
TABLE_DOG.VALUE_GHOST
FROM (
SELECT
NULL AS ID,
1 AS ALPHA_ID,
1018 AS BETA_ID,
10007 AS GAMMA_ID,
superTabA.key1_value AS EPSILON_ID,
1047 AS FALCON_ID,
Cool_Table_B.curry_id AS ZETA_ID,
NULL AS AC_ID,
VALUE_ONE,
SYSDATE AS VALUE_ONE_DATE,
NULL AS VALUE_BIRD,
NULL AS VALUE_SONG,
NULL AS SUNNY_ID,
164 AS INDIGO_ID,
NULL AS OMEGA_ID,
NULL AS DAY_DATE,
NULL AS SUPER_FLAG,
NULL AS VER_ONE,
986 AS ZULU_ID,
NULL AS XETHA_ID,
NULL AS VALUE_BOAT,
NULL AS VALUE_ROAD,
NULL AS VALUE_ROAD_DEVIATION,
NULL AS VALUE_ROAD_UNIT_CLASS_ID,
NULL AS VALUE_ONE_UNIT_CLASS_ID,
NULL AS VALUE_ONE_RECEIVED_DATE,
NULL AS VALUE_ONE_QUALITY_CLASS_ID,
NULL AS HAT_ID,
NULL AS VALUE_BOOK,
NULL AS VALUE_BOOK_MSG_ID,
t_VALUE_GHOST() AS VALUE_GHOST
FROM
(SELECT
xml_util#.tonumber(EXTRACTVALUE (COLUMN_VALUE, '/level_one/level_alpha/text()')) AS VALUE_ONE,
trim(leading '0' from EXTRACTVALUE(COLUMN_VALUE,'/level_one/level_beta/text()')) AS super_column
FROM temp_xml t, TABLE (XMLSEQUENCE (EXTRACT (XMLTYPE(t.msg), '/parent_level/parent_folder/data_folder/level_one')))
) table_xml
inner join (select * from super_table_A where super_table_A.some_col = 3141) superTabA
on (object).valueasvarchar2() = table_xml.super_column
left outer join Cool_Table_B
on Cool_Table_B.EPSILON_ID = superTabA.extra_column
and Cool_Table_B.ALPHA_ID = 986
) TABLE_DOG
inner join (select * from Nice_Table_C where class_id = 13604) Nice_Table_C
on Nice_Table_C.obj_id = TABLE_DOG.EPSILON_ID
;
Whenever I googled on trace files, I see as seen commonly used output when using TKPROF:This is only example statistics, not relevant
================================
all count cpu elapsed disk query current rows
---- ------- ------- --------- -------- -------- ------- ------
Parse 1 0.16 0.29 3 13 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.03 0.26 2 2 4 14
(only example, not my values)
================================
Can you give me a reference additional on how to interpret my results as published in the beginning?For example, what it means, that "elapsed" is 39.02 and CPU is only "4.09"?
I've already read http://download.oracle.com/docs/cd/B10500_01/server.920/a96533/sqltrace.htm but I would like to learn more about the statistics of data.
My next step will analyze the plan of the explain command.
Thank you and best regards,
Sunshine
Published by: 840284 on May 16, 2011 07:56
Published by: 840284 on May 16, 2011 07:57
Published by: 840284 on May 16, 2011 07:59
It is a raw response. A good DBA will be able to give the best information:
Phys. = gets physical
Cons = Consitent becomes
It refers the number of blocks of data that is read from the disk (physical reads) or RAM memory (buffer gets / consitent readings).
If your query to the first block of data. Then it is read from the disk. However depending on parameter multi_block_read_count not just a block will be retrieved from the disk, but more then one, lets assume 16. These 16 blocks are now all in the cache. Usually the application will read consistent, that is, it will take the following blocks also to do what it should do. As the blocks are already in the cache there is no need to look for them again on the hard drive.
Tags: Database
Similar Questions
-
error in the trace log writer file
Dear friends,
This is the error I see in my trace file.
What could be the problem?
What should I do to fix this?
When I save, I don't see any error.
Please guide me
NAME OF THE SERVICE :() 12:30:02.322 2010-07-12
SESSION ID: (45.1) 2010-07-12 12:30:02.322
Maximum record size redo generation = 80896 bytes
Redo size maximum generation change vector = 77472 bytes
tkcrrsarc: (WARN) could not find the ARK of message (message: 0x10)
tkcrrpa: Failed (WARN) first attempt to send message ARCH (message: 0x10)
2010-07-13 10:48:46.408
tkcrrxmp: stop ARC1 to reduce the ARC treats 2-0
tkcrrxmp: stop ARC0 to reduce the CRA addresses from 1 to 0
Thanking in advance.
NithHello
MS DOC says
Recommended setting is 10 and the messages will disappear completely at this setting.
Thank you
Baskar.l -
I can control the Trace files in bdump
Experts in good morning...
Question of BDUMP
In BDUMP, I have the following files...
-rw - r - 1 oracle oinstall 112687 19 Feb 13:41 alert_testdb.log
-rw - r - r - 1 oracle oinstall 33068 Feb 19 12:03 alert_TSH1.log
-rw - r - 1 oracle oinstall 20301 14 Feb 09:13 testdb_arc0_15379.trc
-rw - r - 1 oracle oinstall 632 5 Feb 04:56 testdb_arc0_17339.trc
-rw - r - 1 oracle oinstall 2118 Feb 5 05:22 testdb_arc0_17409.trc
... ..
.... ..
Totally 294 trace files...
I checked some .trc files; Almost have the same information.
ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
Name of the system: Linux
Name of the node: xxxxxxxxxxxxxx
News Release: xxxxxxxxxxxxxxxxxxxxxxxxxx
Version: xxxxxxxxxxxxxxxxxxxxxxxxx
Machine: xxxxxx
Instance name: testdb
Redo thread mounted by this instance: 1
Oracle process number: 0
My question clear is:
1. If the alert log contains details of the error, what is the purpose of trace in bdump files?
2. why "n" no trace files created without useful information? (Almost with the same information]
3. what type of information is usually stored in .trc files?
What I know about tracefiles:
Each background process writes the trace files if an internal error has occurred.
If I'm wrong, please correct.Trace files and log alerts serve a different purpose. A simple way to think about it, is that the trace files are used when diagnosing problems. The alert log shows you what are the events are occurring in the database in general, flooding you don't not with unnecessary details. If the database crashed, the alerts log will tell you when the event happened, but the details of the process that crashed would be (I hope) in a trace file.
Some trace files are huge, and you certainly don't want them in the log of alerts because it would make it too big to be manageable or read.
For example, if a process crashes, the dumping process trace file to would be useful when you are working with Oracle Support to identify the problem. Or, if you want to see what a specific session, you can turn on tracing on it and and then format the trace with tkprof file to understand what made the session.
The documentation is a good summary:
Trace files
A trace file is an administrative file containing diagnostic data used to investigate the problems. Trace can also, provide guidance for tuning applications or an instance, as explained in "Diagnostic and performance optimization.
Types of Trace files
Each server and the background process can periodically write to a trace file. File information on the environment in the process, status, activities and errors.
The SQL trace facility also created trace files, which provide information of performance on individual SQL statements. To enable tracing for an identifier of the client, service, module, action, session, instance or database, you must run the procedures in the DBMS_MONITOR package or use Oracle Enterprise Manager.
A dump is a special type of trace file. Considering that track tends to be out of diagnostic data, a dump is usually a unique data output of diagnosis in response to an event (for example, an incident). When an incident occurs, the database writes one or more landfills in the incident directory created for the incident. Incident of discharges also contain the case number in the file name.
-
Interpreting the Trace file.
Hi, I use 10.2.0.4.0 oracle version.
I have some info to trace file as below, for one of the query. So how should I interpret the trace file? What is the problem in the application and scope of the improvements in the query? Please note that I withdrew the request and plans of the trace file, I've posted only the sections of waiting.
call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.14 0.13 0 0 1 0 Execute 1 6.63 162.12 33540 72921 383 0 Fetch 17272 178.89 1933.95 274835 3147603 20 259063 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 17274 185.66 2096.21 308375 3220524 404 259063 Misses in library cache during parse: 1 Optimizer mode: CHOOSE Parsing user id: 36 Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ control file sequential read 4 0.00 0.00 db file sequential read 302812 0.62 1913.89 latch: cache buffers chains 3 0.04 0.04 direct path write temp 501 0.01 0.30 SQL*Net message to client 17272 0.00 0.04 db file scattered read 120 0.02 0.63 direct path read temp 608 0.14 1.71 SQL*Net message from client 17272 44.81 31865.74 SQL*Net more data to client 15 0.00 0.00 latch: object queue header operation 1 0.00 0.00 latch: library cache 3 0.03 0.04 latch: library cache pin 1 0.00 0.00 latch: cache buffer handles 1 0.00 0.00 ******************************************************************************** OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.14 0.13 0 0 1 0 Execute 1 6.63 162.12 33540 72921 383 0 Fetch 17272 178.89 1933.95 274835 3147603 20 259063 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 17274 185.66 2096.21 308375 3220524 404 259063 Misses in library cache during parse: 1 Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ SQL*Net message to client 17275 0.00 0.04 SQL*Net message from client 17274 75.57 31941.39 SQL*Net more data from client 2 0.00 0.01 db file sequential read 302812 0.62 1913.89 control file sequential read 4 0.00 0.00 latch: cache buffers chains 3 0.04 0.04 direct path write temp 501 0.01 0.30 db file scattered read 120 0.02 0.63 direct path read temp 608 0.14 1.71 SQL*Net more data to client 15 0.00 0.00 latch: object queue header operation 1 0.00 0.00 latch: library cache 3 0.03 0.04 latch: library cache pin 1 0.00 0.00 latch: cache buffer handles 1 0.00 0.00 OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 11 0.02 0.01 0 0 0 0 Execute 348 0.20 0.17 0 0 1 0 Fetch 367 0.06 0.37 59 1187 0 3806 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 726 0.28 0.56 59 1187 1 3806 Misses in library cache during parse: 11 Misses in library cache during execute: 10 Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ db file sequential read 59 0.01 0.32 1 user SQL statements in session. 348 internal SQL statements in session. 349 SQL statements in session. ********************************************************************************
But rewrite the SQL code will probably be irrelevant.
If most of the numbers in the file plan and execution of trace is correct, then it is not more time is lost somewhere in the network that you send to 260 000 lines back and forward with a size of 15 lines extraction (the default in sql * more)?
You must increase the size of mining significantly.
And you can watch some of the writings of Charles Hooper on the monitoring network:
http://hoopercharles.WordPress.com/category/network-monitoring/ -
Help interpret trace HANGANALYZE a file
Hi friends
Its my first time on trace HANGANALYZE files. I need some advice. I searched the forum but no thread was my doubt
I am running on Windows 2003 Server x 64 10.2.0.1.0 Oracle. Simply because I review some grip of the instance. During the grip, we see no blocking, just sometimes a line lock conflict. But sometimes.
We have 4 or 5 grip during the day. AWR reports very high "library cache lock" and "latch: shared pool ',"free latche"and" latch: cache buffers chains. During the blocking period, these are the Top 5 timed events 4.
So I could generate a trace HANGANALYZE file since I was able to connect on the sql more see the primary blocker.
SQL > setmypid oradebug
SQL > oradebug hanganalyze 3;
Hang in c:\oracle\product\10.2.0\admin\orcl2000\udump\oraprod_ora_50.trc analysis
SQL > oradebug hanganalyze 3;
Hang in c:\oracle\product\10.2.0\admin\orcl2000\udump\oraprod_ora_50.trc analysis
This is the result I'd like help in interpreting
==============
HANG THE ANALYSIS:
==============
Channels open found:
Channel 1: < cnode/sid/sess_srno/proc_ptr/ospid/wait_event >: < 0/1408/38922/0x3a63e638/6128/No Wait >-< 0/1547/18677/0x3a627730/6556/latch: cache library >
Channel 2: < cnode/sid/sess_srno/proc_ptr/ospid/wait_event >: < 0/1510/64865/0x3e60cae8/1264/No Wait >-< 0/1412/11994/0x39634db8/4552/enq: TX - line lock conflict >
Among other channels found:
Channel 3: < cnode/sid/sess_srno/proc_ptr/ospid/wait_event >: < 0/1308/44023/0x3e5fe688/2720/No Wait >
Channel 4: < cnode/sid/sess_srno/proc_ptr/ospid/wait_event >: < 0/1316/41853/0x3e6124a0/4148/No Wait >
Channel 5: < cnode/sid/sess_srno/proc_ptr/ospid/wait_event >:
... and so on...
Additional information that will be sent at higher levels:
[level 4]: 2 node discharges-[REMOTE_WT] [SHEETS] [LEAF_NW]
[level 5]: 18 node-[SINGLE_NODE] [SINGLE_NODE_NW] [IGN_DMP] landfills
[level 6]: 2 node discharges-[NLEAF]
[level 10]: 230 landfills node-[IGN]
State of the nodes
([nodenum] / cnode/sid/sess_srno/session/ospid/state/start/finish / [adjlist] /predecessor):
[1284] / 0/1285/16090/0x3e8fd3f0/5328/IGN/1/2 / / no
[1285] / 0/1286/48916/0x3994b358/3432/IGN/3/4 / / no
[1286] / 0/1287/21534/0x3a946c38/5836/IGN/5/6 / / no
[1288] / 0/1289/35409/0x3994c790/4252/IGN/7/8 / / no
[1293] / 0/1294/13836/0x3e901098/6176/IGN/9/10 / / no
[1296] / 0/1297/1361/0x3e9024d0/5176/IGN/11/12 / / no
[1298] / 0/1299/10760/0x3a94bd18/6028/IGN/13/14 / / no
[1300] / 0/1301/19757 / 0 x 39951870/5912/IGN/15/16 / / no
[1305] / 0/1306/29005/0x3e906178/5880/IGN/17/18 / / no
[1306] / 0/1307/53304/0x399540e0/5900/IGN/19/20 / / no
... and so on...
My doubt is.
The agroalimentaire1 string may have blocked Chain2 on a library cache lock event. Perfect.
How to find the id of sql that held the lock to work on?
TKS a lot
Edited by: KeenOnOracle May 21, 2013 14:49Anything in history of the Session Active (ASH), for this session (1048) for this time?
Lordane Iotzov
-
Disable the trace file in ebs 12.1.3
Hi all
EBS 12.1.3 (OUL5x64) the 11.2.0.3 database
I have a lot of files to trace as below and the database had been reset to TRACE_ENABLED = FALSE and bounced.
but still a lot of trace files to the location of the dump.
Since this sql
Select trace_type, primary_id, QUALIFIER_ID1, wait, links to DBA_ENABLED_TRACES;
I couldn't see anything on.
Please indicate how to disable * _APPS.tr*
Thanks in advance.
Kind regards
_trace_files_public Boolean FAKE log_archive_trace integer 0 sec_protocol_error_trace_action string TRACE SQL_Trace Boolean FAKE trace_enabled Boolean FAKE TEST_ora_18943_APPS.TRC
TEST_ora_18943_APPS. TRM
TEST_ora_18945_APPS.TRC
TEST_ora_18945_APPS. TRM
TEST_ora_18982_APPS.TRC
TEST_ora_18982_APPS. TRM
TEST_ora_18984_APPS.TRC
TEST_ora_18984_APPS. TRM
TEST_ora_18986_APPS.TRC
TEST_ora_18986_APPS. TRM
TEST_ora_15062_APPS. TRM
TEST_ora_18925_APPS. TRM
TEST_ora_18925_APPS.TRC
TEST_ora_10509_APPS. TRM
TEST_ora_10524_APPS. TRM
TEST_ora_18929_APPS. TRM
TEST_ora_10509_APPS.TRC
TEST_ora_10768_APPS. TRM
TEST_ora_18988_APPS.TRC
TEST_ora_18929_APPS.TRC
TEST_ora_14764_APPS.TRC
TEST_ora_10524_APPS.TRC
TEST_ora_14764_APPS. TRM
TEST_ora_18988_APPS. TRM
TEST_ora_15062_APPS.TRC
TEST_lgwr_31711.TRC
Run the query (query to get activated Trace/Log/Debug profile options (Doc ID 559618.1)) to determine if debugging is turned on - I suspect debugging generates these trace files.
Also, please confirm that the trace is not enabled for any simultaneous program (simultaneous > program > define)-how can Trace and Debug be turned on for a competitor request? (Doc ID 759389.1)
Thank you
Hussein
-
SQLdeveloper said when at the beginning of navigation in C:\Program Files\Java\jre8\bin: "cannot find a Java SDK SE to the path C:\Program Files\Java\jre8\bin.
Runs as an administrator.
I'm administrator of my PC with Windows 7 64 bit.
Installed the Java jdk-8u11-windows - x 64 .exe.
You're VERY close - just remove the part "\bin".
-
Generate the trace for another session file and change the path
Hello
Please let me know how to configure tracing for another session and it is also possible that the trace file can be re-directed to another path than the default path user_dump_dest?
Kind regards
VN
Use DBMS_MONITOR. SESSION_TRACE_ENABLE (and SESSION_TRACE_DISABLE).
as far as I know, you cannot change the default location of the trace file.
In a session, you can change its path filename with ALTER SESSION SET TRACEFILE_IDENTIFIER = "
"; Hemant K Collette
-
purge of the trace dump files or user
Hello
on 11g R2 (11.2.0.3) Windows,
is there a scheduled task to purge the trace and dump the users files?
Thank you.Please check cmd utility PURGE ADRCI;
http://docs.Oracle.com/CD/E11882_01/server.112/e16536/adrci.htm#autoId43Nicolas.
-
Hi all
I generated a trace to help file:
SQL > alter system set events "1940 trace name errorstack level 3";
Modified system.
SQL > drop user RHUNTER1;
Drop user RHUNTER1
*
ERROR on line 1:
ORA-01940: cannot delete a user who is currently logged on
"SQL > alter system set ' 1940 trace name errorstack off events."
Modified system.
It's oracle database 10 g 2. Now, I checked for file trace udump. but there are a lot of generating a minute trace files. How can I find the exact trace file.
Please help to find it.
Thank youHere is the SQL that will tell you what will be your trace file name:
MPOWEL01> l 1 select i.value||'_ora_'||p.spid||'.trc' 2 from v$process p, v$session s, 3 (select value from v$parameter where name = 'instance_name') i 4 where p.addr = s.paddr 5* and s.sid = userenv('sid') MPOWEL01> / I.VALUE||'_ORA_'||P.SPID||'.TRC' -------------------------------------------------------------------------------- XXXX_ora_3014738.trc
I built my own code to do this, but the above is leave a blog link, I save to the reading of the trace that you created in your session. See
http://dioncho.WordPress.com/2009/03/19/HTH - Mark D Powell.
-
Enable trace in standard EBS PLSQL pkg and know the path of the trace file
Hello
I want to activate the trace in the standard package of PLSQL EBS:
run immediately "alter session set sql_trace = TRUE";
How can I know the path of the trace file?
What is the name of the table to know the path of the file trace?
Thank you
LavanHow to find the Trace file generated for a simultaneous program? [967966.1 ID]
How to trace a concurrent request and generate the TKPROF file [ID 453527.1]path tracing
select value from v$parameter where name = 'user_dump_dest';
for the package, you can set the name of the trace file after "run immediately"alter session set sql_trace = TRUE";"
execute immediate 'alter session set tracefile_identifier="your_trace_file_name"';
-
How to stop the generation of the trace of the files concern the particular user
Dear all,
Please advice:
Is it possible to stop the trace file that is created by a user for a particular job (sql/exp)
For example:
Create trace files whenever the user has run the sql/exp command from the application server.
Which created a large files and caused the file system is full (not in bdump but it's generation in the home directory of the user application).
Is there a method to stop the generation of trace records relate to the particular user base on this job.
Thank you
NathalieDear GEORGE
This trigger will be created for that specific user by dba or anyone with sysdba privileges. It will be triggered at the time of login of this user and edit the sqltrace.
for example, we write a trigger in our database for each ddl operation in the database.
CREATE OR REPLACE TRIGGER "SYS." "' SYS$ DDLTRIG" after the DDL on the database
declare
v_machinename VARCHAR2 (100);
v_osuser VARCHAR2 (100);
v_dbuser VARCHAR2 (100);
v_host VARCHAR2 (100);
v_program VARCHAR2 (100);
v_instance VARCHAR2 (100);
T_DATE VARCHAR2 (100);
Start
Select to_char (sysdate, ' dd-mm-yyyy HH24:MI:SS), user, sys_context (' userenv ',' OS_ ")
USER'), sys_context ('userenv', 'HOST'), (select instance_name of v$ instance), (se
You can select program session $ v where sid = (select distinct sid from v$ mystat)), (se
machine READING of session $ v where sid = (select distinct sid from v$ mystat)) int
o T_DATE, v_dbuser, v_osuser, v_host, v_instance, v_program, v_machinename of double;
IF ora_sysevent = 'DROP' or ora_sysevent = 'CANCEL' or ora_sysevent = 'GRANT' or
ora_sysevent = 'CREATE' or ora_sysevent = 'TRUNCATE' or ora_sysevent = 'CHANGE '.
Then
insert into ddl_log_new (T_DATE, v_dbuser, v_osuser, v_host, v_instance, v_program, v_m
achinename, V_EVENT, V_OBJECT_NAME, V_OBJECT_TYPE, V_OBJECT_OWNER) values (T_DATE, v_
dbuser, v_osuser, v_host, v_instance, v_program, v_machinename, ora_sysevent, ora_dict_
obj_name, ora_dict_obj_type, ora_dict_obj_owner);
END IF;
END;I hope that above example will be useful to you,
Concerning
EvelynePublished by: ambrishr24 on 5 December 2012 17:02
Published by: ambrishr24 on 5 December 2012 17:05
Published by: ambrishr24 on 5 December 2012 17:20
-
not generating the trace for rdf report by oracle apps file
Hi all
in fact, we aim to generate trace file for reports and a convert to text file using tkprof by simultaneous program unix shell script submit using fnd_request.submit_request in another program of concurrent proceedings. but all the reports that are created by using pl/sql generates the trace file, but rdf report does not trace file.
Report generator Oracle 6i is used
Oracle application is 11i
List of measures are being taken to get the trace file are
1.SRW. USER_EXIT (' FND SRWINIT' "); before the release of report
2SRW. USER_EXIT ("FND SRWEXIT'"); in after the report
another of the measures which are followed
SRW.do_sql ("alter session set SQL_TRACE = TRUE'"); before release of the report
SRW.do_sql ("alter session set SQL_TRACE = FALSE'"); in after the report
above, said steps are done, but still it does not arouse any trace file
same oracle_process is null
Select oracle_process_id from the fnd_concurrent_requests where request_id
ID processOracle for this report oracle rdf file is not generated.
Please help me in this issue
Thank you
Published by: 797525 on October 12, 2012 12:43 AMAdd the following line before the outbreak of report
SRW. DO_SQL ("alter session set events = tracefile_identifier" trace 10046 name context forever, level 4 "=" REPORT ' ")Trace stops automatically when the report closes.
In addition, what program submits the script fnd_request.submit_request... shell / pl/sql procedure?
you initialize apps FND_GLOBAL. APPS_INITIALIZE before submit_request of shooting?
Make a DNF: active Log Debug = Yes and check the table of fnd_log_messages
See the following MOS docs:
Oracle 6i [ID 111311.1] follow-up reports
See you soon,.
ND
Use the buttons "useful" or "correct" to award points to the answers. -
How to disable the trace files in the oracle 11g version
Senario: trace file grow
How to disable the trace files in the oracle 11g version
pls guide with best practicesNATHALIE wrote:
Senario: trace file grow
How to disable the trace files in the oracle 11g version
pls guide with best practices11 g, there is an extended tracing which happens for reasons best known only to Oracle. But if you want to disable, Coskan had published a small ticket mentioning a parameter not documented (which means you should think twice before using it) to disable it - disablehealth_check *. Here you can read the full message,
http://Coskan.WordPress.com/2009/06/03/too-many-trace_file-on-11g/Aman...
-
Discover the traces files when DBMS. TRACE is used
Hi all
How can I view trace file when DBMS_TRACE. SET_PLSQL_TRACE is run?
Suppose I have the following procedure
running the static sql query and I want to see how the DBMS_TRACE exports information about the trace file. I run the tracetab.sqlcreate or replace procedure some_proc is first varchar(10); begin select first_name into first from employees where first_name='Eleni'; dbms_output.put_line(first); end some_proc;
recompile the procedureSQL> @/usr/local/oracle/product/11.2.0/dbhome_1/rdbms/admin/tracetab.sql
Start the traceSQL> alter procedure some_proc compile debug reuse setting;
Run the procedureSQL> exec dbms_trace.set_plsql_trace(dbms_trace.trace_all_sql)
get the location of the file record of the session in questionSQL> exec hr.some_proc
but when I view the file, I can't find information on the sql statement. Here is the last part of inara_ora_6309.trc which shows the debatable part:SELECT value FROM v$diag_info 3 WHERE name = 'Default Trace File'; VALUE ------------------------- /usr/local/oracle/diag/rd bms/inara/inara/trace/ina ra_ora_6309.trc
The part that I've done wrong? The procedure is sufficient so that the trace info does not appear? I have consulted the wrong trace file?*** 2011-09-08 12:56:29.712 *** SESSION ID:(132.70) 2011-09-08 12:56:29.712 *** CLIENT ID:() 2011-09-08 12:56:29.712 *** SERVICE NAME:(SYS$USERS) 2011-09-08 12:56:29.712 *** MODULE NAME:(sqlplus@firefly (TNS V1-V3)) 2011-09-08 12:56:29.712 *** ACTION NAME:() 2011-09-08 12:56:29.712 --NOTICE --------------------------------------- --PL/SQL TRACE INFORMATION IS NOW IN THE DATABASE -- To create the trace tables, use the script -- -- rdbms/admin/tracetab.sql under ORACLE_HOME --
Best regards
Val
Published by: Valerie good-natured Sep 8, 2011 12:15 AMHello
The message seems pretty clear to me:
--PL/SQL TRACE INFORMATION IS NOW IN THE DATABASE
You can view trace information by querying the tables that you created by using the tracetab.sql script.
SELECT * FROM plsql_trace_events; SELECT * FROM plsql_trace_runs;
Maybe you are looking for
-
Updates of FF every time there are questions! I can NEVER get connected...
All my tabs do is "hang up" all the time, especially in the morning (UK), because of this I started to move all my favorites, etc. to Google Chrome. I always recommend FF for people, but not more than it is unreliable, slow and frustrating. A lot of
-
Hello, I have an Imac version 10.6.8. I was going on my messages in gmail when suddenly the text changes from a normal size to tiny and almost impossible to read. I just bought a new mouse refurbished and don't know if it's the problem somehow, or
-
new compaq QU332AA #ABG but the pc do not recognize cd/dvd one player
new compaq QU332AA #ABG but the pc don't recognize no reader of cd/dvd any ideas please I troubleshoot followed all ideas or no available again thank you for all ides
-
Can I use Labview for my Samsung S3C2410?
Hey guys,. I have a dev based on Samsung S3C2410 CPU board I bought at developmentboard.net. See the specs HERE . My question is: I want to use LabView on this forum, can I? Any information will be appreciated, thanks in advance ~
-
HP Photosmart D7460 with wireless
In the attempt to remove documents in a stone, he says it's deleting but everything is there and does nothing. Cannot delete the printer while the document is still present, although I said to delete. Need to "add a printer" by using a different na