I got the trace... why do I need that?

Hi Techs
Question might seems to be little stupid but I got a concern in the middle of night.
I know how to generate at 10046 level trace. I do that using below:
execute sys.dbms_system.set_ev(SID,SERIAL, 10046, LEVEL, '');
I know there are other alternates to this as well like oradebug.
I know all level of tracec 4, 8 and 12... and also I know how to generate tkprof of particular trace file and what to look into it.
What I dont know is:
1) Ok. So my 10046 trace is showing block by block read of table scan with wait event... usually I see db sequential read.
Now I would like to know why should I generate this report as I do not know how many number of blocks It was supposed to read and how much blocks it has read in actual. eg:
suppose I have a 10GB table for which a query reads almost 1GB data in it.
I assume my query will retrieve this 1GB data by reading 10000 blocks. (I am assuming here. I dont know if there is any method using which I can determine that)
But when I generate a 10046 level trace I see that query has read 20000 blocks.
So, I have a difference of 10000 blocks. What I am trying to point out is that how would I know that number of blocks my query has read was supposed to be read.
How can I be sure that my query is reading actual data related to my query and not wasting time by reading some unwanted blocks.
Hope I am a bit clear with my confusion. I just wanted to understand like why do we generate 10046 level trace then If we dont know If trace has happened at perfect level without reading any junk or unwanted blocks. There might be a situation when my stats are invalid(old) and query is performing search on unused blocks.... just to see if data is there..
Please suggest.
Thanks
Amrit

the trace file can & should be processed using the "tkrpof" utility
bcm@bcm-laptop:~$ tkprof
Usage: tkprof tracefile outputfile [explain= ] [table= ]
              [print= ] [insert= ] [sys= ] [sort= ]
  table=schema.tablename   Use 'schema.tablename' with 'explain=' option.
  explain=user/password    Connect to ORACLE and issue EXPLAIN PLAN.
  print=integer    List only the first 'integer' SQL statements.
  aggregate=yes|no
  insert=filename  List SQL statements and data inside INSERT statements.
  sys=no           TKPROF does not list SQL statements run as user SYS.
  record=filename  Record non-recursive statements found in the trace file.
  waits=yes|no     Record summary for any wait events found in the trace file.
  sort=option      Set of zero or more of the following sort options:
    prscnt  number of times parse was called
    prscpu  cpu time parsing
    prsela  elapsed time parsing
    prsdsk  number of disk reads during parse
    prsqry  number of buffers for consistent read during parse
    prscu   number of buffers for current read during parse
    prsmis  number of misses in library cache during parse
    execnt  number of execute was called
    execpu  cpu time spent executing
    exeela  elapsed time executing
    exedsk  number of disk reads during execute
    exeqry  number of buffers for consistent read during execute
    execu   number of buffers for current read during execute
    exerow  number of rows processed during execute
    exemis  number of library cache misses during execute
    fchcnt  number of times fetch was called
    fchcpu  cpu time spent fetching
    fchela  elapsed time fetching
    fchdsk  number of disk reads during fetch
    fchqry  number of buffers for consistent read during fetch
    fchcu   number of buffers for current read during fetch
    fchrow  number of rows fetched
    userid  userid of user that parsed the cursor

Similar Messages

  • HT5457 I got the 1st iPad but it needs iOS on it I don't know how to go about getting it can someone help me

    I got the 1st iPad but it needs iOS on it I don't know how to go about getting it can someone help me

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update.
     Cheers, Tom

  • Hi I bought an iPhone 5 from a friend. but he got it as a warranty replacement from Apple so he has no paperwork with the serial/IMEI. I need that kind of paperwork to be able to use my phone at work. what do I do to get it?

    Hi I bought an iPhone 5 from a friend. but he got it as a warranty replacement from Apple so he has no paperwork with the serial/IMEI. I need that kind of paperwork to be able to use my phone at work. what do I do to get it?

    That information, and more, can be found in the About page of the settings. Tap Settings > General > About and you'll see a lot of information about the device.

  • MacBook Pro battery had accumulated more than a 1000 charges, and stopped functioning unexpectedly. Went and got the battery replaced. Just saw that SMC Firmware 1.6 update deals with this. Possible to get my money back?

    MacBook Pro battery had accumulated more than a 1000 charges, and stopped functioning unexpectedly. Went and got the battery replaced. Just saw that SMC Firmware 1.6 update deals with this. Possible to get my money back?

    The firmware update corrects an error that may occur, however the techs would have checked the condition of the battery prior to installing a new one.  If the battery was questionable, the firmware update was really not too important.
    You can check the battery condition by going to the apple, left side of the menu bar, About This Mac, More Info, System Report, Hardware, Power and see what it says about Cycle Count, Condition, Capacity: Condition anything but Normal needs to be checked and may need to be replaced.
    The cycle count of 1,000 charge cycles is the typical life of a Lithium-Ion battery, the point at which the capacity drops to 80% of the as built capacity.

  • HT1933 my 9 year old used my password to make a purchase that she thought was $0.99 and it was really $99.00 and I just got the email. It tells me that this purchase is not eligible for a refund so am I screwed?

    my 9 year old used my password to make a purchase that she thought was $0.99 and it was really $99.00 and I just got the email. It tells me that this purchase is not eligible for a refund so am I screwed?

    If the iTunes Store has replied to your request and told you that they cannot refund your money, then yes, I'm afraid you're out of luck as regards this purchase. To prevent this from happening again, turn off "In App purchases" in the Restrictions settings on your iPhone. You may also want to turn off the ability to install apps, to prevent purchases in case the child gets hold of your iTunes Store account information, and set the password to be required immediately. For more information, see:
    http://support.apple.com/kb/HT4213
    Regards.

  • I have a new iPad Air. Can I use plug in USB camera reader to have a load of movies etc on an external hard drive and then plug and play so to speak. I'm off on holiday and haven't got the capacity to have everything on that I'd like for the kids

    Can I use a plug in USB camera reader to have a load of movies etc on an external hard drive and then plug and play so to speak? I'm off on holiday and haven't got the capacity on the iPad to have everything on that I'd like for the kids.
    So basically I want a hard drive with X amount of films etc on. Can I then watch them on my iPad?
    Hope this makes sense.

    External HDD won't work.
    You need something like this:
    http://www.seagate.com/goflexsatellite/

  • My wife and I split up and I was given the iPad but she is still know what I am doing on it. Supposedly when I got the iPad there was a program that we set up so we could know what is happening on the iPad how do we stop that? She can still see my text

    My wife and I split up and I got the iPad. But she still knows what I am doing on it. Even though I changed my apple i.d password and everything. She knows who I am talking to what I am doing on fb, my iMessage, emails, how do I get my privacy back without losing all my apps, book and movies I paid for?

    Sorry, but you are describing many different problems all in one go.  Have you changed your FaceBook account and the passwords for all your email accounts ?
    You say you have changed all the passwords for all the accounts you use, including your Apple/iTunes account if you have one.  If this hasn't done the trick I suggest you restore your iPad to factory conditions, set it up again from scratch, and download the things you've paid for again.  You will not need to pay for things bought through your iTunes account again.

  • I downloaded a ringtone from Itunes and apple owned company to my Iphone4 and then followed all the instructions sent to itunes on pc and synced back to iphone still got squat. Why does apple need to be so hard for something so simple.

    I downloaded a ringtone from itunes (an apple company) to my iphone4 (an Apple product). Followed all the instructions from "Help" boards, sent to itunes on my pc converted to m4r synced back to iphone and still got squat. I thought iphones and apple were supposed to be so user friendly? Any other phone you download a ringtone click on it "use as ringtone" and your done.

    Frank, thanks for your note.  I wrote "COMPLETED" because I had gone to a lot of effort to get the content of the book precisely as I wanted it. I would fully expect to see my level of effort and care matched by functional competence in Aperture 3 to render the book the way I created it.  Too much to ask?
    And yes, I upgraded the Aperture 2 Library first.  [Not ALL my tens of 000s of pix, because I use Lightroom selectively for photo editing. But Yes to the Aperture 2 Library.]  That step took a number of minutes, but seemed to work fine (no error messages of any kind).
    Then I opened the existing book project in Aperture 3, which followed some "magic-box" process that took a minute or so.  As I said, when that step was done, by all appearances the book was ready to submit for printing - until I examined the photos a little more closely.  You did see the blurry example I included, didn't you? That is what each and every photo looks like.
    Text-box content appears to have been rendered pertectly, for the record (including captions).
    So, ... is this result something you have heard of before?  Do you know of a one-step solution?  Or am I looking at an extended picture-by-picture fix?

  • HT1338 got the new iphone 5 which needs itunes 10.7. i have searched for soft    software updates and am informed that it is all up to date! This is not a fact as I am currently on osx 10.5.8. How do I get my imac to acknowledge that there are updates ava

    I have got he new iphone 5 which requres itunes 7. My imac informs me that all updtes are up to date but this is not so! my itunes is not and I am currently on osx 10.5.8. why will it not update as usual?

    Updates are free, what you need is an Upgrade...
    First you need to research all the problems people are having with the higher OSX versions, & make sure you have a bootable clone of what you have just in case.
    then you must get 10.6 if they still have it, install it & update to 10.6.8 so you have the App Store to buy & download the huge 10.8 Installer.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It's been pulled from the online store & Apple Stores, so you have to call Apple to buy it, last I heard.
    Call Apple Sales...in the US: 1-800-MY-APPLE. Or Support... 1-800-275-2273
    Other countries...
    http://support.apple.com/kb/HE57

  • There is always an error installing the ios, why? I need help, ty

    Why is it that there is always an error in installing the ios update 6.0.1. I need help. Ty

    What iOS are you currently running?
    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • Why can't I use the internet, why do I need Wi-Fi

    I don't have Wi-Fi in my place, I don have internet. Why can't I connect my Ipod to the internet to download my updates on
    my applications

    Yes, you can download the updated apps on your syncing computer and then sync the iPod with your iTunes library. Note that you can only sync apps on the one syncing computer you can have.
    iTunes: Syncing media content to iOS devices and iPod

  • Pythagors into java-code (i got the idea, i think,  but need it simplified)

    Goodday all :),
    I have been trying to turn the forumula | a^2 + b^2 = c^2 | into java code.
    To clear it up a little more;
    1. Define unknown variable
    2. Define values of other two variables
    3. Program calculates
    x1. unkown variable is 'a'
    x2. b = 20 , c = 40
    x3. a = [(40^2) - (20^2)] ^0.5 (sorry couldnt figure out superscript)
    What i was thinking as a concept;
    1. Java asks for uknown value -> user defines as 'a' , 'b' or 'c'.
    2. Java If else statement
    2.1 if 'd' -> java asks again
    2.2 else 'e' --> java asks again etc (if else statemenst from d - z)
    import java.io.*;
    public class example {
         public static void main(String[] args) {
              System.out.println("define uknown value");
              BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
              boolean running = true;
              while(running) {
                        String line = reader.readLine();
                        if (line.startsWith("d")) {
                             System.out.println("wrong input, define unknown value");
                             running = true;
                             } else      if (line.startsWith("e")) {
                             System.out.println("wrong input, define unknown value");
                             running = true;
                             } else      if (line.startsWith("f")) {
                             System.out.println("wrong input, define unknown value");
                             running = true;
                             } else      if (line.startsWith("g")) {
                             System.out.println("wrong input, define unknown value");
                             running = true;and furter i was thinking;
    If a, b or c is pressed it will ask for the values of the other two
    and it will be such a code as above, repeating itself;
                        String line = reader.readLine();
                        if (line.startsWith("a")) {
                             System.out.println("please define b");
                             running = true;
                             if (line.startsWith("1")) {
                             int x = 1;
                             System.out.println("b=1");
                             running = true;
                             } else      if (line.startsWith("2")) {
                             int x = 2;
                             System.out.println("b=2");
                             running = true;
                             } else      if (line.startsWith("3")) {
                             int x = 3;
                             System.out.println("b=3");
                             running = true;and so on till, lets say 1000?
    Now my question is;
    Is this the right way to make this program?
    I would have like a .java file of severel megebytes if i wanted the values to get up to 10000 or something >.<

    Aargh! No. This code snippet might be of help.
    try {
       int x = Integer.parseInt("42");
       System.out.println("X = " + x);
    } catch( NumberFormatException e ) {
       System.err.println("Not a number: " + e);
       e.printStackTrace();
    }You would probably also find it useful to read about "regular expressions" if you always expect the formula to have exactly the same form.

  • I for got the qustion why dont you send it by my mail

    I whant to get my qustion back by my adress or my mail

    You were helped here >  https://discussions.apple.com/message/24004411#24004411

  • TS1474 i have iphone 4 and i can sync all data but not the video, Why ? it says that items could not be synced see itunes for more information

    In the nut shell i have problem syncing video on my iphone from my pc.
    What to do ?

    yes it says sometime that in order to play movie video this iOS does not include quick player
    I have downloaded the quick player and as other discussion said to me that restore setting i have restored those and I also have redownloaded iOS but the problem is same as it was.

  • Why do I need the link spfileDBNAME.ora to +DATA/DBNAME/PARAMETER/spfile..

    Hi
    One month before I stated the question
    >
    Why do I need the an alias  spfileDBNAME.ora to *ASM-File +DATA/DBNAME/PARAMETER/spfile..*
    >
    in a RAC-Environment.
    Levi Pereira gave me kindly the answer in the Thread:
    Re: RAC Backup + Restore & Recover
    But I can find now this answer in this Thread!
    Can Levi or somebody else give me the answer again?
    Thank in advance
    hqt200475
    Edited by: hqt200475 on Mar 7, 2011 5:41 AM

    http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/admin.htm#CHDHFIGC says:
    >
    Oracle recommends that you do not use the default SPFILE names because all instances must use the same file and they all have different SIDs. Instead, store the SPFILE on Oracle ASM. If you store the SPFILE on a cluster file system, then use the following naming convention for the SPFILE: $ORACLE_HOME/dbs/spfiledb_unique_name.ora. Create a PFILE named $ORACLE_HOME/dbs/initsid.ora that contains the name SPFILE=ORACLE_HOME/dbs/spfiledb_unique_name.ora.

Maybe you are looking for