How to Run Trace

How do you run and retrieve trace info? I'm a rookie at Oracle, just downloaded 11g. Thanks

login as: oraprod
[email protected]'s password:
Last login: Mon May 12 04:50:10 2008 from trainee1.parazelsus.pk
[oraprod@dbprod ~]$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.2.0 - Production on Tue May 13 23:44:24 2008
Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> conn sys/sys as sysdba
Connected.
SQL> grant alter session to scott
  2  /
Grant succeeded.
SQL> conn scott/tiger
Connected.
SQL> set linesize 1000
SQL> alter session set sql_trace=true
  2  /
Session altered.
SQL> select * from emp
  2  /
     EMPNO ENAME                          JOB                                MGR HIREDATE               SAL       COMM     DEPTNO
      7369 SMITH                          CLERK                             7902 17-DEC-80              800                    20
      7499 ALLEN                          SALESMAN                          7698 20-FEB-81             1600        300         30
      7521 WARD                           SALESMAN                          7698 22-FEB-81             1250        500         30
      7566 JONES                          MANAGER                           7839 02-APR-81             2975                    20
      7654 MARTIN                         SALESMAN                          7698 28-SEP-81             1250       1400         30
      7698 BLAKE                          MANAGER                           7839 01-MAY-81             2850                    30
      7782 CLARK                          MANAGER                           7839 09-JUN-81             2450                    10
      7788 SCOTT                          ANALYST                           7566 09-DEC-82             3000                    20
      7839 KING                           PRESIDENT                              17-NOV-81             5000                    10
      7844 TURNER                         SALESMAN                          7698 08-SEP-81             1500          0         30
      7876 ADAMS                          CLERK                             7788 12-JAN-83             1100                    20
      7900 JAMES                          CLERK                             7698 03-DEC-81              950                    30
      7902 FORD                           ANALYST                           7566 03-DEC-81             3000                    20
      7934 MILLER                         CLERK                             7782 23-JAN-82             1300                    10
14 rows selected.
SQL> alter session set sql_trace=false
  2  /
Session altered.
SQL> disconnect
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> exit
[oraprod@dbprod ~]$ cd /orahome/PROD/db/tech_st/10.2.0/admin/PROD_dbprod/udump
[oraprod@dbprod udump]$ ls -lrt
total 8928
-rw-r--r--  1 oraprod dba     845 Apr 15 17:53 prod_ora_4267.trc
-rw-r-----  1 oraprod dba     689 Apr 15 19:54 prod_ora_28473.trc
-rw-r--r--  1 oraprod dba     718 Apr 15 19:54 prod_ora_28499.trc
-rw-r--r--  1 oraprod dba     827 Apr 15 21:55 prod_ora_30662.trc
-rw-r--r--  1 oraprod dba 4471139 Apr 16 22:51 prod_ora_24132.trc
-rw-r--r--  1 oraprod dba     718 Apr 16 22:51 prod_ora_24610.trc
-rw-r-----  1 oraprod dba     661 Apr 16 22:51 prod_ora_24586.trc
-rw-r--r--  1 oraprod dba     986 Apr 16 22:52 prod_ora_24612.trc
-rw-r-----  1 oraprod dba     659 Apr 17 10:51 prod_ora_2315.trc
-rw-r--r--  1 oraprod dba     716 Apr 17 10:51 prod_ora_2339.trc
-rw-r--r--  1 oraprod dba     782 Apr 17 10:51 prod_ora_2341.trc
-rw-r--r--  1 oraprod dba     845 Apr 17 14:19 prod_ora_6153.trc
-rw-r-----  1 oraprod dba     661 May  8 07:13 prod_ora_27379.trc
-rw-r--r--  1 oraprod dba     718 May  8 07:13 prod_ora_27403.trc
-rw-r--r--  1 oraprod dba     784 May  8 07:13 prod_ora_27405.trc
-rw-r--r--  1 oraprod dba   27354 May 13 23:46 prod_ora_4613.trc
[oraprod@dbprod udump]$ tkprof prod_ora_4613.trc prod_ora_4613.txt explain=scott/tiger sys=no
TKPROF: Release 10.2.0.2.0 - Production on Tue May 13 23:48:25 2008
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
[oraprod@dbprod udump]$ ls -lrt
total 8936
-rw-r-----  1 oraprod dba     661 Apr 16 22:51 prod_ora_24586.trc
-rw-r--r--  1 oraprod dba     986 Apr 16 22:52 prod_ora_24612.trc
-rw-r-----  1 oraprod dba     659 Apr 17 10:51 prod_ora_2315.trc
-rw-r--r--  1 oraprod dba     716 Apr 17 10:51 prod_ora_2339.trc
-rw-r--r--  1 oraprod dba     782 Apr 17 10:51 prod_ora_2341.trc
-rw-r--r--  1 oraprod dba     845 Apr 17 14:19 prod_ora_6153.trc
-rw-r-----  1 oraprod dba     661 May  8 07:13 prod_ora_27379.trc
-rw-r--r--  1 oraprod dba     718 May  8 07:13 prod_ora_27403.trc
-rw-r--r--  1 oraprod dba     784 May  8 07:13 prod_ora_27405.trc
-rw-r--r--  1 oraprod dba   27354 May 13 23:46 prod_ora_4613.trc
-rw-r--r--  1 oraprod dba    7245 May 13 23:48 prod_ora_4613.txt
[oraprod@dbprod udump]$ vi prod_ora_4613.txtKhurram

Similar Messages

  • How to run non-customised report from command prompt to gen trace file?

    Hi
    how to run non-customised report from command prompt to gen trace file?
    EBS R12 RUP6.
    RHEL5
    rgrds

    Hi,
    See (Note: 285497.1 - Rwrun.sh Does Not Generate Trace Output Using TRACEOPTS in Command Line) and/or (Note: 737445.1 - R12 Concurrent Requests Run Forever; rwrun Errors REP-50125) for the command you need to use.
    Thanks,
    Hussein

  • How to  take trace of concurrent programme while it is in running state?

    how to take trace of concurrent programme while it is in running state?

    838982 wrote:
    how to take trace of concurrent programme while it is in running state?You cannot until it is completed -- You may generate the TKPROF file if the trace file has been generated and contains some data but this may not be helpful.
    How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]
    How Can Trace and Debug Be Turned On For A Concurrent Request? [ID 759389.1]
    How to Set a Trace with Bind and Waits from the Concurrent Request Form [ID 601647.1]
    How To Find Trace File From Concurrent Request ID [ID 452225.1]
    Thanks,
    Hussein

  • How to run a Java EE client application ?

    Greetings,
    I have a Java EE Application Project created with Eclipse (OEPE) and I don't know how to run it ? I asked the question on the OEPE forum but didn't manage to have any pertinent answer. I have also looked at Developing Java EE Application Clients (Thin Clients) in the Programming Stand-alone Clients book and tried to use commands as weblogic.clientDeployer and weblogic.j2eeclient.Main but haven't been able to get them working. And anyway, they are not done to be used in Eclipse as I didn't find any ant tasks for them.
    Many thanks in advance for any help.
    Nicolas

    I have an ear with the following content:
    0 Thu Apr 23 12:20:52 CEST 2009 APP-INF/
    0 Thu Apr 23 12:20:52 CEST 2009 APP-INF/classes/
    0 Thu Apr 23 12:20:52 CEST 2009 APP-INF/lib/
    6843 Thu Apr 23 12:20:52 CEST 2009 APP-INF/lib/ww204-jpa.jar
    0 Thu Apr 23 12:20:52 CEST 2009 META-INF/
    542 Thu Apr 23 12:19:44 CEST 2009 META-INF/application.xml
    25 Thu Apr 23 12:20:52 CEST 2009 META-INF/MANIFEST.MF
    659 Mon Apr 20 18:37:56 CEST 2009 META-INF/weblogic-application.xml
    1220 Thu Apr 23 12:20:52 CEST 2009 ww204-client.jar
    4040 Thu Apr 23 12:20:52 CEST 2009 ww204-ejb.jar
    I'm running the following command:
    java -classpath C:\bea\wlserver_10.3\server\lib\weblogic.jar weblogic.ClientDeployer ww204.ear ww204-client
    This creates the jar with the following content:
    764 Thu Apr 23 12:04:42 CEST 2009 Main.class
    0 Thu Apr 23 12:20:52 CEST 2009 META-INF/
    351 Thu Apr 23 12:10:08 CEST 2009 META-INF/application-client.xml
    43 Thu Apr 23 12:02:26 CEST 2009 META-INF/MANIFEST.MF
    And of course, when I try to run the client using the command:
    C:\Users\nicolas>java -classpath C:\bea\wlserver_10.3\server\lib\weblogic.jar weblogic.j2eeclient.Main ww204-client t3://localhost:7001
    it raises the following exception:
    java.lang.Exception: Stack trace
         at java.lang.Thread.dumpStack(Thread.java:1206)
         at weblogic.j2eeclient.Main.run(Main.java:194)
         at weblogic.j2eeclient.Main.main(Main.java:926)
    java.lang.Exception: Stack trace
         at java.lang.Thread.dumpStack(Thread.java:1206)
         at weblogic.j2eeclient.Main.run(Main.java:196)
         at weblogic.j2eeclient.Main.main(Main.java:926)
    Exception in thread "Main Thread" java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.j2eeclient.Main.run(Main.java:201)
         at weblogic.j2eeclient.Main.main(Main.java:926)
    Caused by: java.lang.NoClassDefFoundError: fr/simplex_software/slsb/FacadeRemote
         at Main.main(Main.java:10)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.j2eeclient.Main.run(Main.java:201)
         at weblogic.j2eeclient.Main.main(Main.java:928)
    The ww204-client.jar was created as an OEPE J2EE Application Project and it was extracted with weblogic.ClientDeployer from the ear exported by OEPE. But it doesn't contain the required classes.

  • How to run commands like "ipconfig" and get the output in adobe AIR in windows?

    import flash.desktop.NativeProcess; 
    import flash.desktop.NativeProcessStartupInfo;   
    if (NativeProcess.isSupported) {     
         var npsi:NativeProcessStartupInfo = new NativeProcessStartupInfo();     
         var processpath:File = File.applicationDirectory.resolvePath("MyApplication.whatever");     
         var process:NativeProcess = new NativeProcess();       
         npsi.executable = processpath;     
         process.start(npsi); 
    The above can only run a sub-application, but how to run an independent  application(command) like ipconfig and get the result?

    Hi,
    here is an example of running a net Use command line from AIR, unig the new NativeProcess. Hope it will help !
    function launchProcess()
      var file = air.File.applicationDirectory;
      // set command path
      file = file.resolvePath("C:/Windows/system32/net.exe");
      var nativeProcessStartupInfo = new air.NativeProcessStartupInfo();
      nativeProcessStartupInfo.executable = file;
      // prepare command parameters
      var args = new runtime.Vector["<String>"]();
      args.push('USE');
      args.push('W:');
      args.push('/delete');
      args.push('/y');
      // set arguments
      nativeProcessStartupInfo.arguments = args;
      // add listeners to catch command outputs
      process.addEventListener(air.ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
      process.addEventListener(air.ProgressEvent.STANDARD_ERROR_DATA, onErrorData);
      process.addEventListener(air.NativeProcessExitEvent.EXIT, onExit);
      // create and run Native process
      process = new air.NativeProcess();
      process.start(nativeProcessStartupInfo);
    function onOutputData(ProgressEvent)
      var processResults = process.standardOutput.readUTFBytes(process.standardOutput.bytesAvailable);
      air.trace("Results: \n" + processResults);
    function onErrorData(ProgressEvent)
      var processResults = process.standardError.readUTFBytes(process.standardError.bytesAvailable);
      if(processResults.search('password') > -1){
        window.alert('Bad password');
      air.trace("Errors: \n" + processResults);
    function onExit(NativeProcessExitEvent)
      air.trace("Process ended with code: " + NativeProcessExitEvent.exitCode);

  • How to run jsp in tomcat server

    hi this is satish1529,
    i am new to jsp technology,i have written small jsp file and html file,i don't know where to place jsp and html files in tomcat server and where i have to do setting in the server and how to run jsp file. pls give me step by step describing how to run jsp in tomcat server.
    i am showing u files
    this is jsp file
    <html>
    <body>
    <center> data recieved from client <center>
    <%
    String s= request.getParameter("t1");
    String a= request.getParameter("t2");
    %>
    username :<%=s%><br>
    address :<%=a%>
    </body>
    </html>
    this is html file
    <html>
    <body>
    <form action="http://localhost:8080/form.jsp">
    enter name <input type="text" name="t1"> <br>
    enter address <textarea name="t2"> </textarea> <br>
    <input type="submit" vaule="login">
    </form>
    </body>
    </html>

    Thanx a lot for ur promt reply.
    we r succful in running simple jsp in tomcat6.0.
    bt one more problem occured as following when we r trying to run jsp file in tomcat.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /main1.jsp(1,1) The value for the useBean class attribute webCounter is invalid.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1200)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1155)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3374)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.

  • How to run the program in background job,program should run in 3 days.

    Dear Gurus,
    i have a program , that program should run approximately 3 days to get the result.
    i scheduled this program as a background job.
    how can i run sto5 t-code for this same program.
    i that case how we can trace the output.
    Experts please help me out.
    Thank u very much.
    Regards
    sudheer

    Hello Sudheer,
    The trace can be set on background jobs by using ST12 transaction. Please make sure that the trace is activated for only few minutes in production environment.
    Contact your basis team to activate trace on background job and the transaction used is ST12.
    Thanks

  • How can u trace process of workflow throug workflow base table.

    Hi,
    My previous question might be confusing
    Just want to ask
    How can u trace process of workflow throug Which workflow base table.
    Please It's urgent
    Thanks
    Bachan

    Bachan,
    Why do you need to enable trace from the backend? You can run "bde_wf_item.sql" script, this script gives similar information as wfstatus.sql and wfstat.sql give but with more debugging information
    Note: 187071.1 - bde_wf_item.sql - Runtime Data of a Single Workflow Item
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=187071.1

  • How can I trace creation of objects?

    I am wondering how I can trace creation of objects with new. For example:
    interface CreationListener {
        void objectCreated(Object o);
    class CreationNotifier {
        static void registerCreationListener(Class cls, CreationListener listener) {
            // registers `listener' to be notified after creating any object of class `cls'
    class Test {
        public static void main(String[] args) {
            CreationNotifier.registerCreationListener(Integer.class, new CreationListener() {
                public void objectCreated(Object o) {
                    System.out.println("Created Integer " + ((Integer)o).intValue());
            new Integer(2);  // Now I would expect to see `Created Integer 2' on my console...
    }In other ways I want to get informed about every object of the specified class that gets created
    throughout the application.
    Does anyone have an idea about it? I was trying to find something appropriate in SecurityManager
    but I failed :(
    Please help!

    I think you did not understand exactly what I meant. Your solution is only good for classes written by
    me and I wanted to catch all object constructions in any class, e.g. one that I have only in a binary form.
    Maybe Hashtable is
    not the right data structure but I got to go back to
    work :-) Let me know if you come up with a better
    implementation.
    -- Niladri.I created a WeakHashSet class on top of WeakHashMap which uses one static object as a value and really cares only about the keys. In the registrating class I have a HashMap with keys of type Class and values of WeakHashSet. The register method is simple:
    public void register(Object o) {
        if (o == null) return;
        if (!map.containsKey(o.getClass()))    // this is the first object of this class being registered
            map.put(o.getClass(), new WeakHashSet());
        ((WeakHashSet)map.get(o.getClass())).add(o);    // WeakHashSet implements Set interface
    }This design ensures (because of using WeakHashMap) that I only have live objects in my structure after running GC (in fact, I call System.gc() in methods to find the live objects of a specific class).
    As you can see, my only problem is to have the object registration automate for classes that I have not written (and do not have sources).
    And using the profiler is not portable (as I guess) - in examples for JProbe they used DLL's and UNIX shared objects. And that requires unusual switches when starting JVM. I would like to have an all-Java language solution as the code fragments which I have described come from a library which I am writing now and I should not make the users of it depend on switches or dynamic libraries...
    Anyway, thanks for your good will. :-)

  • How can we trace the event

    Hello Expert,
    We have a lot of process chain which was trigger by one event with different variant. However, since the last two days, the process chain did not run. it seems the event was not triggered.
    How can we trace the event? I mean, if it is triggered or not within one day.
    As I checked the process chain, some of the process chain was successfully triggered by the same event. it is really weird...
    Thanks
    XY
    Edited by: xy chen on Nov 6, 2008 3:24 AM
    Edited by: xy chen on Nov 6, 2008 3:30 AM

    Hi......
    Copy the event...........then go to SE16 >> RSEVENTHEAD............there in the event field give the event name.........then execute............from there you will get the event collector name................
    If you don't get it here then search in table RSEVENTCHAIN.........
    Copy the event and go to RSA1OLD(if you are in 7.0)............otherwise go to RSA1...............from there go to the Event collector........give the event collector name and check whether it registered or not............if registered when last it was registered.............if you are unable to find this event in these two chains............then go SM37................from there choose the event..........and in the Job field write BI_PROCESS_TRIGGER..............from there check when this job last triggered for this event.............
    Hope this helps.........
    Regards,
    Debjani........
    Edited by: Debjani  Mukherjee on Nov 6, 2008 4:44 AM

  • How to generate Trace files

    Hi,
    I have a package under which there are some procedures and functions.
    I am supposed to generate the trace files for each run of the procedures in the package.
    How to generate trace files? Pls help me out.
    Thanks in advance
    Regards,
    Vijay

    I dont have access to production server to see the
    trace file. Is there a way to see the content of the
    trace file from client machine?No. At least there isn't one without additional work from your administrator. I remember I've seen somewhere some kind of solution when user_dump_dest is used as oracle directory (specific oracle object) in your db and then use either external tables or utl_file or something like that to read the trace file. Of course this assumes your DBA should do some work before.
    However I'd say that simply getting trace file from server is much easier :)
    Consider, Autotrace option in sqlplus. With the help
    of Autotrace set option, we can see the trace output
    on the sqlplus screen for the anonymous blocks. Different tool, different behaviour.
    Is there a way to see the trace for the stored
    procedures?Explained above.
    Gints Plivna
    http://www.gplivna.eu

  • HT6154 how do i trace my stolen iphone

    how do i trace my stolen iphone online

    The only way to locate/disable/erase any lost/stolen iPhone/iPod Touch is through Find My Phone or a similar app. However, this requires that Find My Phone be setup/activated, on your phone, before it was lost/stolen. You would then login at iCloud.com & try to locate it. This requires the phone be turned on & have an Internet connection. There is no other way to locate a lost/stolen iPhone. Apple can't/won't help you, nor will your carrier. Report the loss to the Police, your carrier & Insurance company. Change all of your passwords, especially your Apple ID/iCloud password NOW!
    If your carrier offers Blacklisting &amp; they Blacklist the phone, it will be unusable as a phone.
    If locked with a passcode, and running iOS 7.0, & Find My Phone turned on/activated, then phone cannot be re-activated or the passcode removed without knowing your Apple iD/Password. It will be nothing but a useless paperweight.
    If not running iOS 7.0, the phone can be forced into recovery mode & restored.

  • HOW TO RUN ADOBE READER IN MACBOOK PRO

    HOW TO RUN ADOBE READER IN MACBOOK PRO

    Please stop using caps.  It is considered shouting and rude.
    You need to download the program. The reader runs when needed.
    Barry

  • How to run 'Get-AssignedAccess' or 'Set-AssignedAccess' power shell commands in c# Application

    Hi,
    I have console application using which i am trying to run power shell command  like 'Get-AssignedAccess' or 'Set-AssignedAccess'.
    i am using below code for this it is throwing exception 'Get-AssignedAccess' doesn't exist in cmdlet which is correct because these commands belongs to function category.
    using (PowerShell pwInstance = PowerShell.Create())
                            pwInstance .AddScript("Get-AssignedAccess");
                            var result = pwInstance .Invoke();
    How can we execute this kind of command using c#?
    Thanks,

    Hi prakashlight,
    Thank you for comming back and tell us the result. For more information about how to run PowerShell script in C# language, you can refer to this blogpost here:
    Executing PowerShell scripts from C#
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Does anyone know How to run twin monitors on a MacBook Pro operating on a Windows Server 2008 R2 ?

    Hi
    Does anyone know How to run twin monitors on a MacBook Pro operating on a Windows Server 2008 R2 ?

    I know this doesn't help you much, but, I think you have to see if your Mac pro does audio out via HDMI. I don't even know if mine does via DVI. I think it may have to do with the adapter. Try going into Audio MIDI and setting the digital out to multichannel
    and using the toslink cable for now. Lemme see...apparently DVI does not carry audio at all. Hm. apparently monoprice could be helpful?  If I understand what you're saying correctly: you want to take DVI and multichannel audio via the Toslink and have it all go out over HDMI, right? Whooo..... amazon...looks like it's about $100http://www.amazon.com/Audio-SPDIF-Toslink-Converter-Adapter/dp/B0015YYOQQ
    just a shot in the dark
    I'm probably wrong....or not
    John B

Maybe you are looking for