Execution time difference between Statspack and DBM_Monitor trace

Hi Everyone,
We noticed that output of query execution time is quite differ between statspack and session tracing (DBMS_MONITOR) report. The query execution time in Statspack was 1402 sec and in session trace file was 312.25 Sec. FYI database version is 11.2.0.3 which is installed on platform OL 5.8
Both of the following reports (Staspack/tracing) was executed on same system and at the same time. Could you suggest why execution time is differ in staspack and session tracing?
Staspack execution time :-
Elapsed Elap per CPU Old
Time (s) Executions Exec (s) %Total Time (s) Physical Reads Hash Value
1402.50 1 1402.50 9.1 53.92 256,142 3247794574
select * from ( select * from ( select resourcecontentslocati
on,isprotocolname,ismimecontenttype,indexedmetatext,objectid,met
atext,valueaddxml,resourcetype,resourceviewedtime,iscmaresultid,
resourcelastviewedbyuser,issequencenumber,nvl(length(contents),0
Session tracing time:-
call count cpu elapsed disk query current rows
Parse 1 10.58 256.44 43364 153091 0 0
Execute 1 0.01 0.08 0 0 0 0
Fetch 143 2.09 55.72 25440 32978 0 1000
total 145 12.69 312.25 68804 186069 0 1000
Thanks
Rajdeep

Hi,
First of all, please read the [url https://wikis.oracle.com/display/Forums/Forums+FAQ]FAQ page and find out how to use the code tags to format your output properly so that it's readable.
I don't want to work out the stats formatting but I'd guess that if you ran the query first time and the data was not cached, it would be slower than the 2nd query when it was cached. The stats should confirm this so please format them so we can see it properly.
Rob

Similar Messages

  • Execution time difference between SELECT & UPDATE statement in JDBC Sender.

    Hi Experts,
    In my scenario, I have used the JDBC Sender Adapter with the SELECT and UPDATE statement.
    Now the problem is in between the execution of Select and update statement, few more entries are coming in the same DB Table.
    So result of this is updation take place for those entries which are not even picked up by the select statement.
    Can we avoid this execution time difference between the SELECT & UPDATE statemet on JDBC Sender side???
    Thanks & Regards
    Jagesh

    Hi
    Use serializable option in additional parameters, now all new entries would also be updated.

  • Time differences between camera and iMovie

    Hi,
    When I import footage from my Mini-DV camera into iMovie I am seeing a difference between the time displayed on the tape and time displayed in iMovie. The camera says 48 seconds while iMovie says 44 seconds. I thought that it might be related to the framerate of the video in iMovie, but I have changed this to 25 fps which matches the video camera and am still seeing a different time. The framerate needs to be perfect as the footage is going to be shown side-by-side with a animated graph which builds with time.
    Does anyone have any idea what could cause this time difference?
    Thanks

    < scratching head > we had something about a NTSC/PAL issue.. hmm.. ?
    if possible, open an existing PAL project (window titles says DV-PAL), save it under a diff. name, import into that project, delete the not wanted parts..
    another option is, quit iMovie, delete ~/Library/Preferences any com.apple.iMovie.plist file.. relaunch iM.. that 'resets' iM... sometimes, it starts to stumble..

  • Time difference between iPhone and iMac

    I have both iPhone and iMac set to the same time zone and time. However, whatever iCal entries I make, there is a 9 hour difference between the two (iPhone being 9 hours behinf iMac).. Obviously, I am missing some setup somewhere but I truly cannot figure it out.

    Sorry for hasty posting. Deep in the setup, under Mail, Contacts, Calendar, the Calendar was set to Cupertino and I am in Prague. That is why, stupid me ...

  • Time difference between physical and logical standby

    Hi,
    I have just been tasked on getting some info and setting up dataguard for some users for read-only/reporting purpose.
    The 3 questions I am being asked are:
    1. What is the time difference in applying changes from primary to physical standby compare to logical standby
    2. What is the overhead maintenance of having a standby database?
    3.What latency is involved?
    I will be glad to have your input on this.
    Thanks

    Hi,
    Physical Standy where its a read only DB.
    Logs are applied.
    Logical Standy where it can be Read / Write DB and the logs are applied in terms of SQL Statements.
    Thanks & Regards,
    Pavan Kumar N

  • Configuration Fails - Time Difference Between SA and SSO

    I know this is going to be a light-bulb moment for me but I haven't been able to figure it out yet.  I'm configuring SA and at the vCenter SSO credentials page.  I put in the credentials and get the following error:
    Installation aborted - could not authenticate to vCenter Single Sign On due to time difference.  Please synchronize the clocks of Support Assistant Virtual Appliance and vCenter Single Sign-On server and retry the operation.
    I changed the timezone for the SA appliance to match that of our vCenter server and I'm still getting that error.  I noticed that the time is off by 7 hours on the appliance so I tried to trick it by setting the timezone to somewhere in Europe (which then showed the same time as vCenter), but it still failed.  Any assistance would be greatly appreciated.

    Here is what I have found to critical touch point when it comes to time and VAs
    -:  If you have AD.... ensure that the PDC\DC is pointing to a NTP source
    w32tm /config /manualpeerlist:<fqdn or IP ntp server> /reliable:yes /update
    -: ALL your ESXi server MUST have a NTP...make sure its the same at the AD PDC\DC.  The ESXi server may take 10mins to 15mins
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2012069
    -: Configure NTP on the VA

  • Time differences between ical and iphone

    When syncing ical to iphone i have a time difference of 9 hours. (dates on the iphone are always 9 hours earlier) No matter on which device the entry was made.
    Time zone is set to Berlin, Germany on my iphone as well as on my G5.
    Same thing is happening when syncing the iphone with my google calendar.
    Any suggestions?

    A restore of my iphone solved my problem.

  • Response time difference between copy and original

    I have make an export of my database like that :
    EXP system/manager@mybase owner=myowner file=exp_mybase_myowner.dmp
    and an import in new session (on same server):
    IMP system/manager@mybase2 full=y file=exp_mybase_myowner.dmp
    To increase performance of my two databases, i have drop all indexs and recreate them.
    But, response time is significantly different between databases.
    How can i solve this problem ?

    1. Analyze all the tables that are used in your query by using command:
    Analyze table <table_name> compute statistics;
    You can alsp use package DBMS_STATS.GATHER_DATABASE_STATS to calculate the statistics for all object in DB.
    2. Have you checked the DB_BLOCK_SIZE for both the DB? Is it same? Command "SHOW PARAMETER DB_BLOCK
    4. Is the SGA size same for both the DB? Command "SHOW SGA"
    3. Was there sufficient RAM to create the SGA? I hope you are not using SWAP space for the SGA

  • One hour time difference between Palm and Exchange calendar items

    Calendar items on Exchange and Palm are off by one hour.
    Exchange server, desktop PC and Palm are all set to PST with the same time. Versamail account on Palm has been deleted and rebuilt.
    See screen shots at http://picasaweb.google.com/lh/photo/kPKBDS28rhdVsextLM1PPQ?feat=directlink
    What is interesting is the appointments entered in Outlook show up on the Palm one hour early however they show the correct time in (parenthises) so the Palm seems to be somewhat aware of the problem.
    This same issue occurs on different Palm T/X 's with different Outlook accounts.
    Any suggestions are welcome
    Post relates to: Palm TX
    This question was solved.
    View Solution.

    You need this update:
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=9306
    Download
    DSTUpdater.zip (0.01MB)
    Double-click the downloaded file to decompress it. Your computer will unzip the file to a folder containing several individual files.
    Message Edited by IrreducibleM31 on 03-26-2009 05:12 PM

  • Page load time differences between IE and Firefox

    Hello all,
    I have a problem with page loading time in IE 8. My page contains tabular form, classic report and some other items. I use some javascript code(placed in HTLM Header section) and also dynamic actions. When I try to display the page in IE I have to wait for 40 seconds (100 rows in tabular form). I realized that the performance is dependent on the number of displayed rows in the tabular form. But decrease the number of visible rows, using pagination, is not an option, because all needed rows should be visible for the users. During the tests I have tried to remove all the JS code and disable all the dynamic action, but the loading time was more or less the same.
    When I try to run the same page in FireFox then it is displayed in 4 seconds!
    I have already try to search some tips or advices how to speed up the page loading, but only what I have found out is, that every web browser is different. The javascript is handled differently, page rendering is done differently and so on.
    Maybe there is something what I have missed, and you experts can help me. Is there anything general what I should check or change to speed up the loading time in IE?
    Thanks in advance!
    Jiri
    APEX v. 4.2.1.00.08
    IE 8.0.7600.16358
    FF 19.0.2

    Thanks Denes for your reply.
    I use HttpWatch tool to measure the loading times. Reports are mostly the same for IE and FF. I can see from the report, there is three times shown error 404 Not Found for the items below.
    http://......./images/sRegion-Body.png
    http://......./images/sRegion-Bottom.png
    http://......./images/sReportBG-Standard.png
    The last action which caused 404 error started 2 seconds after the page was asked to refresh. The next action http://......../i/libraries/jquery-ui/1.8.22/ui/i18n/oracle/jquery.ui.datepicker-cs.js started after 38 seconds (hanging in the same place for 36 seconds). Does it mean that the problem is caused by http://......./images/sReportBG-Standard.png action which returns 404 error?
    How can I add the missing images?
    -Jiri

  • Time difference between the Identity system and Access System: OAM

    I was installing OAM. Performed the below steps.
    -installed identity server
    -installed webpass
    -setup of identity system console
    -installed policy manager
    -setup of access system console
    The above steps were successfull. Then when i was logging into Access system console, i am getting the below error:
    Error:there was a problem obtaining the userid. One possible reason for this is a time difference between the Identity system and Access systems (Policy Manager and Access system console).+
    The Identity Server, WebPass and Policy Manager are installed on the same machine.
    Userdata repository: OVD 10.1.4.3
    Policy and Config Data Repository: OID 11.1.1.3
    OAM: 10.1.4.3
    Windows2008 - 64bit
    Found document in metalink similar to this issue. suggested to change ldapmaxofreties. but didn't help.
    Any idea on this error. Please Advise.
    Thanks in advance.

    Try this::
    Check Time Difference Between Identity and Access Manager Systems
    Check the logfile in the Access Manager install directory. The default location is <$AMinstall_dir>/access/oblix/logs/oblogfile.
    If the file exists and it contains following line "skew = slack = " that means the Identity and Access Manager Web Servers are on different machines and have not synchronized time within a minute.
    Either synchronize times between the two machines within a minute's accuracy or you can increase the slack by modifying these two files: <$AMinstall_dir>/access/oblix/apps/common/bin/oblixbaseparams.lst: loginslack: <$IMinstall_dir>/identity/oblix/apps/common/bin/oblixbaseparams.xml: loginslack: where numofseconds is more than skew found in the oblogfile.
    For example, if you have following line in oblogfile "skew = 121 slack = 60", set numofseconds in the two parameter files to 130. After doing this, Stop the Identity Manager Web Server. Then stop the Identity Server. Start the Identity Server.
    Then start the Identity Manager Web Server. Start a new browser session and see if you get the same error.

  • Time difference between Mac & Windows

    I have just successfully installed Windows XP SP2 using boot camp. But the clock in Mac and Windows are always different, for example, if i am running Mac and time is 4.00 p.m; then I restart in Windows, the time in Windows now is 8.00p.m. If then I changed time in Windows and restart again in Mac, the clock in Mac is 12.00p.m (4 hours late). I have tried several times but it stays the same. Is there anyone having the same problem as mine?
    ah, 1 more small thing, when using Windows, which button in Mac keyboard is for printscreen? In the manual for Bootcamp, it is said that using fn+f11 but it doesn't work???

    autumn_fail:
    For Print Screen try using Fn-Shift-F11 combination. Also read *[_This Article_|http://support.apple.com/kb/HT1220]*.
    As far as your question on the Time difference between Windows and OSx, this is a known issue with Windows and OSx running on a mac. This has to do with how both Operating Systems set the time. One way to handle this is to run time preferences as soon as you log into OSx (after logging out of Windows). Its a pain nonetheless.
    Please *[_Click Here_|http://discussions.apple.com/thread.jspa?messageID=7965906&#7965906]* for more information on this subject.
    Axel F.

  • How to measure time difference between zero crossing of a sine wave and rise time of a pulse on a same graph?

    I have a 50Hz sine wave and a pulse signal on a same graph. The phase difference between two is between 0-90 degrees.
    Now I need to calculate the time difference between (when the sine wave crosses zero volts) and (when the pulse rises). The frequency will stay approximately same for both signals.
    The application is for a three phase generator. In simple words, when the time difference between the zero-crossing of sine wave and the pulse rises increases, that means that the load on the generator has increases.
    I am a beginner user of LabView (version 9, 2009), maybe it is a very simple problem but I've been pulling my hair out for the last few days and coudln't figure anything out. Any help would be greatly appreciated. I am using DAQ USB-6008 to measure these voltages and pulse from the generator and a sensor
    I have attached a jpg (a graph that i just made with excel to explain). The time 't' is what I am trying to measure
    Cheers
    Awais 
    Message Edited by awais.h on 03-30-2010 11:20 PM
    Message Edited by awais.h on 03-30-2010 11:21 PM
    Solved!
    Go to Solution.

    Hi
    Thanks for the code but I'm afraid it won't work. Like you said the probability of choosing a value that is on both graphs may not happen. This is something that I would like the code to do automatically.
    But I did use the previous code posted and made some modifications to it and it seems to work perfectly. Now the next thing is to be able to get just that one value that tells you the first time difference.
    Here is what I get using that code.
    As you can see from the t Values. I only need the one that is highlighted. If there is a way to filter out the rest it would be great.
    I was thinking of a while loop and as soon as the value is higher than 3E-5 it would store the number and stop the loop, but I'm not too familiar with arrays in labview.
    Here is the the code modified.
    As you can see, it wasn't that big of a modification and it still is your code.
    I will keep trying.
    Thanks for the help
    Attachments:
    FinalShockSpeed.vi ‏55 KB

  • What is the difference between tkprof and explainplan

    Hi,
    what is the difference between tkprof and explainplan.

    Execution Plans and the EXPLAIN PLAN Statement
    Before the database server can execute a SQL statement, Oracle must first parse the statement and develop an execution plan. The execution plan is a task list of sorts that decomposes a potentially complex SQL operation into a series of basic data access operations. For example, a query against the dept table might have an execution plan that consists of an index lookup on the deptno index, followed by a table access by ROWID.
    The EXPLAIN PLAN statement allows you to submit a SQL statement to Oracle and have the database prepare the execution plan for the statement without actually executing it. The execution plan is made available to you in the form of rows inserted into a special table called a plan table. You may query the rows in the plan table using ordinary SELECT statements in order to see the steps of the execution plan for the statement you explained. You may keep multiple execution plans in the plan table by assigning each a unique statement_id. Or you may choose to delete the rows from the plan table after you are finished looking at the execution plan. You can also roll back an EXPLAIN PLAN statement in order to remove the execution plan from the plan table.
    The EXPLAIN PLAN statement runs very quickly, even if the statement being explained is a query that might run for hours. This is because the statement is simply parsed and its execution plan saved into the plan table. The actual statement is never executed by EXPLAIN PLAN. Along these same lines, if the statement being explained includes bind variables, the variables never need to actually be bound. The values that would be bound are not relevant since the statement is not actually executed.
    You don’t need any special system privileges in order to use the EXPLAIN PLAN statement. However, you do need to have INSERT privileges on the plan table, and you must have sufficient privileges to execute the statement you are trying to explain. The one difference is that in order to explain a statement that involves views, you must have privileges on all of the tables that make up the view. If you don’t, you’ll get an “ORA-01039: insufficient privileges on underlying objects of the view” error.
    The columns that make up the plan table are as follows:
    Name Null? Type
    STATEMENT_ID VARCHAR2(30)
    TIMESTAMP DATE
    REMARKS VARCHAR2(80)
    OPERATION VARCHAR2(30)
    OPTIONS VARCHAR2(30)
    OBJECT_NODE VARCHAR2(128)
    OBJECT_OWNER VARCHAR2(30)
    OBJECT_NAME VARCHAR2(30)
    OBJECT_INSTANCE NUMBER(38)
    OBJECT_TYPE VARCHAR2(30)
    OPTIMIZER VARCHAR2(255)
    SEARCH_COLUMNS NUMBER
    ID NUMBER(38)
    PARENT_ID NUMBER(38)
    POSITION NUMBER(38)
    COST NUMBER(38)
    CARDINALITY NUMBER(38)
    BYTES NUMBER(38)
    OTHER_TAG VARCHAR2(255)
    PARTITION_START VARCHAR2(255)
    PARTITION_STOP VARCHAR2(255)
    PARTITION_ID NUMBER(38)
    OTHER LONG
    DISTRIBUTION VARCHAR2(30)
    There are other ways to view execution plans besides issuing the EXPLAIN PLAN statement and querying the plan table. SQL*Plus can automatically display an execution plan after each statement is executed. Also, there are many GUI tools available that allow you to click on a SQL statement in the shared pool and view its execution plan. In addition, TKPROF can optionally include execution plans in its reports as well.
    Trace Files and the TKPROF Utility
    TKPROF is a utility that you invoke at the operating system level in order to analyze SQL trace files and generate reports that present the trace information in a readable form. Although the details of how you invoke TKPROF vary from one platform to the next, Oracle Corporation provides TKPROF with all releases of the database and the basic functionality is the same on all platforms.
    The term trace file may be a bit confusing. More recent releases of the database offer a product called Oracle Trace Collection Services. Also, Net8 is capable of generating trace files. SQL trace files are entirely different. SQL trace is a facility that you enable or disable for individual database sessions or for the entire instance as a whole. When SQL trace is enabled for a database session, the Oracle server process handling that session writes detailed information about all database calls and operations to a trace file. Special database events may be set in order to cause Oracle to write even more specific information—such as the values of bind variables—into the trace file.
    SQL trace files are text files that, strictly speaking, are human readable. However, they are extremely verbose, repetitive, and cryptic. For example, if an application opens a cursor and fetches 1000 rows from the cursor one row at a time, there will be over 1000 separate entries in the trace file.
    TKPROF is a program that you invoke at the operating system command prompt in order to reformat the trace file into a format that is much easier to comprehend. Each SQL statement is displayed in the report, along with counts of how many times it was parsed, executed, and fetched. CPU time, elapsed time, logical reads, physical reads, and rows processed are also reported, along with information about recursion level and misses in the library cache. TKPROF can also optionally include the execution plan for each SQL statement in the report, along with counts of how many rows were processed at each step of the execution plan.
    The SQL statements can be listed in a TKPROF report in the order of how much resource they used, if desired. Also, recursive SQL statements issued by the SYS user to manage the data dictionary can be included or excluded, and TKPROF can write SQL statements from the traced session into a spool file.
    How EXPLAIN PLAN and TKPROF Aid in the Application Tuning Process
    EXPLAIN PLAN and TKPROF are valuable tools in the tuning process. Tuning at the application level typically yields the most dramatic results, and these two tools can help with the tuning in many different ways.
    EXPLAIN PLAN and TKPROF allow you to proactively tune an application while it is in development. It is relatively easy to enable SQL trace, run an application in a test environment, run TKPROF on the trace file, and review the output to determine if application or schema changes are called for. EXPLAIN PLAN is handy for evaluating individual SQL statements.
    By reviewing execution plans, you can also validate the scalability of an application. If the database operations are dependent upon full table scans of tables that could grow quite large, then there may be scalability problems ahead. On the other hand, if large tables are accessed via selective indexes, then scalability may not be a problem.
    EXPLAIN PLAN and TKPROF may also be used in an existing production environment in order to zero in on resource intensive operations and get insights into how the code may be optimized. TKPROF can further be used to quantify the resources required by specific database operations or application functions.
    EXPLAIN PLAN is also handy for estimating resource requirements in advance. Suppose you have an ad hoc reporting request against a very large database. Running queries through EXPLAIN PLAN will let you determine in advance if the queries are feasible or if they will be resource intensive and will take unacceptably long to run.

  • Difference between rsnast00 and rseout00

    hi,
      Can any one say me the difference between RSNAST00 and RSEOUT00.

    The ABAP RSNAST00 is the standard ABAP, which is used to collect unprocessed NAST message and to execute the assigned action.
    RSNAST00 can be executed as a collector batch run, that eventually looks for unprocessed IDocs. The usual way of doing that is to define a batch-run job with
    transaction SM37. This job has to be set for periodic processing and start a program that triggers the IDoc re-sending.
    ABAP program RSNAST00 (which is scheduled to run on a periodic basis) reads the NAST records and creates outbound IDocs for each one, based on the ALE configuration. It writes these IDocs to the IDoc tables (EDIDC, EDID4, EDIDS). If the partner profile is set to "Send immediately", then the ALE layer will send the IDocs at this time.
    If the partner profile is set to "Collect IDocs", then the ALE layer will not send the IDocs until the ABAP program RSEOUT00 (also scheduled for periodic execution) runs. This program calls the ALE layer to send all collected IDocs of any specified message types.

Maybe you are looking for