Trace Info

When a trace a session we generally see the outputs in a tabular fashion for the PARSE,EXECUTE,FETCH phase like count,disk,elapsed time,query,current. According to the doc
QUERY: Total number of buffers retrived in consistent mode for each parse,execute,fetch phase.
CURRENT:Total number of buffers retrived in current mode for each parse,execute,fetch phase.
Could you please elaborate what that buffer retrived in consistent and current mode means.

" Current mode
A current mode get, also called a db block get, is a retrieval of a block as it currently appears in the buffer cache. For example, if an uncommitted transaction has updated two rows in a block, then a current mode get retrieves the block with these uncommitted rows. The database uses db block gets most frequently during modification statements, which must update only the current version of the block.
Consistent mode
A consistent read get is a retrieval of a read-consistent version of a block. This retrieval may use undo data. For example, if an uncommitted transaction has updated two rows in a block, and if a query in a separate session requests the block, then the database uses undo data to create a read-consistent version of this block (called a consistent read clone) that does not include the uncommitted updates. Typically, a query retrieves blocks in consistent mode."
http://docs.oracle.com/cd/E11882_01/server.112/e25789/memory.htm#CNCPT89169

Similar Messages

  • Writing Trace Info to and Opening an Excel File on command

    I am currently using a Read Traces (numeric) vi to collect values from Tags and output them to a XY Graph. Alongside the graph on my front panel, I would like a boolean control to command (when true) LV to write the data to a spreadsheet and open that spreadsheet so it appears on screen, ready for the user to view and then save the excel file where he/she would like.
    Is this possible? I am a little unsure what File I/O functions I need in order to achieve this? I have tried using the "Write Traces to Spreadsheet vi" available in the DSC module, but haven’t had much success. I have attached my code to show you how far I have got.
    Any help with this problem will be very much appreciated.
    Thanks,
    Stuart Wilson
    Attachments:
    Writing Trace Info to Excel File.vi ‏77 KB

    Hi Stuart,
    I have written an example piece of code for you which has the basic functionaliy that you want.
    The example plots random data to a chart. When the boolean is pressed this data is written to a spread sheet file and Excel is opened to display this data.
    As it is a generic solution you need to replace certain items when you incorporate the structure into your code: Instead of writting the history data of a chart you can use the "write traces to spreadsheet.vi" to write the data. The automation of excel can then be used in the same way as in the example.
    There is also an example available in the "LabVIEW Example finder" called "Write Table to XL.vi". This example takes the data from a table and cell by cell inserts it into an excel speadsheet. Which the operator can then save from within excel. However, this method is not the most efficient way to get data into Excel.
    I hope this is helpful.
    Emma R
    NIUK & Ireland
    Attachments:
    SR_300720_Example.vi ‏68 KB

  • How to edit trace info FN_TRACE_GETINFO('1')

    Hello all,
    Do someone know how to edit trace info from query below, for example, I want to edit value of property from 2 to 4 for security reason, thanks so much
    select *  FROM ::FN_TRACE_GETINFO('1')
    traceid property value
    1    1    2
    1    2    C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\log_4.trc
    1    3    20
    1    4    NULL
    1    5    1

    1) You can import the data into a table  and edit there 
    select *  into #tmp FROM ::FN_TRACE_GETINFO('1')
    http://technet.microsoft.com/en-us/library/ms173875.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Debug/trace info from .c program.....

    Is there a way to capture debug info from a c file that was executed by teststand (dll adapter)? To be more clear....I have a dll that has a lot print to screen statements all over the place. I would like to be able to see those prints in somekind of trace or debug window while teststand is running.

    Hello Gregg,
    I assumed you are using printf commands in your code. As far as I know, if you are printing to the screen I don't think you can get it from TestStand. However, there are a couple of options.
    1. you may modify your code and write to a file intead of screen and read this file in a separate module that will be running in parallel to your sequence.
    2. you may create a panel in the CVI DLL and update your messages to a control. Also you may need to have an additional function in your DLL to be called to display the panel
    3. you may pass the sequence context to your DLL function and write the text messages to TestStand Variables and create additional functions to read and display this variables.
    4. You can use message boxes in your CVI
    code instead of printing to the screen
    Regards,
    Roberto Piacentini
    National Instruments
    Applications Engineer
    www.ni.com/support

  • Better stack trace info

    Hi,
    Say you get a null pointer exception when you run your prog like this:
    java.lang.NullPointerException
    at com.blah.SomeClass.start(SomeClass.java:10)
    if line 10 is like this:
    doSomething(obj1.toString(), obj2.toString);
    You can't tell from the stack trace if obj1 is null or obj2 or both.
    I think it would be a good idea if the stack traces could show this sort of info (i.e which arg on line 10 is null, not just the line number).
    I know you can just debug it which is what I always do in such a case but this would speed things up.
    What do you think?
    Cheers,
    Jim

    I think it would be a good idea if the stack traces could show this sort of info (i.e which arg on
    line 10 is null, not just the line number).That would mean more debugging information.
    know you can just debug it which is what I always do in such a case but this would speed things up.You could also add your own checks:
    if (obj1 == null) throw new NullPointerException("obj1");
    if (obj2 == null) throw new NullPointerException("obj2");
    doSomething(obj1.toString(), obj2.toString);Or, also useful:
    assert obj1 != null;
    assert obj2 != null;
    doSomething(obj1.toString(), obj2.toString);Alternatively:
    String s1 = obj1.toString();
    String s2 = obj2.toString();
    doSomething(s1, s2);Better yet, in the case of Strings
    doSomething(String.valueOf(obj1),String.valueOf(obj2));

  • ORA-000060 (deadlock) and no alert/trace info

    oracle 9.2.0.5 running on SunOs 5.9
    I am getting very seldom (2-5 per month) these errors.
    1) the alert file shows this:
    ORA-000060: Deadlock detected. More info in file xxx.trc
    2) after running "tkprof" on the trace file I see only this:
    1 session in tracefile.
    0 user SQL statements in trace file.
    0 internal SQL statements in trace file.
    0 SQL statements in trace file.
    0 unique SQL statements in trace file.
    I tried most of "tkprof" options but still there is no info on what caused the deadlock. any ideas ?

    if you open the trace file in an editor, what do you
    see?this works! the TRC file actually shows me the 2 sessions that contended for the resource. I never realized you could open the TRC file directly, I was led to believe you needed to "tkprof" to be able to browse it.
    me bad, and lots of thanks to you!

  • All mailboxes offline after idle time (with network trace info)

    When I return to my computer after some time away—enough time that it has presumably been asleep—all my email accounts are offline. Clicking the triangle-bang icon and "Take all accounts online" does nothing.
    Opening connection doctor, all the outgoing servers (SMTP) are green. All the incoming servers (IMAP, including both gmail and iCloud) are red.
    Every account is configured to use IMAP/SSL on port 993 for incoming Mail. I can telnet to imap.gmail.com on port 993 and get a connection.
    As root in a Terminal window, I set up a tcpdump packet capture on the correct interface for all traffic to or from TCP port 993, then I click "Check Again" in the connection doctor. No packets are sent to any IMAP server, with one exception: the (non-google, non-apple) account that is configured as "deactivated" is tested.
    I started a new tcpdump, this time capture packets with "dst net 74", that being the network the gmail servers are on. Clicking "Check Again" again, again nothing. I am not looking at the wrong network interface. There are not existing connections to port 993 in "netstat -anf inet." My subnet does not support IPv6, and the Mac has only the link-local IPv6 address configured.
    And always, quitting Mail and starting it again brings the accounts back online, and their TCP traffic on port 993 is visible with tcpdump.

    More information: When all the mailboxes go offline, there's data on the read queue of several of the TCP sockets. It stays there indefinitely, not read by the threads that have the sockets open.
    $ netstat -an | fgrep .993
    tcp4      39      0  192.168.1.68.56103     74.125.142.108.993     ESTABLISHED
    tcp4      38      0  192.168.1.68.56093     74.125.142.109.993     ESTABLISHED
    tcp4       0      0  192.168.1.68.56092     17.158.8.60.993        ESTABLISHED
    tcp4      40      0  192.168.1.68.56091     74.125.142.109.993     ESTABLISHED
    tcp4      40      0  192.168.1.68.56089     74.125.142.109.993     ESTABLISHED
    tcp4       0      0  192.168.1.68.56088     17.158.8.60.993        ESTABLISHED
    tcp4       0      0  192.168.1.68.56086     74.125.142.108.993     ESTABLISHED
    tcp4       0      0  192.168.1.68.56036     74.125.142.109.993     ESTABLISHED
    tcp4       0      0  192.168.1.68.56032     74.125.142.109.993     ESTABLISHED
    tcp4       0      0  192.168.1.68.56030     74.125.142.109.993     ESTABLISHED
    tcp4       0      0  192.168.1.68.56028     17.158.8.23.993        ESTABLISHED
    tcp4       0      0  192.168.1.68.56026     74.125.142.109.993     ESTABLISHED
    tcp4       0      0  192.168.1.68.56024     74.125.142.109.993     ESTABLISHED
    tcp4       0      0  192.168.1.68.56023     17.158.8.60.993        ESTABLISHED
    tcp4      80      0  192.168.1.68.56018     74.125.142.109.993     ESTABLISHED
    tcp4     136      0  192.168.1.68.56017     74.125.142.109.993     ESTABLISHED

  • Use VISA to Query Spectrum Analyzer trace info in integer 32 format

    got error User Buffer trying to use viVQuery

    That's right, formatted I/O in VB really doesn't work well. If you need formatted I/O, you have 3 choices:
    1) Buy and use our Tools for Visual Basic (formerly known as ComponentWorks). This has wonderful data formatting capabilities in an ActiveX control.
    2) Make your own wrappers for viVScanf or viVQueryf for each type of data formatting you need. For example, to read in 1 long integer it might be:
    Declare Function myVScanfSingleLong Lib "VISA32.DLL" Alias "#280" (ByVal vi As Long, ByVal readFmt As String, singleNumericParam As Long) As Long
    Admittedly, our documentation does say that these functions are available from VB, and while it is possible if you do it this way, we probably shouldn't claim that these functions "work".
    3) Write a separate DLL in C and have it do the formatting part, and let it export a well-known API with data types acceptable to VB.
    Sorry, but that's just a technical shortcoming of VB.
    Dan Mondrik

  • Write trace to Citadel

    I'm trying to take spreadsheet data and write it to individual traces inside DSC2012 to a Citadel 5 database. I keep getting an error -1967386570 Data has Back in time timestamp.
    Searching the NI website, back in 2006 there was a way to do this with a vi server.
    http://www.ni.com/white-paper/3485/en
    Is this still possible with the current DSC version?
    From the 2012 DSC help file.
    Writing a Value to a Citadel Trace (DSC Module)
    You can use the Write Trace VI to append a data point to a Citadel trace. Complete the following steps to write a value:
    Add the Write Trace VI on the block diagram.
     Add  Find
    Wire the trace reference output of the Open Trace VI to the trace referenceinput of the Write Trace VI.
    Wire the value and timestamp inputs of the Write Trace VI. Leave the timestamp input unwired to use the current time. The Write Trace VI fails if the timestamp input is earlier than the timestamp of the last point written to the trace. You can determine the timestamp of the last point in the trace using the Get Trace Info VI.
    So, is it no longer possible to write old data into Citadel traces?
    I also saw some posts about a registry key for Citadel 5 about server timestamps, but I don't see a registry key where that note says it should be located.
    Logging Back-in-Time
    Most data logging systems generate ever-increasing time stamps. However, if you manually set the system clock back-in-time, or if an automatic time synchronization service resets the system clock during logging, a back-in-time data point might be logged. Citadel handles this case in two ways.
    When a point is logged back-in-time, Citadel checks to see if the difference between the point time stamp and the last time stamp in the trace is less than the larger of the global back-in-time tolerance and the time precision of the subtrace. If the time is within the tolerance, Citadel ignores the difference and logs the point using the last time stamp in the trace. For example, the Shared Variable Engine in LabVIEW 8.0 and later uses a tolerance level of 10 seconds. Thus, if the system clock is set backwards up to ten seconds from the previous time stamp, a value is logged in the database on a data change, but the time stamp is set equal to the previous logged point. If the time is set backwards farther than 10 seconds, Citadel creates a new subtrace and begins logging from that time stamp.
    Beginning with LabVIEW DSC 8.0, you can define a global back-in-time tolerance in the system registry. Earlier versions of DSC or Lookout always log back-in-time points. Use the backInTimeToleranceMS key located in the HKLM\SOFTWARE\National Instruments\Citadel\5.0 directory. Specify this value in milliseconds. The default value is 0, which indicates no global tolerance.
    This key doesn't exist on my system.
    This link from July 2012 seems to mention that it is still possible to use custom timestamps.
    http://www.ni.com/white-paper/6579/en
    Citadel Writing API
    The DSC Module 8.0 and later include an API for writing data directly to a Citadel trace. This API is useful to perform the following operations:
    · Implement a data redundancy system for LabVIEW Real-Time targets.
    · Record data in a Citadel trace faster than can be achieved with a shared variable.
    · Write trace data using custom time stamps.
    The Citadel writing API inserts trace data point-by-point with either user-specified or server-generated time stamps.
    Is there some more documentation out there that explains this process a bit better?

    Hi unclebump,
    I have been trying to determine what the best course of action would be and I think you need to move the data to a new trace. What I am thinking is for you to open a reference to the trace as it currently exists. Then you will need to read in all the data of that trace. While you read that trace you should also be reading in the data from your file. Once you have both sets of data you will need to iterate over all the data and merge the two sets of data based off their timestamps. The VIs to accomplish this should all exist in the DSC Palette >> Historical or DSC >> Historical >> Database Writing. There is a writing example in the example finder that is called Database Direct Write Demo that would probably be worth looking at. The write trace help says, "
    This VI returns an error if you try to write a point with a timestamp that is earlier than the timestamp of the last point written to the trace." which means that if your data is merged and written in order you should not get this error.
    Hope this helps and let me know if you have any questions.
    Patrick H | National Instruments | Software Engineer

  • Error loading Indesign CS4 Debug plug-in. Sxs trace attached

    When I try to open Indesign Debug after placing my plugins in the plug in folder, I get the following Sxs trace:
    INFO: Parsing Manifest File C:\Program Files\Adobe\Adobe InDesign CS4 Debug\Plug-ins\IPG3EXPORTER.PLN.
        INFO: Manifest Definition Identity is (null).
         INFO: Reference:  Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1  fc8b3b9a1e18e3b",type="win32",version="8.0.50727.4053"
    INFO:  Resolving reference  Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1  fc8b3b9a1e18e3b",type="win32",version="8.0.50727.4053".
        INFO: Resolving reference for ProcessorArchitecture x86.
            INFO: Resolving reference for culture Neutral.
                INFO: Applying Binding Policy.
                     INFO: Find publisher policy at  C:\Windows\WinSxS\manifests\x86_policy.8.0.microsoft.vc80.debugcrt_1f  c8b3b9a1e18e3b_8.0.50727.762_none_6d78e2ee5a7eb616.manifest
                    INFO: No binding policy redirect found.
                INFO: Begin assembly probing.
                    INFO: Did not find the assembly in WinSxS.
                     INFO: Attempt to probe manifest at  C:\Windows\assembly\GAC_32\Microsoft.VC80.DebugCRT\8.0.50727.4053__1f  c8b3b9a1e18e3b\Microsoft.VC80.DebugCRT.DLL.
                    INFO:  Attempt to probe manifest at C:\Program Files\Adobe\Adobe InDesign CS4  Debug\Plug-ins\Microsoft.VC80.DebugCRT.DLL.
                    INFO:  Attempt to probe manifest at C:\Program Files\Adobe\Adobe InDesign CS4  Debug\Plug-ins\Microsoft.VC80.DebugCRT.MANIFEST.
                     INFO: Attempt to probe manifest at C:\Program Files\Adobe\Adobe InDesign  CS4 Debug\Plug-ins\Microsoft.VC80.DebugCRT\Microsoft.VC80.DebugCRT.DLL.
                     INFO: Attempt to probe manifest at C:\Program Files\Adobe\Adobe  InDesign CS4  Debug\Plug-ins\Microsoft.VC80.DebugCRT\Microsoft.VC80.DebugCRT.MANIFE  ST.
                    INFO: Did not find manifest for culture Neutral.
                INFO: End assembly probing.
    Any ideas? It looks like the manifest is null, whatever that means.

    I'm guessing there is a mismatch between:
         x86_policy.8.0.microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.762_none_6d78e2ee5a7eb6 16.manifest
    and
         x86_policy.8.0.microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_none_3825408a574a21c b.manifest
    is your plugin built on the same machine as you trying to launch InDesign Debug? is InDesign starting without your plugin?
    Regards
    Bartek

  • XSJS Tracing - Trace files do not show trace levels other than 'error'

    Hi!
    I'm doing some experiments with server side javascript tracing on Hana. I created a small xsjs file that searches for some parameters on the web request (first name, last name and email) so I can call a DB procedure later. As I wanted to make sure that client data was arriving to the server properly, I added some trace calls using $.trace as you can see in the snipped below.
    After some time I noticed that just $.trace.error calls were added to xsengine*trc trace files. In other words, information, debug and warnings were not being included on the trace files.
    $.trace.info("INFO: Register_user.xsjs called");
    $.trace.error("ERROR: Register_user.xsjs called");
    if($.request.method === $.net.http.POST || $.request.method === $.net.http.GET) {
        var first_name = $.request.parameters.get("first_name");
        var last_name = $.request.parameters.get("last_name");
        var email = $.request.parameters.get("email");
        $.trace.error("ERROR: First Name:" + first_name);
        $.trace.error("ERROR: Last Name:" + last_name);
        $.trace.error("ERROR: Email:" + email);
        $.trace.warning("WARNING: First Name:" + first_name);
        $.trace.warning("WARNING: Last Name:" + last_name);
        $.trace.warning("WARNING: Email:" + email);
        // send response
        $.response.contentType = "application/json";
        $.response.status = $.net.http.OK;
        $.response.setBody(" { \"message\" : \"User registered successfully\"} ");
      } else {
        // unsupported method
      $.trace.error("ERROR: Method was not POST");
        $.response.status = $.net.http.INTERNAL_SERVER_ERROR;
    A small piece of a xsengine*.trc file is shown below.
    [4940]{-1}[-1/-1] 2014-09-08 20:37:10.453384 e xsa: demo.user_c register_user.xsjs(00026) : ERROR: Register_user.xsjs called
    [4940]{-1}[-1/-1] 2014-09-08 20:37:10.453690 e xsa: demo.user_c register_user.xsjs(00037) : ERROR: First Name:war
    [4940]{-1}[-1/-1] 2014-09-08 20:37:10.453710 e xsa: demo.user_c register_user.xsjs(00038) : ERROR: Last Name:ning
    [4940]{-1}[-1/-1] 2014-09-08 20:37:10.453796 e xsa: demo.user_c register_user.xsjs(00039) : ERROR: Email:[email protected]
    [4940]{-1}[-1/-1] 2014-09-08 20:58:21.854254 e xsa: demo.user_c register_user.xsjs(00024) : ERROR: request path: /demo/user_creation/logic/register_user.xsjs
    [4940]{-1}[-1/-1] 2014-09-08 20:58:21.854285 e xsa: demo.user_c register_user.xsjs(00026) : ERROR: Register_user.xsjs called
    Here are my doubts:
    Is there any standard filter for trace calls (which for example would show just error messages as default)? If there is, where to change it?
    Are there separate trace files for each trace level?
    Looking at the beginning of each row on the trace file, are the numbers from the left side of the timestamp somehow relevant to determine what kind of trace leve is shown? What do they mean? (the sequence of [4635]{-1}[-1/-1] )
    Related (and useful) links which couldn't solve the problem:
    How to print from XSJS to Console
    JSDoc: Namespace: trace
    I'm using:
    Cloudshare (SAP HANA SPS6 server)
    Hana Studio Version: 1.80.3
    Thanks for the support!

    Hi Fabio,
    You need to do some configurations. Please have a look at Trace Server-Side JavaScript Applications - SAP HANA Developer Guide - SAP Library and View XS JavaScript Application Trace Files - SAP HANA Developer Guide - SAP Library
    Best regards,
    Wenjun

  • Time required for getting DataSet info

    I'm interested in hearing about what sort of times others have encountered in getting output from the "List Data Set Runs" and "Read Data Set Run by Id" vis.
    It's my first use of datasets and the information is fine, but with 500 datasets it is taking ~30 sec for the above VIs to do their thing (LVDSC 6.1, P4). The time required seems to be a very nice linear function of the nb. of datasets so when there's the 2500-5000 datasets I expect to have in my database, it'll be ~3 to 6 minutes. This will really mess up my intended use of them in a quick user interface.
    If it makes any difference, the number of tags in my dataset is 0 (zero). I'm just interested in the start time, end time, and description.
    TIA.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

    Hi Donald,
    I can't give you comparable numbers as I am on DSC 7.0. But here's something that might be of interest to you:
    1. If all that you are interested in is the Start time, End time, (of the runs, and not traces), and the Description, then you can make-do with just the 'List Data Set Runs' VI. This VI returns this info' for all the Runs in a given DataSet. You would unbundle the 'data runs' cluster to get this info'. You do not need to use the 'Read Data Set Run by ID' VI.
    The 'Read Data Set Run by ID' VI internally basically looks-up the run, if found, gets the trace info' for each tag in that run. These are expensive operations by their nature.
    Also, normally, the Description remains the same for Runs within a DataSet. If thi
    s is the case with you, you just read the Description from the first Run. (Of course, it's very much possible that the Description changes from run to run. In that case you got to read all).
    2. In DSC 7.0, my 'List Data Set Runs' VI takes about 4 seconds to return 500 runs. And about 7 seconds for 1000 runs. I have one tag in my DataSet but no description. This is way faster than what you are seeing (plus my test machine is a crappy 450MHz P3). I know DataSets and Citadel in general has improved considerably in DSC 7.0. DataSets are now built into Citadel. You may want to get an Eval copy of 7.0 and see if the difference is as significant as we're seeing here.
    Hope this helps. Please write back if you want to discuss more.
    Regards,
    Khalid

  • Dbms_monitor.session_trace_enable does not generate the trace file

    hi All,
    i'm trying the example from Tom Kyte's <<expert oracle database architecture>>, after runnning the java code using dbms_monitor.session_trace_enable, the trace file for the session can't be found in user_dump_dest, could anyone help explain. oracle version is 10.2.0.1.0 on RHEL 5. thanks.
    [oracle@CS-RHEL chapter09]$ cat perftest.java
    import java.sql.*;
    import oracle.jdbc.OracleDriver;
    import java.util.Date;
    public class perftest
      public static void main (String arr[]) throws Exception
        DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
        Connection con = DriverManager.getConnection
              ("jdbc:oracle:thin:@127.0.0.1:1522:cs10g",
                "sid", "sid");
        Integer iters = new Integer(arr[0]);
        Integer commitCnt = new Integer(arr[1]);
        con.setAutoCommit(false);
        doInserts( con, 1, 1 );
        Statement stmt = con.createStatement ();
        stmt.execute
        ( "begin dbms_monitor.session_trace_enable(waits=>TRUE); end;" );
        doInserts( con, iters.intValue(), commitCnt.intValue() );
        doInserts( con, iters.intValue(), iters.intValue() );
        con.commit();
        con.close();
      static void doInserts(Connection con, int count, int commitCount )
      throws Exception
        PreparedStatement ps =
           con.prepareStatement
           ("insert into test " +
            "(id, code, descr, insert_user, insert_date)"
            + " values (?,?,?, user, sysdate)");
        PreparedStatement commit =
           con.prepareStatement
           ("begin /* commit size = " + commitCount + " */ commit; end;" );
        int  rowcnt = 0;
        int  committed = 0;
        long start = new Date().getTime();
        for (int i = 0; i < count; i++ )
          ps.setInt(1,i);
          ps.setString(2,"PS - code" + i);
          ps.setString(3,"PS - desc" + i);
          ps.executeUpdate();
          rowcnt++;
          if ( rowcnt == commitCount )
            commit.executeUpdate();
            rowcnt = 0;
            committed++;
        con.commit();
        long end = new Date().getTime();
        System.out.println
        ("pstatement " + count + " times in " +
         (end - start) + " milli seconds committed = "+committed);
    }run the java class
    [oracle@CS-RHEL chapter09]$ java -cp .:./ojdbc14.jar perftest 1000 1
    pstatement 1 times in 5 milli seconds committed = 1
    pstatement 1000 times in 2255 milli seconds committed = 1000
    pstatement 1000 times in 509 milli seconds committed = 1

    hi virendra.k and Kecskemethy,
    thanks for your help. believe i find the arnswer.
    1. i used shared server connection. i can find the trace info in the backgroup_dump_dest, in the files: cs10g_s000_17467.trc and cs10g_s001_17469.trc
    Ref:http://www.dbspecialists.com/files/presentations/tracing_ind_sessions.html
    First, rather than using DBMS_MONITOR.CLIENT_ID_TRACE_ENABLE, we use DBMS_MONITOR.SESSION_TRACE_ENABLE. This can be run either by the session itself,
    or by another session (specifying the SID of the session to be traced). The tracing output will be in the instance’s background_dump_dest directory,
    rather than the user_dump_dest. And then you use trcsess with the session_id option, where session ID is actually the SID.SERIAL# of the session
    (from v$session). Again you get a consolidated trace file containing just the activity of the desired session.2. after change to dedicated server, the trace file is generated in user_dump_dest now.
    sid@CS10G> show parameter trace_enable
    NAME                                 TYPE        VALUE
    trace_enabled                        boolean     TRUE
    sid@CS10G> show parameter shared_servers
    NAME                                 TYPE        VALUE
    max_shared_servers                   integer
    shared_servers                       integer     10
    sid@CS10G> alter system set shared_servers=0
      2  ;
    System altered.
    [oracle@CS-RHEL udump]$ pwd
    /home/u02/app/oracle/product/11.1.0/db_1/admin/cs10g/udump
    [oracle@CS-RHEL udump]$ tail -25 cs10g_ora_22313.trc
    WAIT #8: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901405248
    WAIT #8: nam='SQL*Net message from client' ela= 151 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901405433
    =====================
    PARSING IN CURSOR #9 len=43 dep=0 uid=61 oct=47 lid=61 tim=1220152901405586 hv=1042574845 ad='3ace843c'
    begin /* commit size = 1000 */ commit; end;
    END OF STMT
    PARSE #9:c=0,e=99,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=1220152901405582
    =====================
    PARSING IN CURSOR #10 len=6 dep=1 uid=61 oct=44 lid=61 tim=1220152901405781 hv=255718823 ad='0'
    COMMIT
    END OF STMT
    PARSE #10:c=0,e=13,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=0,tim=1220152901405776
    XCTEND rlbk=0, rd_only=0
    EXEC #10:c=0,e=146,p=0,cr=0,cu=1,mis=0,r=0,dep=1,og=0,tim=1220152901406000
    EXEC #9:c=999,e=396,p=0,cr=0,cu=1,mis=0,r=1,dep=0,og=1,tim=1220152901406082
    WAIT #9: nam='log file sync' ela= 3234 buffer#=5459 p2=0 p3=0 obj#=-1 tim=1220152901409385
    WAIT #9: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901409450
    WAIT #9: nam='SQL*Net message from client' ela= 142 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901409633
    XCTEND rlbk=0, rd_only=1
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901409735
    WAIT #0: nam='SQL*Net message from client' ela= 283 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901410043
    XCTEND rlbk=0, rd_only=1
    WAIT #0: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901410146
    WAIT #0: nam='SQL*Net message from client' ela= 316 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1220152901410489
    XCTEND rlbk=0, rd_only=1

  • Trace manager in SUN DIM

    We have the SUN IDM running on a WLS 8.1. The application we are developing spits log messages to a log file (log.txt). They are all "System.out" statements. Instead of "System.out", I want to use the TraceManager provided by the IDM. The "trace" method writes messages to "log.txt" when I use the method "trace.info(String methodName, String message)". I can see the "message" in "log.txt". But when I use other methods provided by "trace" class such as "entry(String, String)", "variable(String, String)" etc..I dont see those messages in my log file. "trace" works with "info" method, but doesnt work with other methods. What is that I should do to get those messages printed to my log file?
    Thanks,
    Raghav

    The user settings are part of the user directory. Can u try running the ide with a fresh userdir?
    Pl. ref: http://blogs.sun.com/karthikr/entry/jse_directories

  • 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

Maybe you are looking for

  • Is Bridge CC, Edge Code CC, Scout CC comes free with Adobe CC and Illustrator CC??

    I have just bought Adobe Photoshop CC and Adobe Illustrator annual subscription both single user. Now after I downloaded the installer CreativeCloudSet-Up.EXE I noticed that Photoshop and Illustrator has a "INSTALL" buttons.. other application like A

  • Using and syncing Podcast app in iOS8

    Hi, I just finished upgrading to iOS8 on my iphone and now my podcasts aren't syncing.  In the past, with iOS7 and before, I would use itunes on my computer to download podcasts I wanted to listen to.  I would then sync them to my iphone manually as

  • System Copy of XI 6.40 ABAP+JAVA

    Hi In our XI landscape, we have XI development server and XI production server. We would like to create the XI Quality instance for testing. Also we want to refresh XI devepolment server from XI production server. Here XI 3.00 is installed on Unix pl

  • Error while installing 10g on oracle unbreakable linux

    hi all Oracle 10.2.0.1 oracle unbreakable linux I got the following error while installing oracle database 10g on oracle unbreakable linux when my installer peforming product specific prerequiste check i got the warning checking operating system requ

  • Conditional display of "Custom" Buttons in Portal Forms

    Could someone tell me if the following is possible, and briefly explain the steps to a beginner in Portal (but reasonably familiar with PL/SQL): Problem - How to display "Custom Buttons" conditionally Example - a) Assume you have a certain record ("p