Size of SGA and PGA

Hi all

I have a question.
What are the best criteria to define the size of the SGA and PGA size in oracle 10g? and size in oracle 11g memory_target?
Is related to the size of the data? What is the criteria and factors which affects setting the size of the SGA, PGA (10 g) and memory_target (11 g)?

Kind regards

Hello

How can identify the best value for V memory_target $ MEMORY_TARGET_ADVICE?

We can take the example below:

SQL> select * from v$memory_target_advice;

MEMORY_SIZE MEMORY_SIZE_FACTOR ESTD_DB_TIME ESTD_DB_TIME_FACTOR    VERSION
----------- ------------------ ------------ ------------------- ----------
        393                ,75        17909              1,0004          0
        524                  1        17902                   1          0
        655               1,25        17900               ,9999          0
        786                1,5        17897               ,9997          0
        917               1,75        17897               ,9997          0
       1048                  2        17897               ,9997          0

You can see that 786 MB ESTD_DB_TIME_FACTOR beyond cannot be improved (it stuck here to 0.9997). So I may be updated (in this example) the MEMORY_TARGET 786 MB, I won't have any advantage to further increase.

Hope this helps.
Best regards
Jean Valentine

Tags: Database

Similar Questions

  • SGA and PGA of allocation

    Hello

    I doubt in Oracle database installation. During installation, we specify Allocate memory as a percentage of total physical memory 40% or 50% from of our requirement. This value includes the SGA and PGA or it applies only to the SGA?

    Thanks in advance

    "The total memory usage can grow beyond the value of MEMORY_TARGET. For example, memory is allocated to the PL/SQL tables and varrays regardless of the value of the MEMORY_TARGET as long the memory is available at the operating system level. »

    The PL/SQL tables and varrays reside in the PGA.

    Good point, thanks for that.
    So, we cannot control ORACLE for not using more than one particular limit?

  • How to change the SGA and PGA in 10g r2 RAC

    Hello

    How to change the SGA and PGA in 10g r2 RAC, its Linux.

    Hello

    Here's the way I followed to change the SGA and PGA in CARS.
    --------------------------------------------------------------------------------
    Action plan to change the parameter memory in the environment(5/21/2010) of production

    Note:
    =====
    Practice must be done in the DEV/TST environment before going to Production.
    Although the procedure can be applied in the testing environment the evolution of values
    used in the test environment should be amended since number of RAM are not the
    even between the production and test servers.

    1 changes to these two parameters in one of
    the prod instance, e.g. PROD1
    ====================================================
    Connect as sysdba on sqlplus
    --------------------------

    Change:

    ALTER system set sga_target = 28G scope = spfile sid ='* ';

    Change:

    ALTER system set pga_aggregate_target = 4G scope = spfile sid ='* ';

    SQL > alter system set pga_aggregate_target = 4G scope = both;
    SQL > show parameter pga_aggregate_target;
    -should see the number altered on both instances

    Change:

    SQL > alter system set sga_max_size = 28G scope = spfile sid ='* ';

    SQL > alter system set sga_max_size = 28G scope = spfile;

    SQL > alter system set sga_target = 28G scope = spfile;

    3 stop PROD database (two instances must stop)

    $> srvctl stop database d PROD
    $>. / $ ORA_CRS_HOME/bin/crs_stat - to check the status of the database

    4. establish the PROD database (two Forum should be high)

    $> srvctl START database-d PROD
    $>. / $ ORA_CRS_HOME/bin/crs_stat - to check the status of the database

    connection in both cases as sysdba to check
    --------------------------------------------

    SQL > show parameter pga_aggregate_target
              
    SQL > show parameter sga_max_size
    -should see the number of change always there in both cases
    -According to step 1

    -After confirmation above two parameters are changed on both instances.
    -then make the syntax below in a case

    (5) check that everything is ok

  • SGA and PGA

    Hello
    10g R2 on Win 2003, if I have:
    SGA_TARGET=4G
    
    SGA_MAX_SIZE=4G
    PGA_AGGREGATE_TARGET=3G
    Oracle is 7 G maximum physical memory on the server?
    Thanks for the reply.

    user522961 wrote:
    Hello
    10g R2 on Win 2003, if I have:

    SGA_TARGET=4G
    
    SGA_MAX_SIZE=4G
    PGA_AGGREGATE_TARGET=3G
    

    Oracle is 7 G maximum physical memory on the server?
    Thanks for the reply.

    Yes and no. Yes, because if consumption of memory would be in closed settings of the SGA and PGA, it will remain up to 7 GB. But setting the PGA TOUR does not have a threshold. So if Oracle wouild requires a memory more than 3 GB and it can occupy it available physical RAM of the system, it can increase more than 3 GB as well. After that the operation would not be complete, that submission will be returned to o/s.
    HTH
    Aman...

  • What is sga and pga configuration set up

    Hi Expert,

    Please help me with my question

    What is the exact configuration sga, pga and other setting

    Win2003 operating system 32-bit and oracle 8i

    64 GB of RAM
    database size 70 GB
    processor 2.13 ghz

    BMG =
    PGA =
    db_block_buffers =
    shared_pool_size =
    LARGE_POOL_SIZE =
    log_buffer =
    DB_BLOCK_SIZE =
    sort_area_size =
    sort_area_retained_size =

    user12255952 wrote:
    my hit ratio is low 76
    So what can I do

    What ratio of hit?

  • What is the difference between the SGA and PGA

    Hi guys I know what is SGA but have little difficulty in the PGA please explain

    There are two explanations below for user advance however I understand CMS please explain pga with simple logic.

    Published by: user11180084 on May 20, 2009 03:49

    user11180084 wrote:
    Hi guys I know what is SGA but have little difficulty in the PGA please explain

    There are two explanations below for user advance however I understand CMS please explain pga with simple logic.

    Well I'll share the example I give when I'm talking about the same. Suppose that there are 10 people sitting and listening in a class. They are all would have some portable things with them in which they would write something. Now suppose you also be a student there in this session. You let someone write in your own laptop? I guess that the ansswe would not be for these reasons

    1) redundancy the other person may wish to write something that you've already written.

    2) private life you don't want anyone else to see what you did and wrote.

    3) security for the data (this would not happen with humans, but with processes) another person can write about the same place where you wrote already, leading to corruption of data.

    If we go back to oracle, if you give an order by clause, is now all rest also begins to see the sorted data? No, I guess that would be the answer. ThisMeans that there is some data that needs to be specific for your session, which should be only usable and visible from your session. Now if we can call it a little more casual language, we need a private copy for each session to maintain its private data. This private copy is assigned to the session eash connected in oracle in the form of its own Global Area (PGA) of the program.

    Hopefully this should clear it. Let me know if you are not yet clear.

    HTH
    Aman...

  • What size should be more PGA or CMS?

    While the creation of database of 4 GB which size should be more PGA or CMS? do you recommend the size?
    Thank you.

    You can set the AMM and database automatically select the correct value for the SGA and PGA:
    http://docs.Oracle.com/CD/E11882_01/install.112/e24321/inst_task.htm#BABBBHJH

    Specify Configuration Options:
    Provide the following configuration information, and click Next:
    Memory:
    The Enable Automatic Memory Management option is selected by default. This option enables the database to automatically distribute memory between SGA and PGA. If you deselect this option, then the SGA and PGA must be sized manually.
    
  • Ask the operation slow with large SGA and fast with little CMS

    Hello

    We have a situation where one of the insert is running slow and fast QA in PROD. Both are the same versions of database - Oracle 10.2.0.4 on HP Unix 11.31. To avoid the cause of databases running on another server, we copied from our Production database to the same server where the QA database is running and began with init.ora PROD that has 7 GB 6 GB SGA_TARGET and SGA_MAX_SIZE. For the QA database, SGA_MAX_SIZE is 700 MB and SGA_TARGET is 600 MB. Both are running on the same server, and with the same data. We have refreshed QA with data from PROD. If we start with PROD init.ora QA database, QA also behaves the same way PROD.

    This problem is only with the specific insert. Here is the result of this specific statement tkprof. Can someone please interpret this for me? I am poor in SQL tuning :-( Why the statement behaves ODD with the size of the SGA PROD? Generally, we would think THAT larger SGA should give better performance.

    call the query of disc elapsed to cpu count current lines
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Run 1 56710.39 56067,75 7343 311186373 0 0
    Fetch        0      0.00       0.00          0          0          0           0
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Total 2 56710.39 56067,76 7343 311186373 0 0

    Chess in the library during parsing cache: 1
    Optimizer mode: CHOOSE
    The analysis of the user id: 27 (TEST)

    Rows Row Source operation
    -------  ---------------------------------------------------
    0 CRDETAIL of SEQUENCE (cr = 0 pr = 0 pw = time 0 = 29 US)
    0 REVIEWS (cr = 0 pr = 0 pw = time 0 = 21 US)
    0 SORT GROUP BY (cr = 0 pr = 0 pw = time 0 = 20 US)
    401 HASH RIGHT SEMI JOIN (cr = 23299915 pr 7343 pw = time = 0 = 93982966 en)
    237 TABLE ACCESS BY INDEX ROWID CR_STRUCTURE_VALUES2 (cr = 96 pr = 0 pw = time 0 = 504 en)
    253 CR_STRUCTURE_VALUES2_PK INDEX RANGE SCAN (cr = 4 pr = 0 pw = time 0 = 278 en)(object id 1467582)
    TABLE ACCESS BY INDEX ROWID CR_COST_REPOSITORY 841 (cr = 23306003 pr 7343 pw = time = 0 = 94546465 en)
    1317368058 NESTED LOOPS (cr = 79721182 pr 7343 pw = time = 0 = 18565176955 en)
    VIEW 26912 (cr = pr 9874 7343 pw = time = 0 = 5269231 en)
    26912 MINUS (cr = pr 9874 7343 pw = time = 0 = 5242317 en)
    27462 SORT UNIQUE (cr = 9627 pr = 7329 pw = time 0 = 5040815 en)
    271564 CR_STRUCTURE_VALUES2 TABLE FULL ACCESS (cr = 9627 pr = 7329 pw = time 0 = 1357961 en)
    568 SORT UNIQUE (cr = 247 pr = 14 pw = time 0 = 43467 US)
    TABLE ACCESS BY INDEX ROWID CR_STRUCTURE_VALUES2 2357 (cr = 247 pr = 14 pw = time 0 = US 14751)
    2357 CR_STRUCTURE_VALUES2_PK INDEX RANGE SCAN (cr = pr 11 = 14 pw = time 0 = 10028)(object id 1467582) US
    INDEX RANGE SCAN CRCR_MN_IX 1317341146 (cr = 79711308 pr = 0 pw = time 0 = 50420511 US)(object id 1469401)


    Implementation plan of lines
    -------  ---------------------------------------------------
    0 THE INSERT STATEMENT MODE: CHOOSE
    SEQUENCE "CRDETAIL" 0 (SEQUENCE)
    0 REVIEWS
    0 TRI (GROUP BY)
    401 HASH JOIN (RIGHT HALF)
    HOW TO ACCESS THE TABLE 237: ANALYSES (BY INDEX ROWID) OF
    "CR_STRUCTURE_VALUES2" (TABLE)
    INDEX 253 MODE: SCANNED (SCAN INTERVAL) OF
    "CR_STRUCTURE_VALUES2_PK" ((UNIQUE) INDEX)
    ACCESS MODE TO THE 841 TABLE: ANALYSIS (BY INDEX ROWID) OF "CR_COST_REPOSITORY" (TABLE)
    1317368058 NESTED LOOPS
    VIEW 26912
    26912 LESS
    27462 SORT (SINGLE)
    TABLE 271564 ACCESS MODE: ANALYZED (FULL) OF
    "CR_STRUCTURE_VALUES2" (TABLE)
    568 (SINGLE) SORT
    HOW TO ACCESS THE TABLE 2357: ANALYSES (BY INDEX ROWID)
    OF "CR_STRUCTURE_VALUES2" (TABLE)
    INDEX 2357 MODE: SCANNED (SCAN INTERVAL) OF
    "CR_STRUCTURE_VALUES2_PK" ((UNIQUE) INDEX)
    MODE 1317341146 INDEX: ANALYSIS (SCAN INTERVAL) OF "CRCR_MN_IX".
    (INDEX)

    ********************************************************************************

    And here is the statement in question:

    INSERT
    INTO cr_allocations_stg
      (
        "ID",
        "COMPANY",
        "GL_ACCOUNT",
        "COST_CENTER",
        "COST_ELEMENT",
        "PROFIT_CENTER",
        "MASTER_ORDER",
        "ORDER_NUMBER",
        " FUNDING_PROJECT",
        "POSTING_ORDER",
        "POSTING_COST_CENTER",
        "ORIG_COST_ELEMENT",
        "ORIG_COST_CENTER",
        "ORIG_PROFIT_CENTER",
        "TRADING_PARTNER",
        "WORK_ORDER_NUMBER",
        "DR_CR_ID",
        "LEDGER_SIGN",
        "QUANTITY",
        "AMOUNT",
        "MONTH_NUMBER",
        "MONTH_PERIOD",
        "GL_JOURNAL_CATEGORY",
        "AMOUNT_TYPE",
        "ALLOCATION_ID",
        "TARGET_CREDIT",
        "CROSS_CHARGE_COMPANY"
      )
    SELECT crdetail.nextval,
      "COMPANY",
      "GL_ACCOUNT",
      "COST_CENTER",
      '5253000',
      "PROFIT_CENTER" ,
      "MASTER_ORDER",
      "ORDER_NUMBER",
      "FUNDING_PROJECT",
      ' ',
      "POSTING_COST_CENTER",
      "ORIG_COST_ELEMENT",
      "ORIG_COST_CENTER",
      "ORIG_PROFIT_CENTER",
      " TRADING_PARTNER",
      "WORK_ORDER_NUMBER",
      CASE
        WHEN amount > 0
        THEN 1
        ELSE -1
      END,
      1,0,
      ROUND(amount * 0.0574000000, 2),
      month_number,
      0,
      '593',
      1 ,
      7,
      'TARGET',
      ' '
    FROM
      (SELECT "COMPANY",
        "GL_ACCOUNT",
        "COST_CENTER",
        "PROFIT_CENTER",
        "MASTER_ORDER",
        "FUNDING_PROJECT",
        "POSTING_COST_CENTER",
        "ORDER_NUMBER",
        "ORIG_COST_ELEMENT",
        "ORIG_COST_CENTER",
        "ORIG_PROFIT_CENTER",
        "TRADING_PARTNER",
        "WORK_ORDER_NUMBER",
        month_n umber,
        0,
        SUM(amount) amount,
        SUM(quantity) quantity
      FROM CR_COST_REPOSITORY
      WHERE (amount_type    = 1 )
      AND (month_number     = 201404)
      AND ( "MASTER_ORDER" IN MASTER_ORDER
      AND EXISTS
        (SELECT 1
        FROM
          (SELECT SUBSTR(ELEMENT_VALUE, 1, DECODE(INSTR(ELEMENT_VALUE, ':'), 0, L ENGTH(ELEMENT_VALUE) + 1, INSTR(ELEMENT_VALUE, ':')) - 1) AS ELEMENT
          FROM CR_STRUCTURE_VALUES2
          WHERE STRUCTURE_ID       = 2
          AND DETAIL_BUDGET        = 1
          AND STATUS               = 1
          AND UPPER(PARENT_VALUE) IN ('ELECTRIC ALL OTHER','ELECTRIC COR')
          MINUS
          SELECT SUBSTR(ELEMENT_VALUE, 1, DECODE(INSTR(ELEMENT_VALUE, ':'), 0, LENGTH(ELEMENT_VALUE) + 1, INSTR(ELEMENT_VALUE, ':')) - 1) AS ELEME NT
          FROM CR_STRUCTURE_VALUES2
          WHERE STRUCTURE_ID      = 9
          AND DETAIL_BUDGET       = 1
          AND STATUS              = 1
          AND UPPER(PARENT_VALUE) = 'A&G OH ORDER EXCLUSION'
          ) Z
        WHERE Z.ELEMENT = MASTER_ORDER
        )
      AND "GL_ACCOUNT"   <> '91081001'
      AND "COST_ELEMENT" IN COST_ELEMENT
      AND EXISTS
        (SELECT 1
        FROM CR_ST RUCTURE_VALUES2 A
        WHERE A.STRUCTURE_ID = 5
        AND A.DETAIL_BUDGET  =1
        AND A.STATUS         = 1
        AND COST_ELEMENT     = A.ELEMENT_VALUE
        )
      AND "GL_ACCOUNT" NOT IN ('5100000','5325000','5327000')
      AND "SOURCE_ID"      <> '7' )
      GROUP BY "COMPANY",
        "GL_ACCOUNT",
        "COST_CENTER",
        "PROFIT_CENTER",
        "MASTER_ORDER",
        "FUNDING_PROJECT",
        "POSTING_COST_CENTER",
        "ORDER_NUMBER",
        "ORIG_COST_ELEMENT",
        "ORIG_COST_CENTER",
        "ORIG_PROFIT_CENTER",
        "TRADING_PARTNER",
        "WORK_ORDER_NUMBER",
        month_number
      )
    
    

    Enjoy your first answer on this.

    Thank you and best regards,

    Murali

    Option 1:

    You run with two different ORACLE_HOMEs - that is potentially two different copies of the Oracle executable to the patch different sets?

    Option 2:

    A change of size of SGA is unlikely to directly affect the execution plan, but it also has change the size of the PGA TOUR at the same time? A change in the pga_aggregate_target could affect the choice of the mechanism of the join optimizer. (But not to change an in a join; but hash semi-join to nested loop is possible).

    Possibility 3:

    The db_file_multiblock_read_count leaves then the size that oracle defines by default depends on the db_cache_size divided by process; so, if you have reduced the sga_target_size you (implicitly or explicitly, no doubt) reduced the db_cache_size, and if you don't reduce the process in the same way, then the default db_file_multiblock_read_count been reduced. What you did on your system stats, this could change the cost of (for example) full tablescans, which could lead to a change in execution plan.

    It would be useful to see the results of a call to explain the plan / dbms_xplan.display in both cases so that we can see the variation in estimates of Oracle.

    Concerning

    Jonathan Lewis

  • MacBook Pro running Mac OS 10.6. The font size for tabs and bookmarks toolbar is too small for comfortable reading for older eyes. Is there a way to change or expand?

    The font size is smaller and harder to read than on FF 3.x. Want to make some larger or to choose a different, more readable font altogether.

    Extension of theme font & size changer.

    https://addons.Mozilla.org/en-us/Firefox/addon/theme-font-size-changer/

  • How check today of size of rman and export size in oracle

    I need to check the sizes of rman and exports todays and length... .in Linux environment list us files with sizes .but we see oracle point of you...

    You can check the size of the last day rman backups status:

    Select DB_NAME, TO_CHAR (START_TIME, "mm/dd/yy HH24 '") start_time, TO_CHAR (END_TIME, ' Mm/dd/yy HH24') end_time, time_taken_display, STATUS,

    Round (OUTPUT_BYTES/1024/1024) BACKUP_SZ

    OF e RC_RMAN_BACKUP_JOB_DETAILS

    where start_time between sysdate-1 and sysdate

    order by 1, DB_NAME;

  • What are the differences between pga memory max session and pga session in memory?

    Hi all

    What are the differences between pga memory max session and pga session in memory?

    SELECT s.sid, n.name, s.value FROM v$ sesstat s, v$ statname n

    WHERE s.statistic # = n.statistic #.

    AND n.name = 'pga session in memory. "

    SELECT s.sid, n.name, s.value FROM v$ sesstat s, v$ statname n

    WHERE s.statistic # = n.statistic #.

    AND n.name = 'pga memory max session ";



    Note that I have read the documentation. However, it is not clearly explained.


    Thank you

    John Stegeman wrote:

    I agree with the comments of the Ed, NightWing.

    You do not have a story to ask questions that are clearly answered in the documentation.

    Mind your own business. If you answer the question, so answer! Otherwise, please stop the thread engrossing.

  • Hard to keep the shape size between Illustrator and Photoshop

    I do a lot of my work to vector in Photoshop form, because it has the basic tools I need. Recently, however I wanted to learn and use some more advanced in illustrator forms tools. The problem that I've run is that when I try and move forms between the 2 programs their pixel sizes are not kept at all, not even close.

    I have attached a screenshot showing the same form in both Photoshop (left) and when stuck in Illustrator (right). Note the zoom levels are the same and therefore the pixel grids are the same size.

    Screen Shot 2016-03-10 at 10.16.13 AM.png

    I need to use the pixel preview mode in illustrator often, so I can't just simply turn off and ignore the difference. This happens when either I paste the shape in illustrator or if I import or drag the shape to a library of creative clouds where I kept the shape.

    Here's the thing, if I'm working on the form at this tiny size in illustrator and then paste it into photoshop, it returns to the correct size. However, if in Illustrator, I choose to use the pixel grid and draw a shape to the appropriate size, when I pick her up photoshop it becomes huge.

    I searched on through all the preferences of the two applications, ensuring that the measures are all set to pixels everywhere, as the value of the 72 DPI sicesdonneessontdisponibles. I even went to the length of completely uninstall Illustrator, blowing all my settings, re-installing and setting up again. Nothing has changed.

    One of my colleagues has this problem at all. A box of 10px in an application becomes a zone of 10px in the other, but we can not simply to understand why it does not work the same way for me.

    Help, please!

    Set the resolution of your Photoshop image on 72 dpi.

  • I just bought a new laptop and have downloaded Lightroom 4.4. The font size is tiny and unreadable. I looked in preferences to see if the font size can be redefined to allow me to read the screen but can't see sort (except the m application

    I just bought a new laptop and have downloaded Lightroom 4.4. The font size is tiny and unreadable. I looked in preferences to see if the font size can be redefined to allow me to read the screen but can't see anything (except the magnification tool application) to read the screen.

    Any ideas?

    Hello

    You can change the font of the user interface of the options below.

    • On Windows, choose Edition > Preferences > Interface > font size:
    • On Mac OS, choose Lightroom > Preferences > Interface > font size:

    Change font size according to your need.

    You must close out of Lightroom and restart for the change to take effect.

    Let us know if this helps!

    Kind regards

    Vivet

  • I'm new to Lr, can someone tell me if there is a limit of size PRACTICE to a Lightroom catalog file? Should I keep the file size within a certain range of size of GB and then create a new? Thank you I would be grateful of any advice.

    I'm new to Lr, can someone tell me if there is a limit of size PRACTICE to a Lightroom catalog file? Should I keep the file size within a certain range of size of GB and then create a new? Thank you I would be grateful of any advice.

    He has no such limit, and in fact some users in this domain and other forums report catalogues over 1/2 million pictures works well.

    The idea to create multiple catalogs because you don't want to get too big catalog file size is a bad idea that you should never think of it again.

  • What is the size in width and height a logo must be set on?

    Hello

    I want to design a logo, but I don't know what size in width and height that I should put it. Is there a standard size? Also, what format should I deliver to my customer? PDF or JPG, or all of the above?

    Martin,

    The size and proportions of the logos vary a lot, no dimensions/dimensions standard.

    PDF should be one, maybe have them, but not JPEG: formats no dissipative PNG24 and TIFF would be preferable; for those, different sizes for different purposes would be normal.

Maybe you are looking for