high coherent reading during call analysis | TKProf output

Hi all

Platform:-Oracle 10.2.0 on windows 32-bit

I need your help to understand the following trace file.
If you look at this file trace there are a high number of consistent reading for prase call block. I want to know why Oracle go for that much consistent reading for analysis call?
select u.DISPLAY_NAME,u.PASSWORD,u.user_type 
FROM
 USER_ACCOUNT u,STATUS s WHERE u.status_id=s.status_id and 
  Lower(u.DISPLAY_NAME) like Lower('admin') and s.STATUS_NAME='Available'


call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        4      0.85       1.07          0       3599          0           0
Execute      4      0.00       0.00          0          0          0           0
Fetch        4      0.01       0.05         14         36          0           4
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total       12      0.86       1.13         14       3635          0           4

Misses in library cache during parse: 4
Optimizer mode: ALL_ROWS
Parsing user id: 72  

Rows     Row Source Operation
-------  ---------------------------------------------------
      1  NESTED LOOPS  (cr=9 pr=8 pw=0 time=33821 us)
      1   TABLE ACCESS BY INDEX ROWID STATUS (cr=2 pr=2 pw=0 time=21787 us)
      1    INDEX UNIQUE SCAN STATUS_CON21 (cr=1 pr=1 pw=0 time=20957 us)(object id 58618)
      1   TABLE ACCESS FULL USER_ACCOUNT (cr=7 pr=6 pw=0 time=11978 us) 
Thank you.

Yasir Hashmi wrote:

Hemant K Chitale wrote:
During a hard Parse, if Oracle is unable to find the required information (user, the Table definition privileges, index, discover the definitions, table, column, Index Statistics) the dictionary Cache, which is located in the shared pool, to reread the information from the System Tablespace.

Hemant K Collette

meaning that he must get the disc o t to extract data. So why there is no disc readings?

Data dictionary tables (tab$, ind$, $ col etc.) are blocks of these tables and tables just like any other table - enter the buffer cache.

The dictionary cache is also called the rowcache, because he puts in cache the data dictionary lines - but even if lines were emptied of the rowcache blocks table from these lines can still be in the buffer cache - where the rowcache can be updated without reading disc.

Concerning
Jonathan Lewis

Tags: Database

Similar Questions

  • the trace of tkprof output

    Hello

    I need clarification on the costing

    I have the following query
    DECLARE
            type array is table of t%ROWTYPE index by binary_integer;
            l_data array;
            l_rec t%rowtype;
    BEGIN
            SELECT
                    a.*
                    ,RPAD('*',4000,'*') AS PADDING1
                    ,RPAD('*',4000,'*') AS PADDING2
            BULK COLLECT INTO
            l_data
            FROM ALL_OBJECTS a;
            DBMS_MONITOR.SESSION_TRACE_ENABLE ( waits=>true );
            FOR rs IN 1 .. l_data.count
            LOOP
                    BEGIN
                            SELECT * INTO l_rec FROM t WHERE object_id = l_data(rs).object_id;
                    EXCEPTION
                      WHEN NO_DATA_FOUND THEN NULL;
                    END;
            END LOOP;
    END;
    tkprof output shows
    SQL ID: 78kxqdhk1ubvq
    Plan Hash: 3995659421
    SELECT * 
    FROM
     T WHERE OBJECT_ID = :B1 
    
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.01       0.00          1         63          0           0
    Execute  72184      0.34       1.03          9         54          0           0
    Fetch    72184      0.46     157.98      81365     368657          0       71726
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total   144369      0.82     159.02      81375     368774          0       71726
    
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 93     (recursive depth: 1)
    
    Rows     Row Source Operation
    -------  ---------------------------------------------------
          1  TABLE ACCESS BY INDEX ROWID T (cr=5 pr=11 pw=0 time=0 us cost=4 size=8092 card=1)
          1   INDEX UNIQUE SCAN T_PK (cr=3 pr=6 pw=0 time=0 us cost=2 size=0 card=1)(object id 83085)
    
    
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      Disk file operations I/O                        3        0.00          0.00
      db file sequential read                     12464        0.07         92.18
      db file scattered read                      14590        0.07         63.10
    ********************************************************************************
    
    Now looking at stat line, does that mean the cost to retrieve one single record via unique index scan is 11 Physical block reads? The loop did fetch 72,726 rows and there were 81,375 physical block reads.
    
    
    *** 2012-01-27 10:18:51.978
    SELECT * FROM T WHERE 
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        0      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          5          0           1
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total        2      0.00       0.00          0          5          0           1
    
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 93     (recursive depth: 1)
    ********************************************************************************
    
    DECLARE
            type array is table of t%ROWTYPE index by binary_integer;
            l_data array;
            l_rec t%rowtype;
    BEGIN
            SELECT
                    a.*
                    ,RPAD('*',4000,'*') AS PADDING1
                    ,RPAD('*',4000,'*') AS PADDING2
            BULK COLLECT INTO
            l_data
            FROM ALL_OBJECTS a;
            DBMS_MONITOR.SESSION_TRACE_ENABLE ( waits=>true );
            FOR rs IN 1 .. l_data.count
            LOOP
                    BEGIN
                            SELECT * INTO l_rec FROM t WHERE object_id = l_data(rs).object_id;
                    EXCEPTION
                      WHEN NO_DATA_FOUND THEN NULL;
                    END;
            END LOOP;
    END;
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        0      0.00       0.00          0          0          0           0
    Execute      1      6.77      11.53        318      48684          0           1
    Fetch        0      0.00       0.00          0          0          0           0
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total        1      6.77      11.53        318      48684          0           1
    The summary statistics above do refers to the execution of the whole of the PL/SQL block? That means that the 318 blocks read above referred to.

    Thank you very much

    In addition to the excellent response of Rene, you will want to note that

    SELECT *
    FROM
     T WHERE OBJECT_ID = :B1 
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.01       0.00          1         63          0           0
    Execute  72184      0.34       1.03          9         54          0           0
    Fetch    72184      0.46     157.98      81365     368657          0       71726
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total   144369      0.82     159.02      81375     368774          0       71726
    
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 93     (recursive depth: 1)
    
    Rows     Row Source Operation
    -------  ---------------------------------------------------
          1  TABLE ACCESS BY INDEX ROWID T (cr=5 pr=11 pw=0 time=0 us cost=4 size=8092 card=1)
          1   INDEX UNIQUE SCAN T_PK (cr=3 pr=6 pw=0 time=0 us cost=2 size=0 card=1)(object id 83085)
    

    This means that the cost to retrieve a record by making table T scan limited unique index is 11 physical blocks that includes 6 from the unique index of object_id. The execution plan has a hierarchical structure, and parents I/O, cost, schedule, etc. is a sum of measures for all of its children and the parameters of the operation itself. In the light of the foregoing, "ACCESS BY ROWID TABLE INDEX" operation is the operation of parent and the "INDEX UNIQUE SCAN" is the operation of the child. Statistics of the child are rolled in the statistics of the parent. This calculation of rail costs to retrieve a line are the same for each 71726 rows. So if you look at your original trace file (it's a good idea to understand the functioning of the trace file) you will see a stat to retrieve this record as noted in the report of tkprof.

    To retrieve the 71726 lines it cost 0.82 s CPU and time elapsed 159,02 dry. There was 368774 logical block IO 81375 were block physical readings.
    Note the CPU and wait for the temporal offsets.

     Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      Disk file operations I/O                        3        0.00          0.00
      db file sequential read                     12464        0.07         92.18
      db file scattered read                      14590        0.07         63.10
    ********************************************************************************
    

    Thus to retrieve these files altogether, they were physical i/o 12 464 'db file sequential read' taking 92,18 dry (note e/s physical does NOT block!) and e/s in physics 14 590 'file db scattered read' taking 63,10 sec, each contributing to the wait time. "the db file sequential read" is usually a single e/s block, it's index reading. 'db file scattered read' is an e/s multiple blocks read and in this case, it represents the blocks read from table to retrieve a line. It seems that every row of the table t occupies more than one block.

    HTH,

    Mich

    Published by: Mich Talebzadeh on January 27, 2012 06:01

  • ID package already in use, an error has occurred during the recording of output ' 1.1.0"to the database.

    Hello

    I currently have an application called "Apa Doanya' (id 33020976) for BB 7 and below. Now, I created another version of it for BB10. To publish this version BB10, I created a new application named also "Apa Doanya' (id 46317888), download the file bar, but not yet to introduce the new application for review. Later, I changed my mind, I want to release this BB10 version under the name of my current application so that I can keep the sides and the current download figures. So in my application, I added a new version, download the folder bar and increment the version 1.1.0. But I got an error when recording on step 5, he said:

    Package already in use ID
    An error has occurred during the recording of output ' 1.1.0"to the database.

    I tried several times but no luck. What has caused this? Is - it because I already download the bar file to another application (id 46317888)? Just to be sure, I remove bar app 46317888 file and download a dummy cod file (so that the application can be saved). Then repeat the previous step (add a new version and so on) but I still have the same error.

    Really appreciate any help.

    -Hammemi - D

    Hi erik,
    Thanks for reminding me

    Yes, the problem is now RESOLVED. It was, I think, a bug/error on their part (support of the seller) so they erased the package id (I quote: "the package ID has been deleted.").

    Thank you very much :-)

  • Keyboard of blackBerry Smartphone accessing during calls that I do

    I just got my Blackberry Storm yesterday because my Palm LifeDrive (which I liked) has a cracked screen and I wanted to migrate to an integrated phone/PDA solution.  My previous phone was a LG Dare I loved also.  It's just for the context.  Problem: when I call I want the pad to display by default.  It is heavy to go button options and then try to press the option "Show keyboard" during a call.  One of the default options that displays for "Speaker" when I make a call is annoying more useful because I accidentally turned on the speakerphone during a call several times.  Is there a way to change these options?  I searched these forums and the web, but couldn't find any doubt even closer, if I used probably just the wrong search terms.  Thanks for any help in this sense - I don't really like most of the things on this phone and read these forums helped me already.

    When phone mode, there is a small keyboard at the bottom left icon - you can press that instead of having to hit BBmenu > keyboard.  But apart from that, I don't think there is a way to have the keyboard default upward.

    As speaker, you should study an application similar to TalkLock or StormSlider they lock the screen during calls preventing the presses of the screen.

  • BlackBerry Storm 9530 smartphones stops during calls

    Hello

    My first Blackberry, it's a Storm 9530, and everything seems as it should be-except that it will completely die during calls. Not all the time, but most of the time. (about 4 to 5 times)

    Sometimes I hear a noise from the Bzzz electronic, then the red light comes on, I think I can see an error screen (briefly - not backlit)-then a white screen, then a small clock-face, then the start of Blackberry screen and the loading bar. Takes a few minutes to load, then it's as if nothing happened - until I make the next call.

    I have the Blackberry Desktop Manager on my Macbook. Tells me that newer software is available - but never successfully downloading it, often crashing out of it during the relief phase. The same software on my Windows PC won't even find my phone (even if it appears in the my computer window).

    I read in some messages in the forum, but did not find any problems.

    Here's the bad news: Yes, I bought it on ebay!  Unused and unlocked. I accept full responsibility for my actions! Oh!

    I'm in the United Kingdom using a Virgin SIM card. I realize this will give me limited use BB facilities - but, quite frankly, at this point even end a call would be a joy!

    It comes with a 12 month warranty, but before I send again, I thought I'd post on the forum in case it was a problem with an easy solution. Or any patch.

    Thanks in advance, L

    Storm 9530

    IMEI: 352110.03.209148.1

    PIN: 306ECC5F

    Carrier: unlocked (originally from T-Mobile) now on a SIM of Virgin UK

    OS: v5.0.0.154 (Platform 4.2.0.21)

    Well, I'm not really a superstitious person - but I hesitate to hit the solved button in case I have any jinx.

    But it seems that the software update has resolved the problem. So far, so good, anyway. Phone has not stopped since the update.

    Think I'll wait one more day, do a little more of screams and then click resolve.

    On a different note, which can be of interest for all Virgin UK customers: Virgin were to launch their friendly service of BB on January 4 this year, but it has been delayed. Currently, they only provide service BB for the curve and the torch (that they provide on contract). The new service would be welcome all BB phones which users on their own and use the Virgin fare. This year, the latest schedule come into force this service is end of February / beginning of March.

    I cross my fingers. So far, I have a smartphone that can be used for phone calls and texts! Tried to go back to my old Sony Ericsson - at least I could send and receive MMS.

    Enjoy, L

    Storm 9530

    IMEI: XXX

    PIN: XXX

    Carrier: unlocked (originally from T-Mobile) now on a SIM of Virgin UK

    OS: v5.0.0.328 (Platform 4.2.0.128)

    EDIT: Personal information such as PIN & IMEI for your safety are prohibited. Please see the guidelines of the user   under article ""be sure to." "

  • read a call to API WS

    Friends of HELO, me and API to your screen once more

    How can you read a call?, this is my attempt:


    Dim wsCall As New ServiceManagerClient ("BasicHttpBinding_IServiceManager")
    Dim wsCallRetrieveReq As New CallRetrieveRequest
    Dim wsCallRetrieve As New CallRetrieveResponse

    wsCallRetrieveReq.sDatabase = "unitronics.
    ' wsCallRetrieveReq.sID
    wsCallRetrieveReq.sLoginUserID = "ialvarez".
    wsCallRetrieveReq.sLoginPassword = "ialvarez".
    wsCallRetrieveReq.lEntityRef = "400145".

    wsCallRetrieve = wsCall.CallRetrieve (wsCallRetrieveReq)

    txtDescription.Text = wsCallRetrieve.sMessage
    txtCallNumber.Text = wsCallRetrieve.ToString

    But:

    1º failed during recovery of the call. Detail: No records were found.

    (2) I have no wsCallRetrieve.getOrganization for example

    mmmmm, I think I'm wrong

    Do you have any light for me?

    Thanks in advance

    ... Please take a look at what is on line 5, 38 posision xml of the result?

    It seems that some fields of the generated class automatically are incorrect - just change in VSM.vb the required and try again.

  • iPhone 5 c does not always sound during calls to the.

    iPhone 5 c does not always sound during calls to the.

    Is do not disturb on?

    This is the icon of Crescent Moon at the top right of the screen

    If yes – you can control center - activate by sliding upward on the homescreen of the lower edge and tapping on the icon

    If this is not the case - check to see if these contacts are in your blocked list

  • The echo during calls

    I have problems with my own voice echo to me during calls sometimes. Is it for someone to another expreriencing this?

    The only known problem that is being investigated on the echo / audio blurred is when you are in a coverage area is very low and just before the general appeal falls. Please let me know if it has any other call audio problems.

  • Locks screen during calls

    When I make a call on my premium Z5, the screen locks black and I can't use the functions until the phone is hung up by the person on the other end of the call. I did a complete reset, but it did not help, no matter who else had this problem?

    If the screen blocks black, this has something to do with your sensor, which is active during calls, so wash it in a very significant way.

    Calling someone without the sensor, it happen again?

  • Some incoming e-mails are too small and cannot be read during printing. How can I change before printing?

    some incoming e-mails are too small and cannot be read during printing. How can I change before printing.  I did once, but forgot the steps. Thank you.

    original title: the font size of the mail received

    You use Windows Mail? It uses the same print as THE engine. For print size: IE | View | Text size | Carry out the adjustment.

  • Notifications of Smartphones blackBerry during calls

    How can I get BBM, whatsapp, facebook notifications cat during calls on my bold 9780?

    Using EDGE (2G)? If so, you will not receive notifications.

    If you're on HSPA, it should work.

  • BlackBerry Smartphones Strange beep/feedback type sound during calls - blackberry Curve 8300

    When I'm on the phone with someone - anyone, regardless of locaton - I hear BOUNCING "beep" sound on my end of the phone. These aren't sounds system or calendar alerts, they sound a bit like feedback or R2D2 sounds. They come and go, but sometimes they are totally boring. I asked the people, I don't know whether or not they can hear sounds, and they reported that they cannot.  I called Verizon and they said they had never heard of this problem before.

    Everyone knows this? Is there anything we can do about it?

    Sorry, Yes, I do understand, I posted the wrong link above.

    http://supportforums.BlackBerry.com/T5/BlackBerry-Curve-BlackBerry-8300/feedback-issue-during-calls/...

    It is related to the system of exploitation.175 on the 8330.

  • How to check the instance datafile I/O? solve the high physical reads/writes?

    Method-1
    identify 'hot spots' or I/O contention
    Select NAME,
    "Physical reads," PHYRDS
    round ((PHYRDS/PD.)) (PHYS_READS) * 100, 2) «Read %»,
    PHYWRTS "physical Scriptures."
    Round (PHYWRTS * 100/PD.) PHYS_WRTS, 2) "% of writing."
    FS. PHYBLKRD + FS. PHYBLKWRT "Total block I / O of.
    de)
    Select sum (PHYRDS) PHYS_READS,
    Sum (PHYWRTS) PHYS_WRTS
    v $ filestat
    ) pd,.
    v$ datafile df,.
    v$ filestat fs
    where df. FILE # = fs. FILE NO.
    ranking by fs. PHYBLKRD + fs. PHYBLKWRT / / desc


    Another method-
    On Oracle10g, CWA also provides the dba_hist_filestatxs table to track the disk i/o:

    break on begin_interval_time jump 2

    column phyrds 999 999 999 format
    column begin_interval_time format a25

    Select
    begin_interval_time,
    file name,
    phyrds
    Of
    dba_hist_filestatxs
    natural join
    dba_hist_snapshot;

    It is - method that you use to check for errors in data I/O file? AND how to solve high physical reads and writes?

    Ankit Ashok Aggarwal wrote:
    AWR project stat e/s in terms of segments, query and etc.
    Here, my concern is what should be the value of ideal threashold for a DBA to act on the high physical reads/writes?
    and how he can fix this problem if it affects database performance?

    I don't think that there is any possibility to mention that the amount of an e/s is going to be good or bad for a database in general. The reason is that it is not quantifiable. For example, in a store, maybe one day that no one gets and another day, there is no place to stand (because there was a sale announced by the store). So now, how do you say that it was not necessary? Rather than search for best practice values, it is best that you keep track of the normal functioning of your db and when you see a special summit in the values of events scattered user IO as DB file read, DB file parallel read etc and when this happens, you should check back the work you are doing and see if that can be refined somehow.

    Aman...

  • How to activate Adobe Reader software call Webserices

    Hello

    I use the code following javascript in a PDF file to call a WebService (dataconnection)

    xfa.host.messageBox ("connect call. Run");
    xfa.connectionSet.guidConn.execute (0)
    xfa.host.messageBox ("Done");

    When I run the present in Acrobat Professional, it works very well and called the webserivce and returns the data. But when I open the PDF using Acrobat Reader, the webserivce does not run. I only get messagebox frist and then the execution stops. I already tried the 'characteristics Extend in Adobe Reader', but it does not help.

    Is there anything else needs to be done so that Adobe reader can call Web services? Or is it even possible at all?

    Thank you

    Marie Pascale

    You must purchase/license a copy of Adobe LiveCycle Reader Extensions Server to allow SOAP/webservices for forms in Adobe Reader.

  • Do UPDATE statement in line for coherent reading?

    Hi all
    I have a question for the update statement, do UPDATE statement 17Etat for coherent reading? As a statement of pure update: update t set col1 = col1 * 20;

    I'll check with the following steps:
    ######################################
    Preparation: Tables Create1:
    ######################################
    t_update_old (col1 int, col2, col3 float int primary key (2000));

    ######################################
    Preparations: generate data for two tables:
    ######################################
    insert into t_update_old
    Select seq_1.nextval, seq_1.nextval, chr (seq_1.nextval) of double;
    for x in 1.17 loop
    insert into t_update_old
    Select seq_1.nextval, seq_1.nextval, chr (seq_1.nextval) of t_update_old;
    end loop;


    ######################################
    Description of the run
    ######################################
    Create 2 sessions: S1 & S2
    Session S1 updates t_update_old using the following statement:
    Update t_update_old set col2 = col2 * 20;

    S2 session will update t_update_old for a specific line.
    Update t_update_old set col2 is + 1 col2 where col1 = 100000;.

    The two session are performed in the following order:
    1 point in time: S1 began.
    Point in time 2: S2 started.
    Point in time 3: Action update the 100000th ranks in t_update_old by S2 is finished, validation of the transaction in S2 and S2 is finished.
    Point of time 4: update t_update_old of S1 with the 100000th line in t_update_old.
    Point 5 of time: S1 is finished.

    ######################################
    The Question is:
    ######################################
    What is the result of the following statement:
    Select col2 where col1 = 100000;

    100 000 * 20 = 2 000 000
    or
    (100 000 + 1) * 20 = 2 000 020

    By default in Oracle, each SQL statement see data if it exists when begins the execution of SQL statements and the READ COMMITTED isolation level, the effects of each committed transaction are taken into account by statements that start other transactions or validated. The answer is therefore 2 because I understand that the transaction in S2 is committed before start of query in S1.

    Things get complicated if query in S1 starts before request for S2.
    See T. Kyte write notes of consistency:
    http://tkyte.blogspot.com/2005/08/something-different-part-i-of-III.html

Maybe you are looking for

  • How do delet research falling down in firefox google

    When I go to firefox, the google search box, when I click in the search box, a list of previous searches goes down.How to delet the previous research?

  • DynaBook E8/520CDE: need driver SD card

    Hello everyone! I have a problem. I have the portable (portable) Toshiba DynaBook E8/520CDE and I can not find the driver for the SD card for my machine (I have no all of the installation CD for my computer). So I do not know type and motherboard man

  • HP Deskjet 3520: Windows 10 update, failed to refresh an ink

    Since the update to Windows 10 I lost the HP page that allows me to update the ink, scan to printer, etc.  How to do that now?   Your help will be greatly appreciated.  Thank you. DiGill

  • documents prinying

    I've been using a stand-alone prnter Lexmark but for some reason, is no longer prints documents from my pc all other functions working it will copy, print photos, emais eyct scan and print, but do not print gocuments is - anyone know why?

  • 17 - f260nb of Pavilion: Pavilion 17-f260nb downgrade win 8-7

    Hello I got a new laptop of 17-f260nb pavilion by leaving my old company. I went to the hardware store with her to have an installed SSD. I asked them not to install any OS, as I intend to install my own windows 7 dvd but of course, they went a littl