Finding the time to Execute a Query

Hi,
I have a procedure and lots of sql statements inside that . How can I find out which block is taking how much time .I don't want to use the TKPROF and other Tuning tools .
Can I use some datetime function before and end of each block and print them so that I can find out which part is taking how much time .
If yes can anybody tell me the syntax .
Thanks in Advance
Rahul Guha Ray

Rahul,
Another option would be to create a LOG table and write the name and start/end times to the log table. You would then be able to run your procedure many times and compare your times to see which SQL statement is the biggest offender.
Craig...

Similar Messages

  • How to analyse the time taken for a query

    Hey gurus ,
                          How to find the time taken for a query to execute .
    Regards,
    Venkatesh

    Hi,
    Time taken to execute a query = FRONT END TIME + OLAP TIME + DB TIME.
    front end time is time taken to do format in BEX.
    olap time is time taken to aggegate data in OLAP buffer.
    db time is tme taken to collect data at data target.
    to fine all these information
    goto RSRT -> give query name -> execute+debug -> it will display all the fields > check fields what ever u want.
    Regards,
    Haritha.

  • Time to execute a query

    Hi,
    How to find out the time taken by a query to execute ?
    Jamila

    Jamila, let me put technical what Justin said...
    jaffar@PRIMEDB> set time on
    09:27:04 jaffar@PRIMEDB> set autot trace
    09:27:17 jaffar@PRIMEDB> select * from emp_new;
    no rows selected
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=6 Bytes=132)
    1 0 TABLE ACCESS* (FULL) OF 'EMP_NEW' (Cost=1 Card=6 Bytes=132)
    Statistics
    20 recursive calls
    3 db block gets
    16 consistent gets
    5 physical reads
    796 redo size
    589 bytes sent via SQL*Net to client
    372 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    1 sorts (memory)
    0 sorts (disk)
    0 rows processed
    09:27:26 jaffar@PRIMEDB>
    set autot trace command allows you to run the query without actually running the query, therefore, it wont' display the result. But, certainly, it wil take time. We 20 million rows are not much for oracle. It all depends, whether you query is doing FULL TABLE SCAN or INDEX SCAN.
    SJH
    OCP DBA

  • After a recover database, how can I find the time of the last transaction?

    After doing a restore and recovery. Is there something in the data dictionary that I can query to find the time of the last applied transaction that took place during the recover process?
    restore database ;
    recover database ;
    For example, if I restored from a full backup on 8/3/2008 with archive redologs, I know my last restored transaction is from sometime on that day, but I'd like a way to know the hour:minute:second of the last transaction included in the backup and redologs that was applied to my restore. Is that possible?
    The recover database applies all available redo logs for that day, but I want to know if that includes transaction up to 6PM, or 11:50PM, etc?
    Thanks,
    Jason

    If you did only a "recover database" that would have been a Complete Recovery to the last transaction -- ie the point when the database was shutdown.
    For an Incomplete Recovery, you would have to note the Sequence#, SCN or Timestamp of the recovery point.

  • To find the time required by the process chain to complete

    Hi Experts,
    I am calulating the average time required by the process chain to compete.
    Is there any way to find the time required by the process chain to complete..
    Thanks in advance.
    Regards,
    Ashwin

    Hi,
    There is a Tool provided by SAP to do the Process Chain Analysis.
    It is basically a ABAP Program /SSA/BWT which provides the following BW Tools:
    a)Process Chain Analysis : this tool is used to perform the Runtime analysis of the Process Chains. The analysis can be performed not only at Process Chain level but also at the Process Type level.
    b)Detailed Request Analysis
    c)Aggregate Toolset
    d)Infoprovider BPPO Analysis
    So you can go through the program and analyse the runtime of your Process Chains.
    Regards,
    Abhishek
    Edited by: Abhishek Dutta on Aug 13, 2008 7:13 AM

  • HT201250 My MacBook Pro (using OSX 10.7.5) suddenly can't find the Time Machine backup disk, which is on the harddrive of my desktop iMac. What to do?

    My MacBook Pro (using OSX 10.7.5) suddenly can't find the Time Machine backup disk, which is on the harddrive of my desktop iMac. What to do?

    Inherit a Backup
    Inherit a Backup (2)

  • HT201514 i can't see the time capsule from airport utilities. i did follow "From the Apple menu, choose System Preferences. Choose View Time Machine. Set Time Machine to On if it is off. .....but i couldn't find the time capsule from airport utility.....

    i did follow "From the Apple menu, choose System Preferences. Choose View > Time Machine. Set Time Machine to On if it is off "
    . .....but i couldn't find the time capsule from airport utility..... why?

    Are you using a new 802.11ac Time Capsule - the "tall" one - and are you still using Mac OS X 10.6.8?
    You need OS X 10.7.5 "Lion" or later, or an iOS device, to configure an 802.11ac Time Capsule:
    http://manuals.info.apple.com/MANUALS/1000/MA1645/en_US/airport_time_capsule_802 11ac_setup.pdf
    See page 12.

  • HT201250 i can't find the time machine icon on my dock?

    I need to restore a file - can't find the time machine icon on my dock?

    Is it in the Applications folder?
    If so you can open it from there.
    If it is you can get back on the Dock by dragging it there from the Applications folder again.
    Allan

  • Only one user at the time can execute VE01 (due to blockage of VEIAV)

    Hi,
    As I understand it only one user at the time can execute VE01 (or MEIS for arrivals). If someone is already executing the VE01 transaction the error-message "Table VEIAV is blocked by user XX" appears. It does not matter if one tries to execute it for different legal entities - no parallel processing seems to be possible.
    This is a huge limitation for a global concern with many entities operating in the same SAP instance. Does anyone recognize this problem and are there any ways to get around it? It does not make sense that dispatches (VE01) and arrivals (MEIS) cannot be executed for several organizational units at the same time in parallel?
    Thanks in advance,
    Mats Hansson

    yes I know this problem.
    One should not maintain much thru this transaction.
    for me it is not more than an emergency transaction, as it is not really more than table maintenance thru SM30
    You should investigate what entries/changes the users have to make.
    Limit these manual entries by having better data in the system, so that SAP can itself create the entries for this table.
    Organize more, less users , maybe just one per company who shall maintain VEFU manually.
    Train them to prepare their entries before they start using VEFU.
    Explain that they should leave VEFU as soon as possible as the block other users.
    assign maintenance windows to the users.

  • TS2655 imac can no longer find the time capsule to add it...how do i fix this

    my imac can no longer find the time capsule....i had to delete the old network and re add the time capsule to create a new one and now the imac keeps searching for the base and cant locate it

    If you mean that Time Machine can't find the Time Capsule, I'd try using the Time Machine panel of System Preferences to redeclare your backup disk.  If that's not what you mean, please explain.

  • Since I upgraded to Mavericks, Time Machine no longer finds the Time Capsule Disk on my network

    Hi,
    Since I upgraded to Mavericks, Time Machine no longer finds the Time Capsule Disk on my network.
    Five minutes before upgrading it however performed successfully a last backup.
    I found several posts on this forum and proposed solutions:
    - restarted both the mac and capsule
    - deleted the /Library/Preferences/com.apple.TimeMachine.plist (twice rebooting in between)
    Still have the issue.

    What brand of drive is it?
    Disks You Can Use
    Troubleshooting backup issues
    Time Machine Can’t Find Backup Disk

  • I have stored everything on my Macbook pro in a external hard drive (Time Machine)  Now that we have "wiped the machine" I am told I can start it over and load ontent--apps, docs, etc from the hard drive, just plug it in, find the time machine and what?

    I have stored everything on my Macbook pro in a external hard drive (Time Machine)  Now that we have "wiped the machine" I am told I can start it over and load ontent--apps, docs, etc from the hard drive, just plug it in, find the time machine and what?    I need to know what to highligh, what to click on. 

    hirogliffix,
    take a look at this Apple page — in particular, the “Restoring data from Time Machine backups” section and its “Restoring your entire system from a backup” subsection.

  • How can I find the time a site was accessed in Safari's history?

    I know that Safari's "History" list is in reverse order, that is, most recently visited sites at the top of the list.  How can I find the time a particular site was visited?

    As of Safari 5.1.7 there does not appear to be a way to view the time in the browser, but it is still possbile to find from the raw history file. Open /Users/[yourusername]/library/Safari/History.plist in a text editor. Depending on how your text editor reads the file, you may see a lot of garbled text, but you should still be able to find the URL that you want the time for. After the URL you may see the page's title, but should also see a left square bracket followed by numbers.
    Example:
    _?http://www.apple.com/_Apple[377832904.6o
    The integer is an Apple timestamp (number of seconds since 00:00:00 UTC on 1 January 2001). Find a timestamp calculator online to get the actual time for your timestamp. In the example above, Apple was visited on Dec 21 2012 at 17:35:04 PST.
    Cheers.

  • Is it possible to find the time a website was visited in safari history?

    Is it possible to find the time a website was visited in safari history?

    See:
    http://www.justanswer.com/computer-programming/7c5qf-iphone-settings-safari-adva nced-website-data.html

  • Find the time a drive was disconnected

    This is not your usual case, but if there is an answer to it, this may help others. Recently I had an external drive stolen from my iMac running mountain lion. I was wondering if there is a terminal log, or something I can find that will show me the time that drive was disconnected. This will help me figure out when the theif was in my home and narrow in on the finding who it was. Yes, I believe it is someone I know. This is very important to me, and I hope there is something out there that can help me find the time this drive went offline or was disconnected. It was just removed (pulled out of the computer "disconnected"), and not ejected, so maybe there is a log of this somewhere..?
    Thank you all for your help.

    Use the Console application in Utilities and check the System log. This is the info from my machine for a disk just pulled and a correct unmount, the xxxxx just replace my machine name. Disk names may be different on your machine.
    Sep 29 15:18:07 xxxxxxxxxxxxxxxxxx kernel[0]: disk1s2: media is not present.
    Sep 29 15:19:19 xxxxxxxxxxxxxxx.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.volume.removable.unmount' by client '/usr/sbin/diskarbitrationd'

Maybe you are looking for

  • "Open with" Photoshop doesn't open the graphics file

    I use an old version of Photoshop (6.0) - but it does all I need, which is the reason I haven't upgraded. Sometimes over the past few years, when I've installed the programme afresh (on a new PC, or after a reinstallation of XP for instance) I get th

  • New transaction - require variant selection to be disabled

    hi all I have created a new report transaction which runs an existing custom program of ours, with a specific variant which greys out most of the fields in the transaction (this is for the sake of security as the program is normally only ever run by

  • User Default Setting in CO11N

    Hi, In the Goods movements screen of CO11N, is there some sort of a user default setting where the layout can be customized based on user preference? Actually, I just have a problem with the material description because it's quite far from the materi

  • Statspack report urgent

    dear all i m new to DBA i m doing statspack report when i run D:\oracle\product\10.2.0\db_2\RDBMS\ADMIN\spcreate.sql it asked me password for perfstat then tablespace - i hve already made a tablespace for it then when it asked me temporary tablespace

  • If it is possible a scripting can making contents of a book with the correct page numbers?

    I was wondering if it is possible a scripting can making contents of a book with the correct page numbers. I know indesign has already a function that can making contents in a same file, as long as some paragraph styles were indicated to make the con