querying data from the buffer_cache

Hello
I use an experience on my own database of House to understand how data is retrieved from the buffer_cache. Using Oracle 10 g 10.2.0.3.0. I have completed 2 tables with 10 million documents each. The structure of the table is as follows.

create the bigtable table (varchar2 (50) col1, col2 varchar2 (50))
create table bigtablechild (varchar2 (50) col1, col2 varchar2 (50))

bigtablechild.Col1 is a foreign key to bigtable.col1, and there is no index on the tables.

When I run this query, it takes about 30 seconds to return the data whenever it is running. I can also see the the hard disk activity running on the usefulness of my practical hard drive monitor each time. I thought that once the data is loaded into the buffer_cache, the query would not scan the hard drive for data. Could someone please help me understand what is happening?

Select bigtable b.col2 a, bigtablechild b where a.col1 = b.col1 and a.col1 = "ABC8876."
-------------------------------------------------------------------------------------------------------
| Id  | Operation          | Name          | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |
-------------------------------------------------------------------------------------------------------
|*  1 |  HASH JOIN         |               |      1 |      5 |      5 |00:00:23.00 |   93671 |  90663 |
|*  2 |   TABLE ACCESS FULL| BIGTABLE      |      1 |      1 |      1 |00:00:14.26 |   57799 |  54931 |
|*  3 |   TABLE ACCESS FULL| BIGTABLECHILD |      1 |      5 |      5 |00:00:08.74 |   35872 |  35732 |
-------------------------------------------------------------------------------------------------------
Published by: arizona9952 on January 19, 2013 09:38

Jonathan Lewis wrote:
One of the diffficulties we face when trying to figure out how to size the table affects caching on the full tablescans, is that algorithms exist to protect the blocks being scrapped from the cache by excessive scanning - but if you clear the cache of the buffer before testing, then there is no blocks which need protection , and the algorithm has a branch that takes advantage of this fact to load more blocks in the cache.

Oracle is smarter than I realized. Thank you for this release, if I ever get a test methodology reproducible for it I'll post it here.

And in the meantime:

@arizona9952, I hope see you why it is more that likely that your repeated scans large tables will always drive. The only exception to this that I can see would be if you were to cache tables in a pool to keep, like stefan suggested.
(by the way, I have to warn you that the situation is complicated in the current version, due to in part to changes in treatment parallel and direct series of e/s)

Tags: Database

Similar Questions

  • How to join two tables to retrieve the data from the columns in table two. Tables have primary and foreign key relationships

    Hello

    I want to join the two tables to retrieve the data from the columns of the two table passing parameters to the join query. Tables have primary and foreign key relationships

    Details of the table

    Alert-1 - AlertCode (FK), AlerID (PK)

    2 AlertCode-AlertDefinition-(PK)

    Help, please


    ----------

    Hi Vincent,.

    I think that you have not worked on adf 12.1.3.  In adf 12.1.3 you don't have to explicitly create the association. When you create the EO to your table, Association xxxxFkAssoc, will be created by ADF12.1.3 for you automatically. Please try this and do not answer anything... You can also follow the links below. I solved the problem by using the following link

    Oracle ADF Guide step by step - Oracle ADF tutorial: creating a relationship of the master / detail using Oracle ADF

    ---

  • Extract data from the table on hourly basis

    Hello

    I have a table that has two columns date all the hours of the base and the response time. I want to extract data from the date corresponding previous hourly basis with the response time. The data will be loaded into the table every midnight.

    for example: today date 23/10/2012
    I want to extract data from 22/10/12 00 to the 22/10/12 23

    The sub query pulls the date as demanded, but I'm not able to take the time to answer.

    with one also
    (select min (trunc (lhour)) as mindate, max (trunc (lhour)) as AVG_HR maxdate)
    SELECT to_char (maxdate + (level/25), "dd/mm/yyyy hh24") as a LEVEL CONNECTION dates < = * (1) 24;

    Please help me on this.

    Try this

    SELECT * FROM table_nm
     WHERE to_char(hour,'DD') = to_char(SYSDATE-1,'DD')
    
  • How can I get the filtered data from the first form

    How can I get the filtered data from the first form in a second form to make an update of the multi.
    Thank you very much

    William,

    I would use for this collections. A link is good if you need to pass a single value.

    1. create a collection
    2 fill the collection with your result set
    3. go in the page target and uses a method of a query in your link to this page
    4. your target page receives a request and allows you to edit documents.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Remove data from the HD Server?

    I've recently updated my OS to 10.12 Sierra and went to install Server.app. However, when trying to install Mac OS Server, I received the following message:

    "This the server version does not support upgrading the server from data on this volume. To upgrade your database server, you need to install an older version of the server and OS X."

    ***? In what universe would be an acceptable solution? Now, the fact is that I probably had installed Server.app before on a very old version of Mac OS (not sure which) and just never bothered to upgrade during the last major revision of OS X or more.

    What that is, how can I get rid of these old "data server" so I can install a new copy? Thank you.

    Wondering how to remove the data from the server that you had before the upgrade to Sierra? If so, delete the folder/Library/Server and the.app to / applications. Then go to the App Store and buy the latest version of the server. I'm guessing that your last purchase server had Yosemite and that's why try to install the server to the App Store / Shopping does not work. I did purchase the server from Yosemite.

  • How to erase data from the iphone if I lost and iphone is offline

    How to erase data from the iphone if I lost and iphone is offline

    < post branched out by host >

    Hello

    What to do if your iOS device is turned off or offline?

    If your missing device is turned off or offline, you can still implement this Mode lost, lockor remote wipe. The next time your device is online, these measures will take effect. If you remove the device from your account while it is offline, pending actions for the device will be cancelled.

    If your iPhone, iPad or iPod touch is lost or stolen - Apple supports

  • My browser is running do not. I uninstall, install several times. Uninstall cookies, delete the data from the user, install in another user - no reaction. What's wrong? Help, please

    My browser is running do not. I uninstall, install several times. Uninstall cookies, delete the data from the user, install in another user - no reaction. What's wrong? Help, please

    Start Firefox in Safe Mode {web link} by holding down the < shift >
    (Mac options)
    key and then from Firefox. Is always the problem?

    Start your computer in safe mode with network. Then launch Firefox.
    Try the sites secure web. Is always the problem?

    Start the computer in Mode safe;
    Free online encyclopedia

  • Unable to delete the data from the Safari Web site...

    Hello.

    I need help with my Safari browser on my Mac.

    Im trying to remove all Web site data with the following procedure:

    Safari-> Preferences-> privacy-> Remove All Data Web site...

    His does not work. Before clicking on the button I have 108 Web sites stored cookies or other data, I click the button, and nothing happens... I'm still 108 cookies.

    I also did the following:

    . - activate the Menu developer and Cache empty and tried again... nothing

    . - used CleanMyMac v3 and it says I don't have cookies.

    . - order iCloud Sync of Safari on the computer and try again... same problem

    . - removed manually com.apple. Safari. Secure

    Any help will be great. Please let me know if you need any additional info.

    Thank you.

    Hello DZanvettor,

    Thank you for using communities of Apple Support.

    If I understand your message that nothing happens when you try to remove the Safari Web site data. I know how it is important for you to be able to remove the Safari Web site data. I recommend that you restart your Mac into safe mode and see if you can remove the data from the Web site in secure mode.

    Here are the steps to restart your Mac in safe mode:

    Safe mode (sometimes called secure boot) is a way to start up your Mac so that it performs certain checks and prevents certain software from loading automatically or opening.

    From your Mac in safe mode does the following:

    * Check your startup disk and attempts to fix problems if necessary directory
    * Loads only required kernel extensions
    * Prevents the elements start and the login items open automatically
    * Disables installed user fonts
    * Delete font caches, hiding the kernel and other files of the system cache
    * Together, these changes can help resolve or isolate issues related to your startup disk.

    Follow these steps to start in safe mode.

    1. start or restart your Mac.
    2. as soon as you hear the startup tone, hold down the SHIFT key.
    3. release the SHIFT key when you see the Apple logo appears on the screen.

    After you delete data from the Web site in safe mode restart your Mac and allow it to start up as usual. Then test the issue again.

    Best regards.

  • How to recover data from the browser tabs?

    Hello

    I am trying to retrieve data from the Firefox browser by dragging the tabs in a Windows/Mac/Linux application. Specifically, I was hoping to capture medadata HTML and video current time (for example, 01:23 05:00) YouTube pages for storage off favorite browser and reactivation.

    I couldn't find an online help or the documentation dealing with this issue.
    Any suggestions?

    Thank you

    There is an additional command that is added at the end of the url of Youtube. You need to add & = t * m * s at the end of the url. Where the asterisks are, replace you them with numbers. For example: http://www.youtube.com/watch?v=Zb7gTeLmpHs & t = 3m24s

    The m is s for seconds and minutes.

    You can also find this information by loading a video from Youtube, by dragging the time slider to the time you want to pause the video, and then right-click on the video and choose:

    'Copy the URL of the video at the present time'.

  • If I remove all the data from the Web site it will also remove all my passwords?

    If I remove all the data from the Web site it will also remove all my passwords?

    It will not erase your saved in the Keychain passwords, but you need to connect back to all Web sites (like this one) that require you to log in.

  • I'll lose data from the drive of the partition during recovery?

    Hi all

    If I use the toshiba recovery CD to format my system, I'll lose data from the disks partition as well or just the C:?

    Hi Justin

    Well, what recovery CD you want to use?
    As much as I know several months Toshiba uses a new version of the CD recovery called Reco.
    You will find the settings option and there you can choose the option when you want to recover the operating system. I think that the first partition is erased.

    The old version of the recovery CD has supported two different options: standard and expert mode. Here it is important to use the expert mode if you want to choose the partition where the OS must be installed

  • New iPad: restore the data from the old iPad, but...

    I got a new iPad. I have already backed up my old iPad to iTunes and wanted to put in place the new iPad to restore this backup data. BUT when I connected to iTunes, I've learned that I have to update the operating system first. He wouldn't let me NOT restore from backup! I had to set up as a new iPad.

    So, I did the installation of the new operating system. But I have a lot of applications and data from the old iPad I want on the new iPad. How can I quickly transfer these data? I have found no method to restore the backup of the old iPad now since. Frustrated!

    Follow the directions here: https://support.apple.com/en-us/HT203434

    Basically, now that iOS is updated you need to clear the iPad and then you can restore from a backup. -AJ

  • Transfer of data from the old and new Mac

    Hi folks, I'm acquires a new iMac, PC (with Retina 4 K display 21.5 inch iMac) to replace my current iMac (21.5 inch, mid 2010). I sold my existing iMac and will have to ship power off before receiving the new unit, ergo, I won't be able to use the method of transfer of my data from the old to the new Mac.

    Accordingly, I am looking help form to advise me how can I do to preserve my existing Mac data so that I can install on the new Mac. In addition, how to delete all my data from the old Mac but preserve the OS X (El Capitan) and relevant applications.

    All of the advice and recommendations will be greatly appreciated

    1. create a Time Machine backup or clone bootable on an external drive, and then migrate your data from it.

    2. you need to remove El Capitan of the old Mac before send you it off and return it to the most recent of its original operating system or 10.6.8.

    (137493)

  • does "set up as new iphone" prevent later restore the data from the old iphone (iphone 4)

    refurb Iphone 4: if I use the option "set up as new iphone", I can retrieve later data from the old iphone from itunes? (macbook 10.6.8 don't dl latest version of itunes @ this time)

    You would be able to restore an old backup him later, but doing so will wipe everything that is currently on the phone. There is no way to combine.

  • What pins to use to receive the data from the PDS ELITE RS485 with the PXI-8431/2?

    Hello!

    I use the PXI-8431/2 to read data from the flow meter PDS ELITE (Modbus RTU). Receiving data, the RS485 protocol request to terminals 4 and 5, but this configuration does not seem to work. When I connect the RS-485 converter USB of Microflex I get the data correctly, so somehow between the PIN lay and PXI this problem there.

    Can someone help me?

    See you soon,.

    Steven

    Hello Steven,

    I think that what was Hossein trying to send you is the following:

    How to connect and configure a device with RS-485 2-wire

    Can you also tell me a little more what you use to read the data? What environment. You have 2-wire or 4-wire Modbus RTU?

    Kind regards

Maybe you are looking for

  • Cannot install iTunes.

    Had to do a reset on my PC. I went to re - install iTunes, all I get is an error statement indicating "cannot run this application on this PC.  I downloaded the last version on the Apple site right. I even made sure, not only was the last version, bu

  • Download Firefox on an iPad

    the download will work successfully?

  • Exchange 2013 - DAG (questions)

    Hi all I have a scenario where a client has a 2013 DAG Exchange up on two sites. Site 1: ECP Server Server CASE (CASE internal only), 1, mailbox Server1 Site 2: Server 2, Server 2 mailbox store For the PCE is on an internal server in the face of secu

  • How to remove the toolbar of tango?

    I got a tango toolbar and adware gab.path downloaded on my computer, not sure where the have been since.  I have deleted the gab.path, but can not remove the toolbar of the tango.  norton technical support told me that it is used for downloading musi

  • A previous Version of my reminder won't OPEN!

    Hi, So my sticky notes were accidentally deleted and I learned from this website how to restore previous version of my sticky notes, but when I try opening the sticky notes using notepad, it opens up like this: ÐÏ à¡± á > þÿ þÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ