Metric of the influence of the size of the PGA and UGA County cursors

Hello!

If I have the right to understand,
the child cursors County growthing indirectly affects the size of the PGA and UGA,
If that's true, how to receive absolute metric (* GA, no Shared Pool)?


Thank you
Paul

Published by: Paul on 06.02.2012 21:28

Hi Paul,.

To be more precise, I refer to the implicit cursors that are stored in the library cache. Please do not confuse with the cursors that are defined explicitly in pl/sql.

For each identical sql statement, oracle will create the shared cursor (library cache), if this is the first time that the statement is then executed as said previously it will create the cursor in LB, so is the second time, the same SQL statement is executed then oracle will share already created the cursor to the second statement.
Under normal circumstances for each identical instruction, there are 1 parent and 1 child of the cursor.

Consider the example next where the sql statement appears to be the same but do not share already created cursor and therefore it must create a new.

Session executed following queries:

Select the name of the employee; -> It is that first time sql is executed, then oracle will open a new cursor. In a specific cursor, you have the code sql and other execution information.

Session B executed after the request:

Select the name of the employee; -> Here statement SQL makes sense even with above but this will create a new cursor, so already open for session A will not be shared. Note here that the SELECT is uppercase, then oracle think it's the different statement and thus create a new cursor.

It's an example where difference in uppercase letter oracle thinks it's a new statement. But there are other schenarios where the same situation occurs.
Another reason for cursor not shared are in V$ SQL_SHARED_CURSOR.

Although oracle database running in the situation where the sliders are not shared, then this can lead to performance impact hugh like lock in shared long, shared pool leak memory pool, library catch latch etc.. More important, which will require another cursor important to eliminate memory to place a new

I hope you already know, what is analysis difficult. If this increase the situation of hard analysis, which may further affect the performance.

Let me know in case of doubts

Concerning

Published by: 909592 on 7 February 2012 13:46

Published by: 909592 on 7 February 2012 13:49

Tags: Database

Similar Questions

  • Metric of the answer and always "Down".

    I use a very simple answer / statute that is supposed to be collected with the Snmp Fetchlet. When I look at 'Targets Down' I see "the value of Status is 1". It used to be zero, but I patched up things. Nevertheless, the Employment Committee is still announced my system as 'Down' with a big red arrow :-(

    I hope you'll excuse some of my naivety, I'm making progress, but I'm still new to plugin development. The browser of the metric is kind of alien to me, I think that would help but I cannot have a simple 'How To' for her that weaves me through all the directories and the installation program.

    And so, I'm going straight into the network with my plugin Manager:

    I use the OID that could identify the name of the system for the measurement of the response: 1.3.6.1.4.1.42.2.225.1.4.1.0

    When I snmpwalk I get my kind of back, system name of what I expected:
    -bash-3, 00 #. / snmpwalk - Os - v1-c 172.20.67.73 public 1.3.6.1.4.1.42.2.225.1.4.1.0
    Enterprises.42.2.225.1.4.1.0 = STRING: isv-"mysystem".

    My admin.metadata essentially looks like this (with some names have been changed)

    < NAME metric = 'Response' TYPE = "TABLE" >
    < display >
    < NLSID label = "sun_response" > answer < / Label >
    < / display >
    < TableDescriptor >
    < ColumnDescriptor NAME = 'Status' TYPE 'NUMBER' = >
    < display >
    < NLSID label = "sun_resp_status" > status < / Label >
    < / display >
    < / ColumnDescriptor >
    < / TableDescriptor >
    < QueryDescriptor = "Snmp" FETCHLET_ID >
    < property NAME = "NAME" SCOPE = "INSTANCE" > NAME < / property >
    < property NAME = "hostname" SCOPE = "INSTANCE" > AgentHost < / property >
    < property NAME = 'COMMUNITY' SCOPE = "INSTANCE" option = "TRUE" > CommunityString < / property >
    < property NAME = "TIMEOUT" SCOPE = "INSTANCE" option = "TRUE" > Timeout < / property >
    < property NAME 'PINGMODE' SCOPE = 'GLOBAL' = > TRUE < / property >
    < property NAME = 'TABLE' SCOPE 'GLOBAL' = > FALSE < / property >
    < property NAME = 'OID' SCOPE = 'GLOBAL' > 1.3.6.1.4.1.42.2.225.1.4.1.0 < / property >
    < / QueryDescriptor >
    < / metric >

    Here's the instance property definition
    < InstanceProperties >
    < InstanceProperty NAME = "AgentHost" CREDENTIAL = 'FALSE' optional = "FALSE" >
    < display >
    < NLSID label = "sun_storage_7000_agent_host" > name of host or IP address < / Label >
    < / display >
    < / InstanceProperty >
    < InstanceProperty NAME = "CommunityString" = "TRUE" = "TRUE" optionally CREDENTIAL >
    < display >
    < NLSID label = "sun_storage_7000_community_string" > SNMP Read community string (default: public) < / Label >
    < / display >
    public
    < / InstanceProperty >
    < InstanceProperty NAME = "Timeout" CREDENTIAL = 'FALSE' optional = "FALSE" >
    < display >
    < NLSID label = "sun_storage_7000_timeout" > the SNMP timeout (default: 5 seconds) < / Label >
    < / display >
    5
    < / InstanceProperty >
    < / InstanceProperties >

    And the admin.default_collection was all deleted thresholds:
    < CollectionItem NAME = 'Response' >
    < schedule >
    < INTERVAL '5' TIME_UNIT = IntervalSchedule = 'Min' / >
    < / schedule >
    < / CollectionItem >

    There should be a Condition for the status column of the CollectionItem. The Condition is what will tell the system (via warnings) when the target is upwards and downwards.

  • The adaptation and Pl/SQL cursor sharing

    Hello

    I have this database:

    NLSRTL11.2.0.1.0Production
    Oracle Database 11g Enterprise Edition11.2.0.1.064 bit Production
    PL/SQL11.2.0.1.0Production
    AMT for Solaris:11.2.0.1.0Production

    I'm testing the queries and adaptive cursor sharing. I have a table T1 that is created by selecting all object. It has additional is NOT NULL ID of the column that is PK and is filled through sequence. It has a regular index (OBJECT_TYPE, OBJECT_NAME). Statistics are collected on the T1 table and its indexes.

    Total of T1 lines and are 1065951.

    I have run this test in SqlPlus:

    ID of the VARIABLE NUMBER;

    EXECUTE: id: = 10;

    SELECT COUNT (*) FROM t1 WHERE id <: id;

    So I check the instruction in v$ sql and the execution plan and I can see that the plan is:

    SQL_ID, 3m2qaytqgk9jt, number of children 0

    -------------------------------------

    Select COUNT (*) from t1 where id <: id

    Hash value of plan: 212448250

    ---------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

    ---------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |       |       |       |   193 (100) |          |

    |   1.  GLOBAL TRI |       |     1.     6.            |          |

    |*  2 |   INDEX RANGE SCAN | PK_T1 | 99999.   585K |   193 (1) | 00:00:03 |

    ---------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    2 - access("ID"<:ID))

    Second test:

    ID of the VARIABLE NUMBER;

    EXECUTE: id: = 1000000.

    SELECT COUNT (*) FROM t1 WHERE id <: id;

    Execution plan:

    SQL_ID, 3m2qaytqgk9jt, number of children 1

    -------------------------------------

    Select COUNT (*) from t1 where id <: id

    Hash value of plan: 1953966236

    -------------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

    -------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |       |       |       |   559 (100) |          |

    |   1.  GLOBAL TRI |       |     1.     6.            |          |

    |*  2 |   FULL RESTRICTED INDEX SCAN FAST | PK_T1 |  1000K |  5859K |   559 (2) | 00:00:07 |

    -------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    2 - filter("ID"<:ID))

    Output:

    SQL > SELECT sql_id, child_number, executions, 'IS_BIND_SENSITIVE', 'IS_BIND_AWARE', 'IS_SHAREABLE' OF V$ SQL WHERE SQL_ID = "3m2qaytqgk9jt";

    THE EXECUTIONS OF CHILD_NUMBER SQL_ID I I I

    ------------- ------------ ---------- - - -

    3m2qaytqgk9jt 0 2 O N N

    1 3 3m2qaytqgk9jt Y Y Y

    As we can see it Adaptive cursor sharing has been used and in both cases the appropriate execution plan has been used.

    When I run test with PL/SQL block, however, I don't see the use of extended cursor sharing. Could you please help understand why?

    The test is (I used deliberately < = in order to create the new parent cursor):

    DECLARE

    PID NUMBER;

    CNT PLS_INTEGER;

    BEGIN

    BECAUSE me in 1... 10 LOOP

    IF i IN (2, 4, 6, 10) THEN

    PID: = round (dbms_random.value (1, 5000));

    ON THE OTHER

    PID: = round ((100000, 1600000) dbms_random.value);

    END IF;

    dbms_output.put_line ('ID: ' | pid);

    COUNT (*) of SELECT INTO cnt FROM t1 WHERE id < = pid;

    END LOOP;

    END;

    /

    Output of this is:

    ID: 396582

    ID: 2584

    ID: 560405

    ID: 3275

    ID: 827442

    ID: 4515

    ID: 167771

    ID: 652411

    ID: 512147

    ID: 230

    As we can see some ID values are good candidates for INDEX BEACH, others are for the INDEX FAST FULL SCAN. However, I am only a child cursor for my parents:

    SQL > SELECT sql_id, child_number, executions, 'IS_BIND_SENSITIVE', 'IS_BIND_AWARE', 'IS_SHAREABLE' OF V$ SQL WHERE SQL_ID = "6xh03mm87nmu3";

    THE EXECUTIONS OF CHILD_NUMBER SQL_ID I I I

    ------------- ------------ ---------- - - -

    0 10 6xh03mm87nmu3 Y N Y

    SQL >

    Please pay attention to the value for IS_BIND_AWARE, who is with my first child 0. So no other children were created. Why in PL/SQL, it behaves differently and how can we enjoy the cursor of adaptation in this context?

    Thank you!

    My immediate thoughts were under cover PLSQL optimizations.

    PLSQL_OPTIMIZE_LEVEL has no effect.

    To run I had to Board BIND_AWARE and SESSION_CACHED_CURSORS value 0.

    Subsequently found Randolf Geist post in the same direction:

    Oracle related stuff: Adaptive Cursor Sharing

  • question about the use of the PGA and TEMP

    Hello
    We had a situation whereby OEM reported that because the PGA was too small for a period of time that e/s additional on the TEMP was created. So does that mean that the TEMP has acted as a pseudo PGA.

    concerning

    Take a look at these threads
    Re: Problem with memory PGA - Oracle 10.2.0.4 on windows 2003
    Re: Details on using in the memory of the PGA



    Oracle database FAQ

  • iMovie quadruples the file size. Why? And I can do something?

    I captured some pictures of my video conferencing software. It was released as a .mp4 file encoded in H264 etc..

    I then imported for some quick changes: it reduced to 39 from 44 minutes and added some melted transitions. Then he exported as a file using roughly the same settings. See screen capture.

    What you will see as it is that the file climbed from 300 MB to 1200!  SO:

    -What happened (can I avoid this?)

    -Can it be solved?

    Thank you!

    Look at them both in mediainfo

    http://MediaArea.NET/en/MediaInfo

    I can see that the second file has 2 audio tracks while the first has 1. Which may explain some of the size, but I don't know if it covers all of it.

    The other also has a color profile. I have to wonder if iMovie has tried using less compression when exporting. MediaInfo will show more detail, but you will have to manually compare the values and settings.

  • I've lost the ability to change fonts, use the color and size and when I try to write anyone, I can't see my mailing list and there is no send button.

    A few months ago my ability to use sizes, colors and different fonts, suddenly disappeared. These choices were always available by watching my email and I used them regularly. No one, that I had never heard such a thing happens. I left it alone until I found someone to help him. Then, a few days ago, when I clicked on 'write', two things happened. First of all, I could not transfer, answer, or even to see my email addresses collected. Second, he was no longer a place that says 'send '. My page of e-mail filled all of the screen and when I reduced, there is still no way to see my list or send. I am a novice when it comes to patches and words but, I asked people who have some experience with PC, they left mouth gaping. I contacted Fairpoint and they said that it must be a problem with Thunderbird. Most of the people I asked said they didn't not Thunderbird. It has been suggested that I have reinstall T.bird but said I could also lose on my PC. I'd appreciate any help you can give. Thanks, Jim

    When you click on write and open the new message editor, press Alt to display the Menu bar, then select all the toolbars under view/toolbars. In addition, press F9 to display the Contacts sidebar.

  • Oppen browser and minimize fine, but Web pages are not. How to open up to the size of the browser and stay that way with the zoom all the time

    I can't get a Web page to stay in the browser with the zoom size whenever I go to a web page. With the zoom it just stay little white on both sides. How to get there the size of the browser, and stay that way have no problem with my internet explore do this on my new computer. or fire fox on my old computer.

    You can use an extension to set a page zoom and the size of the default font on web pages:

  • In the latest versions of FireFox, there's a display option which allowed a change in the size of the fonts and objects on the screen temporarily on the fly. This seems to be missing from version 6.

    In the latest versions of FireFox, there's a display option which allowed a change in the size of the fonts and objects on the screen temporarily on the fly. This seems to be missing from version 6. It was very useful and should be added to version 6.

    https://support.Mozilla.com/en-us/KB/how-do-i-customize-toolbars

    If you mean the - and + Zoom control so it is always there in Firefox 6.0

    or
    View-> Zoom

    Edit: I see that you are using Windows 7 where the menu bar is hidden as a Firefox orange button by default. Some menus objects much may not be visible in the menu of the Firefox button. Show the Menu bar or use the - and + Zoom controls buttons.

  • How can I determine the size of the files and photo albums?

    How can I determine the size of the files and photo albums?

    It is not really in any way, nor is it necessary-what you trying to accomplish?

    LN

  • Two libraries in double sizes. I merge and filter somehow double? See the image.

    I have been turned this off for a decade.

    I have two large photo libraries of different sizes with obvious double and triple of images. It's a long story...

    How is - a merge these two libraries into a library? How to treat duplicates? What is the overall process? I am very well buy a software to make your job easier.

    With the help of pictures 1.5

    Screenshot of the list of readers of OmniDiskSweeper:

    Two choices - synchronize the two (a then the second) that the library system to iCloud photo library or locally using PowerPhotos

    Currently, there is no other way to merge libraries - this should minimise duplicates too although it looks like you have any ay to a library at some point in the past, which gives two or three different versions of each photo sizes, and can be a problem of identification dups

    LN

  • Why the same photo's file size different in Photos and in the Finder?

    I have a photo size 4608 x 3456. When I open the file information in the Apple's Photos app, it says that the file is 7.8 MB. When I open the same photo in the Finder and look at the news file, it is said that it is 3.1 MB on the disk. Why does this happen? All other metadata is the same in the pictures, Finder, Lightroom or Photoshop, but I can't understand why the file size seems to have changed since I dragged photo pictures to the Finder.

    Thank you.

    How you view the photo in the finder (you shouldn't be messing around inside the photo library)?

    If you export or drag / drop you create a new file with a different compression - using export allows you to control what

    LN

  • Hello I (IPAD MINI DEVICE) and problem in my memory I have 12.5 GB, and using less of it and A Nofticate it indicates your size will end soon, or something like that I deleted the apps and that he got 100 MB and after all the Nofticate come back and some

    Hello I Have (IPAD MINI DEVICE) and have problem In My Memory I have 12.5 GB, and using less of it and A Nofticate it indicates your size will end soon, or something like that I deleted the apps and got 100 MB and after all in the Nofticate come back and something has my size and it says Iam using fully 12.5 GB and I amnt Iam using just use it 4 or 5 GB

    Try to provide the exact text of the message you see. "size will end or something" identifies not enough information for anyone to be able to solve the problems.

    In addition, check if reference is made to the size on the device, called space iCloud.

  • How do you control the position and size of the images, IE. photo to the printer?

    HP Officejet 8600

    Windows XP

    I'm trying to figure out how to control the position and the size of the photos or photos that are included in an email that I send to my printer via HP ePrint.

    Hello. The process that I mentioned using Word provided that if we were send emails to the printer from a computer. If you just transfer emails from the iPhone to the printer there is no option to control the position of the jpg print. This isn't something that can be handled right now on ePrint.  The attachment will be printed on a separate page. The body of the email will be printed separately of the spare part.

  • How to set the position and size of the façade using the FPRunTimePosRunCustom method in a c# application?

    How to set the position and size of the façade using the FPRunTimePosRunCustom method in a c# application?

    I found a solution! -Set the size and position of the façade with the help of the

    File > VI properties > window running Position (in category list) > custom (in position of menu drop-down).

    then just accept the current position and size (leave the boxes checked) or set values you want directly (uncheck the boxes and fill in the numbers), or physically position and size the façade and use, the "set to current location" button and press "set size" current All that is easier for you.

    OK so it does not make use of the method VI Methods (Active X) FPRunTimePosRunCustom ([Position], [Size]) but if labview want to make him difficult to use then other means must be found.

  • Maximize battery life flash by using the Scriptures of sector size file. USB and SD card storage limits Cap

    I use the sbRIO-9636 with 512 MB of non-volatile storage (Flash I presume?).  I'm not find the size of the sector in the Spec Docs, I found it, and Measurement & Automation Explorer does not display it no more, and I can't find one physical property of RT to make it.  I built a utility 'RIO leader Writer"for the text written to the buffer until the sector size is full or until the file is closed using the VI, but it would be useful to know the sector size.  For now, I'll assume 32 KB as I read the 9606 uses 16 k with its 256 MB drive.

    I have attached the utility (a single LV 2012 (VI) in case someone else would be useful.  I promise you there better performance or memory efficient, but its purpose was to save the Flash of my application, which supports the recording of data CAN (1000 + packets/sec) to the file, and it does that very well.  I continued to save the CAN data without it, with each written separately CAN package (~ 40 characters / record log, or ~ 820 written by sector of 32 KB), I probably would have started to lose areas in the next few weeks was not that of wear levelling - maybe even with wear leveling.  With that, life shouldn't be a problem (although the ability remains one, I can switch to USB storage if it is).

    Come to think of it, this can help with all the data being quickly to any player, as all readers use sectors (or blocks of sectors), assuming that you can sacrifice the RAM requirements to register your system hard disk (or to).

    Storage issues more:  What is the limit of the capacity of the SD and USB function storage on the sbRIO-9636 map?  The specification mentions support SDHC, but does not say specifically THAT SDXC is not supported.  It does support the monstrously huge SDXC cards or the max for SDHC (32 GB)?  In addition, with SD and USB storage, is size of block review?  LabVIEW has a property, I can read for all this that I don't see?

    Thank you!

    Erik Ledding

    Test Engineer

    Sub-zero, Inc..

    Hi Erik,

    I was wrong, we have a LabVIEW function that will find the size of area for a specific drive, it's the Get Volume Info.vi (link). You can run this VI and the flash drive on the sbRIO to find the minimum size of sector for reference entries.

    Regarding external drives to the USB port, I think you are right in your assumption about the limits of FAT16 and FAT32. Keep in mind there are also limits on file size of 2 GB or 3 GB of maximum file size.

    Most of the USB-to-IDE adapters works for the sbRIO (or cRIO), but USB-to-SATA is not supported to work on sbRIO. You can always try to use a SATA-USB HARD drive, but it might not work.

Maybe you are looking for

  • 2nd hand Ipad Air 2, how to enable it?

    So I bought a used Ipad Air 2 from Currys/PC World 2 days there, the camera will not let me activate it because it is still linked with the previous owner (unknown). I called 2 days ago apple care and provided a receipt of curries that I purchased le

  • Tecra A2 screen nod

    Hello world! I have a tecra A2 where the screen flickers from time to time... Nothing happens with programs or other things, but it is still very annoying... What could be the cause of this? His chip 855 intels and I have the latest drivers download

  • Tecra S5 - 3 tasks in the center of my monitor that cannot be erased

    Hello... I have a problem, there are 3 tasks in the center of my monitor that cannot be erased.The spots are there only when a computer is turned on. [http://i496.photobucket.com/albums/rr326/sdtpantera/IMG_5917.jpg] Here is a link to a picture of do

  • Drivers of monitor/TV big screen Toshiba

    Hi, not really sure where to go to solve this problem as well thought that I try everything here first I just got a toshiba tv (17WL46) and has an entry for PC. I have connected to the computer (analog) and I can't seem to change the resolution on th

  • Hexadecimal, binary string.

    I have 33 bytes of data in hexadecimal format and do not know how he analysis of eleven pieces of 24 bits of binary data. I tried different configurations of hexadecimal string, number and Type of Casting, but have not yet been successful. I would li