Execute a statement select twice in one sitting, what is happening in the PGA?

Hi guys,.

Oracle 10g.
I was just asked while executing a select twice in one sitting, what is happening in the PGA?
I know that oracle does not need to analyze this statement because of the LMS "library cache", and perhaps not necessary to perform the work of IO because BMG "cache db pads" oracle, but is the first fetch result set cached in the PGA, so that it could be directly returned to the user without doing anything to the LMS?
I'm not familiar with the details of the structure of the memory in Oracle, that contain exactly PGA?

Thank you very much!

The results would be extracted once again, not cached. By default.

However, in 11g, you can try using the CLIENT_RESULT_CACHE (which should work with a sqlplus Oracle client).
See http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/memory.htm#PFGRF961

Hemant K Collette

Tags: Database

Similar Questions

  • What is happening with the site. ? On Safari and Firefox, the pages to download the free trial version, or purchase happen as white?

    What is happening with the site. ? On Safari and Firefox, the pages to download the free trial version, or purchase happen as white?

    You can also download the trial version of the software through the page linked below
    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    http://prodesigntools.com/tag/DDL

  • Hi, I just bought a PC and I want to start editing with it.   What should I do, cancel my account and open a new one or what?  I have the composition with my mac.

    Hi, I just bought a PC and I want to start editing with it.   What should I do, cancel my account and open a new one or what?  I have the composition with my mac

    You can have Creative Cloud installed and signed in on two computers as long as you don't use it on one at a time. Download and install as you did on the first computer, sign in to your Adobe account on the website of Adobe using your Adobe ID, download the creative application Cloud, then download the applications you want to use.

    You can download the Adobe Creative Cloud Desktop App from here:
    Creative cloud help | Creative cloud desktop.

    After installing the desktop creative cloud application, you will need to sign in with a login password and Adobe. Then you can install applications. This link provides more information and step by step instructions, if you need: CC help | Download, install, update or uninstall applications

    If you get a new computer, simply log out of creative cloud over one of the other and log on to the new.  Connect, disconnect you and | Adobe Creative Cloud desktop app

    Guinot

  • One explains what is happening in their own country when we declare a variable as [bindable]

    One explains what is happening in their own country when we declare a variable as [bindable]

    It makes the getters and setters.  In the setter, it distributes a PropertyChangeEvent.  If you want to see the generated code, add '- keep - generated-actionscript = true' to your compiler options.  Here is an example of a part of my code when I include the option above.

    /*
    * wrapper bindable generated for the property (public) includeElite
    * - generated setter
    * - generated getter
    * - original public var 'includeElite' moved to '_73901365includeElite '.
    */

    [Bindable (= "propertyChange" event)]
    public function get includeElite (): Boolean
    {
    return this ._73901365includeElite;
    }

    public function set includeElite(value:Boolean):void
    {
    var oldValue:Object = this ._73901365includeElite;
    If (oldValue! == value)
    {
    This ._73901365includeElite = value;
    If (this.hasEventListener ("propertyChange"))
    this.dispatchEvent (mx.events.PropertyChangeEvent.createUpdateEvent (Thi, "includeElite", oldValue, value));
    }
    }

  • the launch of evil a statement select twice

    Hi all
    This is my problem: when I run this query, the first time, it returns 2 records, if I launch the second time, it will not return any records.
    I tried to remove the group from and SUM (NVL) and functions of application normally.
    select  SUM (NVL (a.burdened_cost, 0)) AS amount ,c.track_as_labor_flag,a.start_date, a.end_date
              FROM nome_vista a, nome_tabella b,nome_tabella c
            WHERE a.project_id =  ...
               AND a.task_id = ...
               AND a.budget_version_id = b.budget_version_id
               AND NVL (b.current_flag, 'N') = 'Y'
               AND  b.budget_status_code = ...
               AND b.budget_type_code = ...
               AND c.track_as_labor_flag = ...       --filtro costi interni
               AND c.resource_id = a.resource_id
        Group By c.track_as_labor_flag,a.start_date, a.end_date
    Thank you

    Published by: BluShadow on July 27, 2011 13:52
    addition of {noformat}
    {noformat} tags for readability.  Please see {message:id=9360002} to learn to do this yourself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    You have will mark a pagesize and linesize expansion in SQL * MORE to avoid all the text wrapping. However, I formatted the plans for you; You can see the difference between the two.

    First of all:

    
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                          | Name                        | Start
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    s | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                   |                             |      1 |        |      2 |00:00:00.01 |     139 |       |       |          |
    |   1 |  HASH GROUP BY                     |                             |      1 |      1 |      2 |00:00:00.01 |     139 |   862K|   862K|  476K (0)|
    |*  2 |   HASH JOIN                        |                             |      1 |      1 |      2 |00:00:00.01 |     139 |   947K|   947K|  645K (0)|
    |   3 |    NESTED LOOPS OUTER              |                             |      1 |      1 |      3 |00:00:00.01 |     124 |       |       |          |
    |   4 |     NESTED LOOPS                   |                             |      1 |      1 |      3 |00:00:00.01 |     124 |       |       |          |
    |   5 |      NESTED LOOPS                  |                             |      1 |      1 |      3 |00:00:00.01 |     117 |       |       |          |
    |   6 |       NESTED LOOPS                 |                             |      1 |      1 |      3 |00:00:00.01 |     112 |       |       |          |
    |   7 |        NESTED LOOPS OUTER          |                             |      1 |      1 |     51 |00:00:00.01 |      30 |       |       |          |
    |*  8 |         TABLE ACCESS BY INDEX ROWID| PA_RESOURCE_ASSIGNMENTS     |      1 |      1 |     51 |00:00:00.01 |      16 |       |       |          |
    |*  9 |          INDEX RANGE SCAN          | PA_RESOURCE_ASSIGNMENTS_N2  |      1 |      6 |     51 |00:00:00.01 |       2 |       |       |          |
    |* 10 |         INDEX UNIQUE SCAN          | FND_LOOKUP_VALUES_U1        |     51 |      1 |      0 |00:00:00.01 |      14 |       |       |          |
    |* 11 |        TABLE ACCESS BY INDEX ROWID | PA_BUDGET_VERSIONS          |     51 |      1 |      3 |00:00:00.01 |      82 |       |       |          |
    |* 12 |         INDEX UNIQUE SCAN          | PA_BUDGET_VERSIONS_U1       |     51 |      1 |     51 |00:00:00.01 |      31 |       |       |          |
    |* 13 |       TABLE ACCESS BY INDEX ROWID  | PA_RESOURCE_LIST_MEMBERS    |      3 |      1 |      3 |00:00:00.01 |       5 |       |       |          |
    |* 14 |        INDEX UNIQUE SCAN           | PA_RESOURCE_LIST_MEMBERS_U1 |      3 |      1 |      3 |00:00:00.01 |       2 |       |       |          |
    |  15 |      TABLE ACCESS BY INDEX ROWID   | PA_BUDGET_LINES             |      3 |      1 |      3 |00:00:00.01 |       7 |       |       |          |
    |* 16 |       INDEX RANGE SCAN             | PA_BUDGET_LINES_N2          |      3 |      1 |      3 |00:00:00.01 |       5 |       |       |          |
    |* 17 |     INDEX UNIQUE SCAN              | FND_LOOKUP_VALUES_U1        |      3 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
    |* 18 |    TABLE ACCESS FULL               | PA_RESOURCE_LIST_MEMBERS    |      1 |    121 |     60 |00:00:00.01 |      15 |       |       |          |
    --------------------------------------------------------------------------------
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    -----------------------------------------------------------------------
    Predicate Information (identified by operation id):
    ---------------------------------------------------
       2 - access("C"."RESOURCE_ID"="M"."RESOURCE_ID")
       8 - filter("A"."PROJECT_ID"=1879)
       9 - access("A"."TASK_ID"=211004)
      10 - access("LOOKUP_TYPE"='UNIT' AND "VIEW_APPLICATION_ID"=275 AND "A"."UNIT_O
    F_MEASURE"="LOOKUP_CODE" AND "SECURITY_GROUP_ID"=0 AND
                  "LANGUAGE"=USERENV('LANG'))
      11 - filter(("B"."BUDGET_STATUS_CODE"='B' AND "B"."CURRENT_FLAG"='Y' AND "B"."BUDGET_TYPE_CODE"='AC'))
      12 - access("A"."BUDGET_VERSION_ID"="B"."BUDGET_VERSION_ID")
      13 - filter(NVL("M"."MIGRATION_CODE",'-99')'N')
      14 - access("A"."RESOURCE_LIST_MEMBER_ID"="M"."RESOURCE_LIST_MEMBER_ID")
      16 - access("I"."RESOURCE_ASSIGNMENT_ID"="A"."RESOURCE_ASSIGNMENT_ID")
      17 - access("LOOKUP_TYPE"='BUDGET CHANGE REASON' AND "VIEW_APPLICATION_ID"=275 AND "I"."CHANGE_REASON_CODE"="LOOKUP_CODE" AND
                  "SECURITY_GROUP_ID"=0 AND "LANGUAGE"=USERENV('LANG'))
      18 - filter("C"."TRACK_AS_LABOR_FLAG"='Y')
    

    Second:

    ------------------------------------------------------------------------
    | Id  | Operation                            | Name                       | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                     |                            |     1 |        |      0 |00:00:00.01 |       3 |       |       |          |
    |   1 |  HASH GROUP BY                       |                            |     1 |      1 |      0 |00:00:00.01 |       3 |   757K|   757K|          |
    |   2 |   NESTED LOOPS OUTER                 |                            |     1 |      1 |      0 |00:00:00.01 |       3 |       |       |          |
    |   3 |    NESTED LOOPS                      |                            |     1 |      1 |      0 |00:00:00.01 |       3 |       |       |          |
    |   4 |     VIEW                             | VW_GBF_17                  |     1 |      1 |      0 |00:00:00.01 |       3 |       |       |          |
    |   5 |      HASH GROUP BY                   |                            |     1 |      1 |      0 |00:00:00.01 |       3 |   759K|   759K|          |
    |   6 |       NESTED LOOPS                   |                            |     1 |        |      0 |00:00:00.01 |       3 |       |       |          |
    |   7 |        NESTED LOOPS                  |                            |     1 |      3 |      0 |00:00:00.01 |       3 |       |       |          |
    |*  8 |         HASH JOIN                    |                            |     1 |      3 |      0 |00:00:00.01 |       3 |   775K|   775K|  193K (0)|
    |*  9 |          HASH JOIN                   |                            |     1 |      7 |      0 |00:00:00.01 |       3 |   821K|   821K|  193K (0)|
    |  10 |           MERGE JOIN CARTESIAN       |                            |     1 |     92 |      0 |00:00:00.01 |       3 |       |       |          |
    |* 11 |            INDEX RANGE SCAN          | FND_LOOKUP_VALUES_U1       |     1 |      1 |      0 |00:00:00.01 |       3 |       |       |          |
    |  12 |            BUFFER SORT               |                            |     0 |    237 |      0 |00:00:00.01 |       0 | 73728 | 73728 |          |
    |* 13 |             TABLE ACCESS FULL        | PA_RESOURCE_LIST_MEMBERS   |     0 |    237 |      0 |00:00:00.01 |       0 |       |       |          |
    |* 14 |           TABLE ACCESS BY INDEX ROWID| PA_RESOURCE_ASSIGNMENTS    |     0 |     51 |      0 |00:00:00.01 |       0 |       |       |          |
    |* 15 |            INDEX RANGE SCAN          | PA_RESOURCE_ASSIGNMENTS_N2 |     0 |     51 |      0 |00:00:00.01 |       0 |       |       |          |
    |* 16 |          TABLE ACCESS FULL           | PA_RESOURCE_LIST_MEMBERS   |     0 |     60 |      0 |00:00:00.01 |       0 |       |       |          |
    |* 17 |         INDEX UNIQUE SCAN            | PA_BUDGET_VERSIONS_U1      |     0 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
    |* 18 |        TABLE ACCESS BY INDEX ROWID   | PA_BUDGET_VERSIONS         |     0 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
    |  19 |     TABLE ACCESS BY INDEX ROWID      | PA_BUDGET_LINES            |     0 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
    |* 20 |      INDEX RANGE SCAN                | PA_BUDGET_LINES_N2         |     0 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
    |* 21 |    INDEX UNIQUE SCAN                 | FND_LOOKUP_VALUES_U1       |     0 |      1 |      0 |00:00:00.01 |       0 |       |       |          |
    --------------------------------------------------------------------------------
    ------------------------------------------------------------------------
    Predicate Information (identified by operation id):
    ---------------------------------------------------
       8 - access("C"."RESOURCE_ID"="M"."RESOURCE_ID")
       9 - access("A"."UNIT_OF_MEASURE"="LOOKUP_CODE" AND "A"."RESOURCE_LIST_MEMBER_
    ID"="M"."RESOURCE_LIST_MEMBER_ID")
      11 - access("LOOKUP_TYPE"='UNIT' AND "VIEW_APPLICATION_ID"=275 AND "SECURITY_GROUP_ID"=0 AND "LANGUAGE"=USERENV('LANG'))
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
           filter(("LANGUAGE"=USERENV('LANG') AND "SECURITY_GROUP_ID"=0))
      13 - filter(NVL("M"."MIGRATION_CODE",'-99')'N')
      14 - filter(("A"."PROJECT_ID"=1879 AND "A"."UNIT_OF_MEASURE" IS NOT NULL))
      15 - access("A"."TASK_ID"=211004)
      16 - filter("C"."TRACK_AS_LABOR_FLAG"='Y')
      17 - access("A"."BUDGET_VERSION_ID"="B"."BUDGET_VERSION_ID")
      18 - filter(("B"."BUDGET_STATUS_CODE"='B' AND "B"."BUDGET_TYPE_CODE"='AC' AND
    "B"."CURRENT_FLAG"='Y'))
      20 - access("I"."RESOURCE_ASSIGNMENT_ID"="ITEM_2")
      21 - access("LOOKUP_TYPE"='BUDGET CHANGE REASON' AND "VIEW_APPLICATION_ID"=275
     AND "I"."CHANGE_REASON_CODE"="LOOKUP_CODE" AND
                  "SECURITY_GROUP_ID"=0 AND "LANGUAGE"=USERENV('LANG'))
    Note
    -----
       - cardinality feedback used for this statement
       
    

    Notice the "cardinality feedback" text used for this statement at the end of the second plan. Feedback the cardinality is a feature of the optimizer introduced in Oracle 11.2; This means that Oracle can dynamically change the execution plan by using the results of previous performances (usually for the better).

    To check if your comments cardinality is the problem, can you please temporarily disable your session:

    alter session set "_optimizer_use_feedback" = false;
    

    and then try again double execution?

    Published by: afd to July 29, 2011 18:06 - changed from true to false

  • How to see the info of waiting events. After executing a statement select query

    Hello

    How to see the info of waiting events. After running a select query. Is there a setting to the value of this option?
    And I also want to see the following info. in the trace file. For this, what are the settings I need to adjust to the right?
    SELECT * FROM emp, dept 
    WHERE emp.deptno = dept.deptno;
    
    call   count      cpu    elapsed     disk    query current    rows
    ---- -------  -------  --------- -------- -------- -------  ------
    Parse      1     0.16      0.29         3       13       0       0
    Execute    1     0.00      0.00         0        0       0       0
    Fetch      1     0.03      0.26         2        2       4      14 
     
    Misses in library cache during parse: 1 
    Parsing user id: (8) SCOTT 
    Concerning
    Evelyne

    For

    SQL > show parameter dump;

    ORA-00942: table or view does not exist
    >
    Use

     GRANT SEECT ON v_$parameter to Your_User_Name
    

    For

    SQL > ALTER SESSION SET EVENTS = 10046 trace name forever, context level 12';

    ERROR:
    ORA-01031: insufficient privileges
    >
    Use

     GRANT ALTER SESSION to your_user
    
  • Apple Watch sport does not work correctly. The display is 'crazy' once or twice a week and I need to force restart it. Do you know what is happening with the watch? Is this a common failure?

    Apple Watch isn't working properly. The display is to be 'crazy' once or twice a week. And I need to force restart it. Is this a common failure?

    Hello

    This isn't a failure or defect.

    Zoom (an accessibility function) has been activated on your watch and you are zoomed accidentally tapping on the screen in a particular way.

    • To turn off the Zoom:
      • On your iPhone, in the application of the watch, go to: My Watch (tab) > general > accessibility > Zoom - put it off.
      • Or on your watch, go to: homescreen (via a simple press on the digital Crown) > (cog icon) settings > general > accessibility > Zoom - tap and enable / disable.
    • If the accessibility shortcut has been enabled and configured for the Zoom, you can also enable and disable functionality more conveniently:
      • On your watch: quickly press the digital Crown (the round button) three times.
    • To set up accessibility shortcuts:
      • On your iPhone, in the application of the watch, go to: Watch My > general > accessibility > accessibility shortcut (bottom) > select / deselect Zoom.
  • What is happening with the VMware Web site?

    I can't order one ticket per Incident support and I can't order a license for Workstation update to v10.

    I can't even reach someone on the phone at VMware. Or that someone respone to my messages in comments on the Web site.

    Is anyone here at home? * knock knock *.

    ---------

    • I can't order one ticket per Incident support because there is no link with this product.
    • I can't order an update of license because right after that I chose my old license key and press 'continue' I am redirected to the home page of VMware.
    • I can't reach someone on the phone because no one picks up.
    • I tried to account for all this by using form of feedback from the site Web - but no answer yet.

    I still can't buy one per incident support ticket. Slowly but surely I get angry in this topic.

    Have you tried: per Incident Support - Workstation

    BTW, this link is located at: vmware.com > store > support >

  • What has happened to the "locking" of the sites web none?

    I used to get the "lock" icon at the bottom right of my window indicating a secure site to make purchases. It is!

    It was replaced by the site identity button, for more details on use, see the How do I know if my connection to a Web site is secure? article.

    If you prefer to have a lock, you can use the add-on locks- https://addons.mozilla.org/firefox/addon/padlock-icon/

  • What has happened to the lock icon sure let me know that I'm sure before typing my password to an https site?

    I'm looking for the incoming information before secure lock icon and the password. Where is the icon?

    The status bar is gone and the 'blocking' with her. Safety information on a web page are shown by the Site identity button.

    The former lock could give users a false sense that a site is safe to not to provide information to the site and showed that there is a secure connection that does not guarantee that you are connected to the right server. The Site identity button is introduced in Firefox 3.0 to show more complete information of 'identity' for HTTPS web pages.

    https://support.Mozilla.com/en-us/KB/site+identity+button

    You can add a padlock in the address bar with the add-on locks- https://addons.mozilla.org/firefox/addon/padlock-icon

  • Hello! What will happen to the bookmarks that are different from one computer to another? the Sync feature will be mixed together, or those on the 1st computer prevail?...

    Add the sync - mixed after its done?

    Hello!

    If you choose to synchronize the bookmarks that all of them will be put together and pushed across devices.

    Let me know if you need further clarification.

  • I have NO way to type in the site, of that I'm looking. What has happened in the field "address".

    When I'm on IE, I can type in the web address, hit "enter" and be directed to the place where I want to go. It is now in the Firefox application. Pretty weird.

    Hi ptorrie,

    Try going to view > toolbars > Navigation toolbar. That will bring the address bar back.

    I also see that you are using an older version of Firefox. You should consider updating. There are many benefits to the latest version of Firefox. If you are interested, take a look at article of knowledge Update Firefox to the latest version.

    Hope this helps!

  • People in the morning; Anyone know what is happening with the strange language to search on the Microsoft Update site (server)?

    I've hidden the update, but am wary of him jumping or leaching into my machine.  Microsoft - Help!

    To be a little more specific:

    Copy/paste of Susan Bradley - volunteer here not not an employee of MS post in http://answers.microsoft.com/en-us/windows/forum/windows_7-update/windows-7-update-appears-to-be-compromised/e96a0834-a9e9-4f03-a187-bef8ee62725e?page=4

    QUOTE

    Microsoft updates have specific self-signed certificates provided by Microsoft.  What happened here was the Oops man.

    Don't panic: by mistake, Microsoft released a patch from Windows Update 'test ' | ZDNet:
    http://www.ZDNet.com/article/Microsoft-accidentally-issued-a-test-Windows-Update-patch/

    "A Microsoft spokesperson confirmed Wednesday that he had"bad published an update of test"and that it is withdrawing."

    END OF QUOTE

  • automatic loading of user name and password take place on a site and one site and I don't want to do but can ' t stop.

    As my question States I don't want automatic loading on any site and it happens on this one site. I went through the tools and options and there is no sites listed for automatic loading. There is no saved passwords. If I go on the site using Internet explorer, the problem does not occur.

    Hi again, I solved the problem. I reinstalled Firefox first but that does not do so I reset Firefox and who took out clear Auto-complete in. Now will have to reinstall the extensions, etc., but I am happy, thank you for spending the time.

  • I am trying to export information from one site to the other; i.e. doba products to sell on ebay. I get an error telling me to "set associations"?

    I'm trying to export information from one site to another, i.e. the products to sell from doba to ebay.  I get an error telling me to "set associations"?

    Looks like a command prompt to set the default program for opening a certain type of file.

    This can be done in two contexts > Apps or right click on the Start button to open the Control Panel, choose the command display by: icons, then default programs.

Maybe you are looking for