Do you know Timmings for trace files generated?

Hi,
I have done some sql traceing using DBMS_MONITOR package.
We can also enable SQL traceing using DBMS_SESSION.
I want to generate sql trace file for "particuler part of application".
When i did that i got some sql trace files,, now that "particuler part of application" was over application was idle..
but as time goes these files are still populating in size means they are still sql traceing going on...
My question is when and how trace files are generated?
Do you have idea???
Thanks and Regards,
Rushang Kansara
Message was edited by:
Rush

also what content of my sql trace file should i
consider for exacly tracing that "particuler part of
application".
Rushang
Parse Count To Execute Ratio
Take the numbers of parse count and divide it by numbers of time execute count if it is 1 then it means you are parsing the same statment everytime,If this ratio is 1 then it will latch the shared SQL area which will degrade the overall performance.Like if you execute a query which is using bind variable and this query is at yours front end level trigger (Forms) POST_QUERY then it will show you (parse count=execute count) which shows you are parsing for every triggering event which is bad ,for that you should put this seqeuel within PL/SQL procedure which cache the cursor and will turn in (parse count<Execute Count).
Large Diffrence Between Elasped Time And CPU Time
If this diffrence (Elapsed time[b]-CPU time)>1 then it means you are spending yours time in for waiting resources this waiting resources will in turn wait events e.g some one updated the row and dont realease by COMMIT or ROLBACK and the same span of time you want to update then you will see a lock in tkprof result in wait event section.If you read the data from hard disk (as first time you issue it reads from HD and then put into buffer cache during this reading a latch is grabed and will not let you read this data until you perform the alls read from HD to buffer cache this will also show you in wait events which is cache buffers chain
Fetch Calls
If yours Fetch calls=Rows then it means you are not using Bulk fetch and yours this code will take a lot of roundtrips which will in turn jam the network.
Disk Count
If every time yours disk count=current + query mode then you are reading alls block from disk alls the time ,usually oracle read once from disk and put it into SGA and should be found in SGA second time.
And there is many more...depend on yors environemnt setup but above are common.
As you said its reproducing the tkprof again and again ,make sure you terminate the session or you explicitly turn off the tracer by
ALTER SESSION SET SQL_TRACE=FALSE Khurram

Similar Messages

  • 10053 - no trace file generated

    Hi,
    no 10053 trace file is generated in the diag directory.
    sql_trace = true
    trace_enabled = true
    i set
    ALTER SESSION SET TRACEFILE_IDENTIFIER = 'TEST';
    ALTER SESSION SET EVENTS='10053 trace name context forever, level 1';
    but there is no trace file generated.
    Something seems to be missing.
    Any help would be much appreciated!
    Best Regards
    user11368124

    thanks for your messages.
    @Dom Brooks
    the Oracle release is 11.2 running on Ubuntu.
    Added flushing pool. That statement was missing.
    But unfortunately the 10053 trace file is still not generated.
    i am running the following query mentioned in the article "Examining the Oracle Database 10053 Trace Event Dump File" of Steve Callan:
    alter system set TRACE_ENABLED = true;
    alter system set SQL_TRACE = true;
    alter session set statistics_level=all;
    --alter session set max_dump_file_size = unlimited;
    --oradebug setmypid
    --oradebug unlimit
    --oradebug event 10053 trace name context forever, level 1
    ALTER SESSION SET TRACEFILE_IDENTIFIER = 'TEST';
    alter session set events '10046 trace name context forever, level 12';
    alter session set events '10053 trace name context forever, level 1';
    -- plan_table exists
    select * from plan_table
    -- flushing pool
    alter system flush shared_pool;
    explain plan for
    SELECT ch.channel_class,
    c.cust_city,
    t.calendar_quarter_desc,
    SUM(s.amount_sold) sales_amount
    FROM sh.sales s,
    sh.times t,
    sh.customers c,
    sh.channels ch
    WHERE s.time_id = t.time_id
    AND s.cust_id = c.cust_id
    AND s.channel_id = ch.channel_id
    AND c.cust_state_province = 'CA'
    AND ch.channel_desc in ('Internet','Catalog')
    AND t.calendar_quarter_desc IN ('1999-01','1999-02')
    GROUP BY ch.channel_class, c.cust_city, t.calendar_quarter_desc
    ORDER by 1,2,3,4;
    Best Regards
    user11368124

  • Trace files generated for every session in 11g

    Hi
    I have two databases - both 11.1.0.7, both on RHEL5
    Database A runs on Server A
    Database B runs on Server B
    Both installation of 11g and each database are new installations.
    On Database A a trace file is being created for every session in ADR_HOME.../trace.
    On Database B - this is not happening
    The problem I have is Database A. As every session connection creates a trace file (or 2 - being *.trc and *trm), at the end of the day we have 1000's of unnecessry trace files.  
    A trace file is created for every user - SYS, SYSTEM, application users, etc... It's being created immediately - even if no SQL statements are run in the session.
    I've compared the init.ora parameters running in each database - and can find no differences. btw - SQL_TRACE is set to FALSE.
    Any ideas why a trace file is being generated for every session on Database A? And how to switch this off?
    TIA
    Regards
    Paul

    What type of content is in generated trace files? Is it SQL trace or something different?
    Have you any AFTER LOGON trigger? It can be checked with:
    col text format a100
    select name, text
      from dba_source
    where name in (select trigger_name from dba_triggers where triggering_event like 'LOGON%')
    order by name, line

  • Trace files generated by Portal

    Our DBA has just sent me an email saying that Portal is generating "thousands of trace files" on the server with messages like this:
    *** SESSION ID:(8.11147) 2002-08-05 15:46:12.338
    Traverse response tree:
    SOAP-ENV:Envelope:
    SOAP-ENV:Body:
    portal:initSessionResponse:
    sessionTimeout:
    1800
    I've never had/seen this problem before. Anyone know how to prevent this?
    Thanks
    Rich Zapata

    No version number and not enough information in what you posted to help you.
    Did this just start?
    If so what actions preceded it?
    Or is this a new install?
    Have you tried bouncing the instance?
    If it were my system I would have already searched the knowledgebase at metalink and opened an SR if I couldn't find a solution. Did you?

  • You know that whole .desktop file security scare?

    It goes something like this:
    1) Open a malicious email attachment or go to a website with malicious javascript or whatever...
    2) A program is downloaded and executed with your permissions
    3) It edits ~/.local/applications/synaptic.desktop or whatever other popular program.
    4) In the new .desktop file it adds to the run command some nasty key logger, so now when you launch Synaptic (or pacman if someone were to attack Archers) it logs your keystrokes.
    5) Now it has your root password and can do whatever it wants.
    I just want to know: How likely is this, really??
    Can a website seriously just download and run a file without me knowing? I doubt Firefox would let that happen... Or could an email attachment be executed without me being able to read it first? I'm pretty sure it can't...
    I don't understand why people seem to be concerned about .desktop files...
    I'm not even worried about my Windows machine on my home network. My router is set to reject as much stuff as it can and all computers have remote log-ins disabled. The only security problem I worry about is that my Fiancee's online courses actually send .doc's through the net, which I've heard is bad practice.

    What I've read about it has a nasty tweak, a properly crafted .desktop file could launch a dialog asking for your/root password, at that time it wrecks havoc in the system and open the add/remove software, updates or whatever is it disguised to do and the user doesn't realize what just happened.
    Of course there is always the other option of running as user and do whatever it can, if the creator is smart and lucky enough he/she will be able to put a nasty payload on the autostart list and the user can have a zombie machine without even knowing.
    It doesn't need to break the system to do a lot of damage, wiping or stealing data from the user account is enough. Of course, this has a higher probability of happening if you run and/or install everything you find in untrusted places without proper review first.
    The thing is that there are so many distros and so many versions of each distro, each with slightly different settings, DEs, browsers and whatnot that I guess it still isn't worth the bother unlike with platforms where everyone uses the same browser, possibly the default settings that come with a clean system install and worse, no security updates/patches.
    Add to this the complete lack of good sense and the common (and somewhat accepted I guess) practice of using cracks and keygens for you know what and you start to understand how come at least some users keep getting the same problems over and over again.
    These days with linux it is extremely easy to keep the system up to date with the latest security fixes, users tend to look free alternatives to payed programs and look first in the package manager to see if it is already available, this alone helps a lot, add a dose of good sense and you should be good to go.

  • Too many trace files generated by program ORACLE.EXE (J001) in "bdump"

    Hi,
    Please help!
    the following trace file messages have been created in my "bdump" folder about every 6 minutes, so it generates about 200 files per hours. Can someone tell me how to solve the error or stop the trace files be generated. Thanks.
    Windows thread id: 5520, image: ORACLE.EXE (J001)
    *** 2009-05-22 12:49:21.372
    *** ACTION NAME:() 2009-05-22 12:49:21.372
    *** MODULE NAME:() 2009-05-22 12:49:21.372
    *** SERVICE NAME:(SYS$USERS) 2009-05-22 12:49:21.372
    *** SESSION ID:(312.292) 2009-05-22 12:49:21.372
    java.io.IOException: service early exit: code=1 : err=The system cannot find the path specified.
    : out=
    at oracle.wh.runtime.server.Util.execRuntimeService(Util.java:122)
    CJ

    No version number and not enough information in what you posted to help you.
    Did this just start?
    If so what actions preceded it?
    Or is this a new install?
    Have you tried bouncing the instance?
    If it were my system I would have already searched the knowledgebase at metalink and opened an SR if I couldn't find a solution. Did you?

  • 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

  • SAP instance Slow and trace file generates below errors :  DiagOConvert...

    Hello,
    please help to resolve the problem bellow :
    SAP informations :
    - SAP ECC 6.0
    - ORACLE : 10.2.0.4.0
    - Kernel release : 700
    Trace file content :
    *** ERROR => platform      : WINDOWS/NT [diagsrv.c    842]
      *** ERROR => gui version   : 710        [diagsrv.c    851]
      *** ERROR => gui patchlevel: 12                                                 [diagsrv.c
      *** ERROR => transaction   : SP01                 [diagsrv.c    867]
      *** ERROR => user          : SAPSERVE     [diagsrv.c    881]
      *** ERROR => display    : FRBOUD083 [diagsrv.c    887]
      *** ERROR => DiagOConvert: input and output buffer overlap [diagconv.c   1146]
    +0)  0x400000000149b6a8   CTrcStack2 + 0x1d8  [dw.sapP05_DVEBMGS21]+
    +1)  0x400000000149b4c0   CTrcStack + 0x18  [dw.sapP05_DVEBMGS21]+
    +2)  0x40000000015d5080   DiagOConvert + 0x1e0  [dw.sapP05_DVEBMGS21]+
    +3)  0x40000000015d7050   DiagoString0 + 0xf0  [dw.sapP05_DVEBMGS21]+
    +4)  0x400000000161e740   DiagoCurrentCodepage + 0x2c0  [dw.sapP05_DVEBMGS21]+
    +5)  0x4000000001601490   diagoutput + 0xb50  [dw.sapP05_DVEBMGS21]+
    +6)  0x40000000016003fc   diagmout + 0x1cc  [dw.sapP05_DVEBMGS21]+
    +7)  0x4000000001620f20   diagmsgo + 0x638  [dw.sapP05_DVEBMGS21]+
    +8)  0x4000000001508728   dytrcexit + 0x648  [dw.sapP05_DVEBMGS21]+
    +9)  0x4000000001507a30   dypex00 + 0x858  [dw.sapP05_DVEBMGS21]+
    +10)  0x4000000001513498   dynpoutf + 0x450  [dw.sapP05_DVEBMGS21]+
    +11)  0x400000000150a464   dynprctl + 0x61c  [dw.sapP05_DVEBMGS21]+
    +12)  0x4000000001504554   dynpen00 + 0x1f04  [dw.sapP05_DVEBMGS21]+
    +13)  0x400000000128e9c8   Thdynpen00 + 0xf08  [dw.sapP05_DVEBMGS21]+
    +14)  0x400000000128d1a8   TskhLoop + 0x5980  [dw.sapP05_DVEBMGS21]+
    +15)  0x4000000001281e44   ThStart + 0x214  [dw.sapP05_DVEBMGS21]+
    +16)  0x40000000011c8648   DpMain + 0x410  [dw.sapP05_DVEBMGS21]+
    +17)  0x40000000011c5c0c   nlsui_main + 0x14  [dw.sapP05_DVEBMGS21]+
    +18)  0x40000000011c5bd4   main + 0x3c  [dw.sapP05_DVEBMGS21]+
    +19)  0xc00000000000b7a8   $START$ + 0xa0  [/usr/lib/pa20_64/dld.sl]+
    Thank you.

    first of all, Than you for your answer,
    Yes i'v already seen thta note, but what they propose exactelly as aplicative solution by this text :
    Solution
    By applying a kernel patch, the trace output is enhanced with the information of the callpoint so that the cause of the problem can be analyzed faster.
    The error traces were issued with the print view of texts. The problem is solved with a kernel patch.
    The error trace output now works at trace levels higher than 1 only.

  • How do you open Garageband for iPad files with Garageband?

    I was led to believe that Garageband could open up Garageband For iPad files, but not vice versa.
    However when a friend sent me his Garageband For iPad file, and I tried to open it, a "compatibility updater" started running then stopped halfway through and told me Garageband was "unable to complete the download" and directed me to go to Apple help.
    Here I am.
    Anybody got any idea how to open (and work on) this file?
    Tank you in advance.
    -Dave-id

    Apparently there were a two updaters I had to run first, before letting the compatability updater do it's thing.
    And since I got my Garageband for Mac through the APP store I could only do my updating through that.
    So if anyone else is having that same problem, update, update, update!

  • ? How do you change default for .pdf files from Reader 6 to reader 9

    I cannot change the default for .pdf files from reader 6 to reader 9. Also I cannot remove reader 6. I am running Vista

    Normally, completely removing old versions and reinstalling the latest version will reassociate all applicable extensions for the program, but it appears to have failed in your case.  There may be something else going on with your machine that is producing this behavior.  You probably need to investigate that.  But what you can do to make sure the defaults are correct is click on the start orb and select 'Default Programs.'  Then select 'Associate a file type or protocol with a program.'  From the list of file types, select each of the following in turn: acrobatsecuritysettings, fdf, pdf, pdfxml, pdx, xdp, and xfdf.  If its default program is not Adobe Reader, click on the Change Program button and select Acrobat Reader from the list (you may need to expand the lower section to display more programs than it initially provides).  If Adobe Reader does not show up in the list, you will have to browse for it.  It should be located in C:\Program Files\Adobe\Reader 10\Reader\AcroRd32.exe or C:\Program Files (x86)\Adobe\Reader 10\Reader\AcroRd32.exe.
    This method is safer than manually editing the Root\Classes in the registry.

  • Lots of  trace file generated in udump dir at the propagation target site

    about 5 minutes per file,what can i to do to disable it?
    trace file sample:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /oraps/product/10.2.0
    System name: SunOS
    Node name: BjYwDbserver
    Release: 5.10
    Version: Generic_118833-03
    Machine: sun4u
    Instance name: zgs
    Redo thread mounted by this instance: 1
    Oracle process number: 19
    Unix process pid: 3885, image: oraclezgs@BjYwDbserver
    *** SERVICE NAME:(zgs.psmis) 2006-11-30 02:17:35.629
    *** SESSION ID:(267.13934) 2006-11-30 02:17:35.629
    *** Destination Propagation Status ***
    Source Q Name :"STRMADMIN"."STREAMS_CAPTURE_Q"
    Destination :HUAD.PSMIS
    Hwm : 517894
    Dest Q Name :"STRMADMIN"."STREAMS_APPLY_HUAD_Q" Hwm : 517894 Ack : 51
    7894
    LsM : 517894
    LsP : 163197
    --------------------------------------------------

    Hi,
    I have seen this issue on 10.2.0.2 too.
    This tracing is on by default and you have to put in some cron job to remove the trace files.
    Regards
    Fairlie Rego
    www.el-caro.blogspot.com

  • Large number of trace files generated

    Many of the following trace files are being generted throughout the day, sometimes 4/5 per minute
    There is nothing in the alert log
    Any ideas?
    Many Thanks in advance
    Dump file e:\oracle\admin\nauti1\udump\nauti1_ora_5552.trc
    Tue Nov 18 17:36:11 2008
    ORACLE V10.2.0.4.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU : 4 - type 586, 4 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:2045M/3839M, Ph+PgF:3718M/5724M, VA:649M/2047M
    Instance name: nauti1
    Redo thread mounted by this instance: 1
    Oracle process number: 32
    Windows thread id: 5552, image: ORACLE.EXE (SHAD)
    *** ACTION NAME:() 2008-11-18 17:36:11.432
    *** MODULE NAME:(Nautilus.Exe) 2008-11-18 17:36:11.432
    *** SERVICE NAME:(nauti1) 2008-11-18 17:36:11.432
    *** SESSION ID:(130.42066) 2008-11-18 17:36:11.432
    KGX cleanup...
    KGX Atomic Operation Log 342CD2A4
    Mutex 452CC5F8(130, 0) idn 0 oper EXAM
    Cursor Parent uid 130 efd 17 whr 26 slp 0
    oper=DEFAULT pt1=00000000 pt2=00000000 pt3=00000000
    pt4=00000000 u41=0 stt=0
    KGX cleanup...
    KGX Atomic Operation Log 342CD2A4
    Mutex 452CC5F8(130, 0) idn 0 oper EXAM
    Cursor Parent uid 130 efd 17 whr 26 slp 0
    oper=DEFAULT pt1=48265D6C pt2=48265E68 pt3=48265D3C
    pt4=00000000 u41=0 stt=0
    Dump file e:\oracle\admin\nauti1\udump\nauti1_ora_5552.trc
    Sat Nov 22 12:52:32 2008
    ORACLE V10.2.0.4.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU : 4 - type 586, 4 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:2070M/3839M, Ph+PgF:3896M/5724M, VA:673M/2047M
    Instance name: nauti1
    Redo thread mounted by this instance: 1
    Oracle process number: 29
    Windows thread id: 5552, image: ORACLE.EXE (SHAD)

    Check out metalink bug description for Bug 6638558

  • Trace files generated

    Oracle generated following trace files,
    can someone explain me, what error
    do they report?
    ora_28324.trc
    *** 2004-07-30 12:12:26.065
    *** SESSION ID:(19.7) 2004-07-30 12:12:26.064
    Probe:write_request: backend error 1003
    ora_28326.trc
    *** 2004-07-30 12:12:26.063
    *** SESSION ID:(20.2) 2004-07-30 12:12:26.054
    Probe:S:get_scalar: exception 10: ORA-06502: PL/SQL: numeric or value error
    *** 2004-07-30 12:23:42.230
    Probe:read_pipe: receive failed, status 3
    Probe:S:debug_loop: timeout. Action 1

    These are coming from the PL/SQL debugging API. They are non-fatal and can be ignored. Something/someone must be debugging some PL/SQL on the machine.

  • Do you know rule for standard development ?

    Hi exeprt,
    do you know some document about creation of standard development ? I mean that a document where is explained all object to name on system to start a development in a new system.
    tks.

    Well for starters, here is a list of (all) possible objects to be created for which naming convention must be established:
    Global booleans
    Global constants
    Global internal tables
    Workarea global internal table
    Global ranges
    Global statics
    Global structures (records)
    Global types
    Global variable (character)
    Global variable (date)
    Global variable (integer)
    Global variable (packed)
    Global workarea database table
    Parameters
    Check boxes
    Radio buttons
    Select options
    Class
    Interface
    Local booleans
    Local constants
    Local internal tables
    Workarea local internal table
    Local ranges
    Local statics
    Local structures (records)
    Local types
    Local variable (character)
    Local variable (date)
    Local variable (integer)
    Local variable (packed)
    Local workarea database table
    Forms using parameters
    Forms using parameters (table)
    Forms changing parameters
    Forms changing parameters (table)
    Forms tables parameters
    Tables parameters must not be used anymore
    Function Module/Method importing parameters
    Function Module/Method importing parameters (table)
    Function Module/Method exporting parameters
    Function Module/Method exporting parameters (table)
    Function Module/Method changing parameters
    Function Module/Method changing parameters (table)
    Function Module tables parameters
    Tables parameters must not be used anymore
    Function Module/Method exceptions
    Method returning parameters
    I'm not saying this list is complete, for example objects specific for module pool programming are not included, neither are BAdI's (or enhancements in general for that matter), Web Dynpro development (etc.) , but it will help you on your way. If somewhere along the line, some new objects are created at this customer, you should enhance this document.

  • Do you know tutorials for this button?

    I want to include several buttons in my web designs, and I'd especially like to design this one, or any other similar one. Do you know good tutorials? Thanks in advance.

    Techniques you need are described in this one:
    http://vforvectors.com/create-the-opel-logo/

Maybe you are looking for