Reading trace file on the fly.

I came across one cool trick mentioned by Tanel Poder, but it doesn't seem to work for me. Could anyone please help in reading trace file on the fly.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> !uname -a
Linux abc 2.6.16.60-0.34-smp #1 SMP Fri Jan 16 14:59:01 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux
SQL> select value ||'/'||(select instance_name from v$instance) ||'_ora_'||
  2             (select spid||case when traceid is not null then '_'||traceid else null end
                 from v$process where addr = (select paddr from v$session
  3    4                                               where sid = (select sid from v$mystat
  5                                                          where rownum = 1
  6                                                     )
  7                                          )
  8             ) || '.trc' tracefile
  9      from v$parameter where name = 'user_dump_dest'
10     /
TRACEFILE
/n01/oraadmin1/diag/rdbms/abc/inst1/trace/inst11_ora_28754.trc
SQL> host mknod /n01/oraadmin1/diag/rdbms/abc/inst1/trace/inst11_ora_28754.trc p
SQL> set define off
SQL> host grep "WAIT" /n01/oraadmin1/diag/rdbms/abc/inst1/trace/inst11_ora_28754.trc &
SQL> set define on
SQL> alter session set events '10046 trace name context forever, level 8';
Session altered.
SQL> select * from dual;
D
X
SQL>
SQL> select * from dual;
D
X
{code}
I dont get any WAIT printed into the pipe file created before tracing.
Am i doing something wrong here ?
Edited by: Yasu on Nov 12, 2012 10:14 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

I tried manual method and yes i am able to find WAIT lines in trace file.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> select value ||'/'||(select instance_name from v$instance) ||'_ora_'||
           (select spid||case when traceid is not null then '_'||traceid else null end
  2    3                   from v$process where addr = (select paddr from v$session
  4                                               where sid = (select sid from v$mystat
  5                                                          where rownum = 1
  6                                                     )
  7                                          )
  8             ) || '.trc' tracefile
  9      from v$parameter where name = 'user_dump_dest'
10     /
TRACEFILE
/n01/oraadmin1/diag/rdbms/proddba/proddba1/trace/proddba1_ora_23021.trc
SQL> alter session set events '10046 trace name context forever, level 8';
Session altered.
SQL> select * from dual;
D
X
SQL> alter session set events '10046 trace name context off';
Session altered.
SQL> !ls -lrt /n01/oraadmin1/diag/rdbms/proddba/proddba1/trace/proddba1_ora_23021.trc
-rw-r----- 1 oracle oinstall 2738 2012-11-12 01:13 /n01/oraadmin1/diag/rdbms/proddba/proddba1/trace/proddba1_ora_23021.trc
SQL> !grep "WAIT" /n01/oraadmin1/diag/rdbms/proddba/proddba1/trace/proddba1_ora_23021.trc
WAIT #1: nam='SQL*Net message to client' ela= 6 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704368368424
WAIT #1: nam='SQL*Net message from client' ela= 4057810 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704372428142
WAIT #1: nam='SQL*Net message to client' ela= 6 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704372428492
WAIT #1: nam='SQL*Net message from client' ela= 195 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704372428892
WAIT #1: nam='SQL*Net message to client' ela= 3 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704372428939
WAIT #1: nam='SQL*Net message from client' ela= 46319788 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1352704418748740Not sure why using mknod fails in my case.
Edited by: Yasu on Nov 12, 2012 12:48 PM

Similar Messages

  • How to read trace files alerted in the alert.log file

    Hello,
    My alert.log file indicated multiple trace files to review. How to read these trace files to understand the cause of errors. Do I open the trace files with vi and do a search for 'ORA-' error. Are there tools to read and understand trace files. Thank you.

    It depends what kind of trace file it is.
    You can use vi or other text editing tool to open the trace file. The trace file usually provides more detailed information when you have ORA- errors in alert.log. It's also very helpful for Oracle support when troubleshooting.

  • How to process files on the fly instead of uploading them to server ?

    Hello,
    We are using upload package of oreilly. is there a way to read files on the fly ? We don't want to upload files to server, open them and process them. But processing them on the fly will be faster for us.
    thanks in advance...

    Hello,
    If we can upload a file to server by using oreilly's package, there should be a way to read the file after it's POSTED by client's browsers..
    If we can do that, we'll not have to do followings:
    - Saving file to our server
    - Openning this file
    - Reading this file sequentially
    We want to read file on the fly. isn't it possible ? If not possible, how can oreilly package save files to a directory on our server.
    thanks in advance...

  • Trace files from the database

    Does anyone have a solution to present the contents of trace files to a user? They need to ba able to view any trace file in the trace directory including alert log et.al. Mail doesn't seem practical since the files can be large and external tables require them to know the name of the trace file...Any slick ideas out there.

    Thanks for the responses. I saw Millsap's tool but the requirement is for ANY trace file. These folks are excellent DBAs I have no concerns over their interpreting the contents however they have no access to the OS. I saw Mr. Kytes suggestion, which we are playing with, I was just wondering if there are any other solutions folks are using.

  • Is there a way to compile or execute mxml files on the Fly...

    Based on the success on PHP which let me script on the fly,
    just recently with the website
    http://heroku.com/ that allow to
    create ruby on rails applications from a web interface, what if a
    apache module or some other of web server, perhaps Adobe
    Application server allow via web interface to compile & execute
    mxml files on the fly...
    This will let everybody to go to a particular website sign-in
    then start building applications in the Adobe Cloud...and name
    their applications and edit all the mxml code perhaps with an AIR
    based application.
    I really can't wait to see something like this in adobe take
    off....
    Best Regards Dino.

    Based on the success on PHP which let me script on the fly,
    just recently with the website
    http://heroku.com/ that allow to
    create ruby on rails applications from a web interface, what if a
    apache module or some other of web server, perhaps Adobe
    Application server allow via web interface to compile & execute
    mxml files on the fly...
    This will let everybody to go to a particular website sign-in
    then start building applications in the Adobe Cloud...and name
    their applications and edit all the mxml code perhaps with an AIR
    based application.
    I really can't wait to see something like this in adobe take
    off....
    Best Regards Dino.

  • How to read trace file content

    Hi,
    DB :11.2
    How to read trace file content.It's only for ORACLE SUPPORT?
    calling         
    call
    entry           
    argument values in hex
    location        
    type
    point           
    (? means dubious value)
    ksedst()+31     
    call
    ksedst1()       
    000000000 ? 000000001 ?
    7FFF19B98CA0 ? 7FFF19B98D00 ?
    7FFF19B98C40 ? 000000000 ?
    ksedmp()+610    
    call
    ksedst()        
    000000000 ? 000000001 ?
    7FFF19B98CA0 ? 7FFF19B98D00 ?
    7FFF19B98C40 ? 000000000 ?
    ksfdmp()+21     
    call
    ksedmp()        
    000000003 ? 000000001 ?
    7FFF19B98CA0 ? 7FFF19B98D00 ?
    7FFF19B98C40 ? 000000000 ?
    kgerinv()+161   
    call
    ksfdmp()        
    000000003 ? 000000001 ?
    7FFF19B98CA0 ? 7FFF19B98D00 ?
    7FFF19B98C40 ? 000000000 ?
    kgeasnmierr()+163
    call
    kgerinv()       
    0069107E0 ? 011F80370 ?
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000000 ? 000000000 ?
    kssmov()+502    
    call
    kgeasnmierr()   
    0069107E0 ? 011F80370 ?
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000029 ? 0D3F1C600 ?
    kfncInitSlavePool()  call
    kssmov()        
    0D3F1C5D0 ? 000000000 ?
    +203                                          
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000029 ? 0D3F1C600 ?
    kfncWorkMsgAlloc()+  call
    kfncInitSlavePool()  0D3F1C5D0 ? 000000000 ?
    83                                            
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000029 ? 0D3F1C600 ?
    kfncFileUnidentify(  call
    kfncWorkMsgAlloc()   0D3F1C5D0 ? 7FFF19B99AD0 ?
    )+635                                         
    7FFF19B98D00 ? 7FFF19B98C40 ?
    000000029 ? 0D3F1C600 ?
    kffmRequestFree()+1  call
    kfncFileUnidentify(  7FFF19B99BC8 ? 7FFF19B99BC0 ?
    Br,
    Raj

    One needs to know the meaning of the kernel functions and their working within the oracle database. I guess, oracle support can do the analysis more easily as they have access to the software code  as well necessary tools to interpret these internal routines.
    Aman....

  • PC Suite converts flac music files on the fly to A...

    PC Suite 6.86
    Nokia 5320
    Windows XP
    I convert my music to AAC 128 with the Nokia PC Suite App. I drop files by hand onto the application and it converts it correctly.
    Now I a have a lot of files encoded in flac format. I KNOW ALREADY that the 5320 does not play flac files.
    (and I also know that there is the free app oggplay that plays flac, but because oggplay cannot use the hardware buttons of the Nokia 5320 this is not a solution for me).
    But is it possible to have flac files converted on the fly when I drop them onto PC Suite. At the moment it doesn't seem to work so I guess Nokia Suite cannot read flac files to convert them to AAC?
    Any way to change this?

    Just to clarify:
    I read the topics about flac on this board and I DO NOT want to add to the flac support questions. I do not need flac files to play on tthe 5320.
    All I wanna do is convert the flac files on the fly with Nokia Suite (to AAC or eAAC+ or whatever is supported) and at the moment it seems its not working. So I would like a confirmation if it is not supported for conversion or if I am doing something wrong or maybe my PC Suite version is not the right one.
    Thanks again.

  • I can't read a file with the ext PDF the sender informed me that the file was reset to PDF.

    I can't read a file with the .ext PDF the sender informed me that the file was reset to PDF. But when I tried to open it the caption box informed me"the file is not in PDF format. I suspect the sender simply changed the file .ext which is why I can't open it! What can I do about it! I am working on an iPad.
    Thanks
    Mr Jim Lapthorn

    If the document is not, in fact, a PDF, then you will need to get your sender to provide a PDF.
    Can you open this document in any other application?

  • Can we create a XDP file on the fly

    Hi All,
    I am new to Live Cycle.
    I want to know if we can create an XDP file on the fly and immediately using this XDP file can form server create a PDF?
    Need this info urgently..
    Thanks in advance.
    Regards
    Vinay

    There are several ways to do this. The third chapter in the
    cookbook is a good place to start.
    All things in ActionScript are based on objects. Constructing
    them with the data needed for the ui information you will need and
    then binding that data to your dashboard objects is basically what
    you are going to be doing.
    For me it makes the most sence to have an idea of what
    different types of objects you will be creating and create some
    extended components for those objects. Then when you recieve your
    data, binary or xml, you can digest the configuration settings from
    the layout and populate the constructor for each of your
    components.
    It sounds like you need to organize your layout structure in
    a heirarchy and from that you can walk each branch and create each
    set of things as you parse your data.
    Without a bit more information as to what you are
    specifically doing that is about as far as I can go minus adding in
    some code along some line that I think might work.
    Hope that helps some.
    -D

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • Is it possible to read Prezi files within the iOS app?

    Hello,
    I want to implement Prezi into my iOS app. I am totally unaware that "Is it possible to read Prezi files within the iOS app?".
    If Yes, please provide some tutorial link, so that I can implement into my application.
    Thanks & regard.

    You will get a better answer in
    Developer Forums
    Use your Developer credentials to log in there.

  • I tried to download the trial version of elements 10.  I only got the read me files and the organize

    I tried to download the trial version of elements 10.  I only got the read me files and the organizer.

    Please post the PSE query over the following forums and lets discuss it over there.
    http://forums.adobe.com/community/photoshop_elements
    Thanks and regards
    Harshit yadav

  • I removed chrome 10 and newly installed FF4 final, and I can't read PDF files within the browser. There was no problem in Chrome.

    I removed chrome 10 and newly installed FF4 final, and I can't read PDF files within the browser. There was no problem in Chrome. I can't even see the acrobat reader plugin in the plugins page. Acrobat 10 is already installed in my PC. Every time I try to read a PDF file on the web, FF tries to download it instead.

    As recommended above by Bernd Alheit, I posted this on the Adobe Reader forum. There, I received the advice to repair the installation under the help menu, which I did and it fixed the problem.
    Similar to your solution but found it's a fix found under "HELP" menu and not Add/Remove.
    Thank you.

  • How to read, write file inside the JAR file?

    Hi all,
    I want to read the file inside the jar file, use following method:
    File file = new File("filename");
    It works if not in JAR file, but it doesn't work if it's in a JAR file.
    I found someone had the same problem, but no reply.
    http://forum.java.sun.com/thread.jsp?forum=22&thread=180618
    Can you help me ? I have tried this for all night !
    Thanks in advance
    Leo

    If you want to read a file from the JAR file that the
    application is packaged in (rather than a separate
    external JAR file) you do it like this ...
    InputStream is =
    ClassLoader.getSystemResourceAsStream("filename");Better to use
    this.getClass().getClassLoader().getResourceAsStream();
    From a class near to where the data is. This deals with multiple classloaders properly.

  • How do I read PDF files from the SARS website

    How do I read PDF files from the SARS website
    Got the latest version xi.0.08 of Abobe Reader
    Operating system is win XP Sp3

    You need Adobe Reader or Adobe Acrobat or other PDF reading application installed on your system. Then just double click on the form or publication wanted and follow the prompts as needed.

Maybe you are looking for

  • Partial Multibyte Character Error

    Hi All, I am getting following error while running a report in OBIEE 11 G. State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Fa

  • SQVI 's/Tcode info req??

    hi I am told to make an tcode for a program generated by a SQVI on PRD,that progrm don't hv any TR no,wheni tried to copy the Program & make it under a TR in DEV,after executation its not displaying its TEXTS,both of selection-screen & also of its O/

  • Error installing N-Trig MultiTouch software for HP TouchSmart tx2 1270us with OS Windows 7

    Hello. I would like to ask somebody to help me installing the Multitouch technology on my TouchSmart tx2 1270us Notebook PC. The original system came with OS Windows Vista. I bought an Upgrade for Vista from Microsoft and installed Windows 7. The pro

  • Plug-ins for Photoshop Elements 8?

    When I google for plug-ins, I get a bunch of plug-in sites, but will these work for PSE8?  Also, how do I intall the plug-ins?  Do I just have to move them to a different folder?  Sorry, I am new at this. -TitanVex

  • Software Update not expanding packages correctly

    I've configured an OSX Server with Software Update. I've got a single client connected to the server via gig-E, the client is able to get the list of updates from the server but when I click "Install", SWUpdate on the client rapidly moves through eac