Sga_target_size and sga_max_size

I noticed our production Oracle Instance sga_target_size configuration might not utilize the host resource very well. The Solaris host has 32G physical memory, it is dedicated host for Oracle Instance, only one instance is running on there, but both SGA_TARGET_SIZE and SGA_MAX_SIZE are configured=2000M which is about 2G.
I want to increased the SGA_MAX_SIZE and SGA_TARGET_SIZE to 24G so that Oracle can better utilize the memory resource.
Any advice on this? Anything else I might neglect to check? Thanks in advance!

Pl post details of OS and database versions.
>
I want to increased the SGA_MAX_SIZE and SGA_TARGET_SIZE to 24G so that Oracle can better utilize the memory resource.
>
Are there reasons you want to increase SGA ? Are you experiencing any performance issues ? If so, what do AWR / Statspack outputs show ?
HTH
Srini

Similar Messages

  • Need Clarification on sga_target and sga_max_size

    HI,
    I need some clarification in SGA_TARGET and SGA_MAX_SIZE.
    I have the parameter like below.
    SGA_MAX_SIZE=10G
    SGA_TARGET=9G
    And I spread the 9G to all components like (DB_CACHE,SHARE_POOL etc.,).
    My doubt, Incase db need the memory more than 9GB, Whether it automatically take the extra 1G from sga_max_size
    or we have to change the sga_target to 10G.

    Unless and untill, we set the sga_taget=10G, The extra 1G(from sga_max_size) is not used.
    Am i correct?No - its wrong. Any change in the value of SGA_TARGET affects only the sizes of the auto-tuned components. If you increases its value then increased memory will be distributed in only among the components controlled. So, yes 1GB will be used, because have sga_max_size=10G. If you decrease the value then reduced memory is taken back by the auto-tuning policy from one or more of the auto-tuned components.
    If SGA_MAX_SIZE is greater than SGA_TARGET, you can increase SGA_TARGET without restarting the instance. Otherwise, you'd need to shutdown and restart the instance if you wanted to increase SGA_TARGET.
    Regards
    Girish Sharma

  • Diffrence Between SGA_TARGET and SGA_MAX_SIZE

    Can Any one explain me what is the diference between
    SGA_TARGET and SGA_MAX_SIZE
    Thanks In Advance.

    sga_max_size -- This parameter sets the hard limit up to which sga_target can dynamically adjust sizes. At database start time, Oracle will allocate sga_max_size in RAM (or set sga_max_size to the sum of the existing pool sizes), so in order not to waste RAM it may be a good idea to have sga_max_size and sga_target at the same value, but there may be times when you want to have the capability to adjust for peak loads. By setting this parameter higher than sga_target, you allow dynamic adjustment of the sga_target parameter.
    sga_target -- This parameter is new in Oracle Database 10g and reflects the total size of memory footprint a SGA can consume. It includes in its boundaries the fixed SGA and other internal allocations, the (redo) log buffers, the shared pool, Java pool, streams pool, buffer cache, keep/recycle caches, and if they are specified, the non-standard block size caches.

  • WHAT WILL BE SGA_TARGET AND SGA_MAX_SIZE VALUE

    HI ALL
    RAM MEMORY 7360
    swap memory 8704 M
    OS--AIX6
    DATABASE SIZE ---50 GB
    WHAT WILL BE SGA_TARGET AND SGA_MAX_SIZE VALUE

    WHAT WILL BEThe values will be whatever you set them to be. OR sga_max_size will be automatically derived from db_cache_size + shared_pool_size + ............
    yes, I know that you are looking for a "thumb-rule" and your question is "_What *should* be ..."_ You might get many answers.
    The right answer is "what is really required based on the database, i/O pattern, concurrency etc
    Hemant K Chitale

  • Advice on sga_target and sga_max_size

    hi,
    a little abt my existing system
    HP UX 11.11 oracle 10.2.0.4 EBS11.5.10
    memory 4GB
    SGA 2 GB
    i will be increasing physical emory to 20GB today
    i need advice on setting sga_target and sga_max_size
    currently my SGA_MAX_SIZE=2GB

    If you are increasing the physical memory then set the SGA_MAX_SIZE to max estimated size based on application usage and keep the SGA_TARGET to whatever value you have currently.
    This helps to increase SGA dynamically (SGA_TARGET) when ever application needs and you no need to shutdown your database.
    It is always advised to keep SGA_MAX_SIZE > SGA_TARGET.
    Hope this helps.
    Regards.
    Satishbabu Gunukula
    http://oracleracexpert.blogspot.com
    [Click here to learn Install and Configure ASM in 10g|http://oracleracexpert.blogspot.com/2009/08/install-and-configure-asmlib-in-10g.html]
    Edited by: Satishbabu Gunukula on Aug 21, 2009 12:20 PM

  • Am I understanding SGA_TARGET and SGA_MAX_SIZE correctly?

    Let's say I set SGA_MAX_SIZE to 1024MB and SGA_TARGET to 512MB.
    As I understand it, this means that the total SGA size will never exceed 1024MB (that's the "hard cap"). Oracle will try to keep things around 512MB, but may burst up to 1024MB as needed.
    Is that correct? Otherwise, I don't see the point of SGA_MAX_SIZE vs. SGA_TARGET.
    BTW...I know MEMORY_TARGET and MEMORY_MAX_TARGET are the new 11g params, but Oracle ships XE with those turned off and the 10g SGA_* params and PGA_AGGREGATE_TARGET set...?

    Hi,
    In Oracle 11g MEMORY_TARGET is for automatic SGA and PGA management.MEMORY_MAX_SIZE is the maximum size to which your MEMORY_TARGET can be allocated.As shown below:
    SQL> show parameter %MEMORY%
    NAME TYPE VALUE
    hi_shared_memory_address integer 0
    memory_max_target big integer 1G
    memory_target big integer 1G
    But,When it comes to managing various other memory component like shared_pool,large_pool,Db_buffer_cache,log_buffer_cache,java_pool we still have to manage SGA_TARGET.
    SQL> show parameter %SGA%
    NAME TYPE VALUE
    lock_sga boolean FALSE
    pre_page_sga boolean FALSE
    sga_max_size big integer 1G
    sga_target big integer 0
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/
    Edited by: Rafi (Oracle DBA) on Jun 22, 2011 11:54 PM

  • SGA_TARGET and SGA_MAX_SIZE?

    Dear Professional,
    I have been asked by my client, He wants me to install Oracle 11g software in three servers. One server has  16GB another has 32 GB, and another has 64 GB of RAM? What would be the Best swap size? How memory I need to assign to SGA? what will be the SHmax and Shmin, kernal parameter? Please advice..
    Thanks
    Sagar

    The answer is 16GB, for all the machines.
    See here for reference:
    Oracle Database Quick Installation Guide
    Hope that helps,
    -Mark

  • SGA_MAX_SIZE  and  SGA_TARGET  in Oracle 10G

    We have the following H/W with Solaris 9
    SPARC-IV 16 CPUs
    32GB RAM
    128GB swap
    What is the optimal size of sga_target and sga_max_size that can be configured for a heavy batch processing oracle server. Nothing runs except oracle in the above server.
    We have currently 3GB SGA size , however our heavy queries are very slow.
    We have huge updates on tables with more than 200Millions rows.
    Do we need to have JAVA_POOL if the java stored procedure are NOT used.
    However we are connecting to this database using JDBC also.
    Moreover ASM is enabled in this server.
    You expert suggetions are always welcome.

    That's not a question that can be answered easily. It depends very much on where the time is going. Three main targets:
    Writing the log file - which is largely about use of disks, not memory.
    Reading data - lots of single block reads suggest looking at a bigger cache
    Reading and writing temp because of large sorts/hash joins - pga configuration
    One difficulty with TEMP is that the I/Os are often asynchronous, so a session can do a lot of TEMP I/O without recording much time - which means it can cause a problem elsewhere without suffering a problem itself.
    You didn't mention the pga_aggregate_size - which is an important consideration in 10g and can be more important than the sga sizing in DSS and batch-like processing. Between them, the SGA and PGA_aggregate_target should probably account for a very large fraction of your memory - but (since you are on Solaris) make sure you look into large memory pages and intimate shared memory, otherwise you may need to leave a lot of memory available for the O/S memory management mechanisms.
    As far as the java pool is concerned, check v$sgastat for pools which constantly show free memory, and reclaim any large free volumes.
    Bottom line - if you've got the memory in the box, you might as well use it in the best possible place; but at the moment we don't have enough information to tell us where it would be most useful.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk

  • Relative size of sga_max_size and sga_target to the physical memory

    Dear Experts,
    I have installed oracle 10.2.0.4 on AIX 5.3 with 32 GB of physical memory.
    Let us say other applications on the server consume 10 GB of physical memory.
    Now how should i plan the size of SGA_TARGET and SGA_MAX_SIZE on the same.

    As per Oracle® Database Performance Tuning Guide 10g Release 2 (10.2):
    You must then divide the resulting memory between the SGA and the PGA.
    For OLTP systems, the PGA memory typically accounts for a small fraction of the total memory available (for example, 20%), leaving 80% for the SGA.
    For DSS systems running large, memory-intensive queries, PGA memory can typically use up to 70% of that total (up to 2.2 GB in this example).
    Good initial values for the parameter PGA_AGGREGATE_TARGET might be:
    For OLTP: PGA_AGGREGATE_TARGET = (total_mem * 80%) * 20%
    For DSS: PGA_AGGREGATE_TARGET = (total_mem * 80%) * 50%
    where total_mem is the total amount of physical memory available on the system.
    (http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#i49320)

  • ORA-27101: shared memory realm does not exist and ORA-01139: RESETLOGS

    HI ALL,
    After the oracle has installed on a solaries server successfully, i am unable to login into oracle database.
    Below are the errors messages :
    1) ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    2) Media recovery complete.
    alter database open resetlogs
    ERROR at line 1:
    ORA-01139: RESETLOGS option only valid after an incomplete database recovery.
    and When i try to login into oracle as root .
    this is the error :
    sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri Feb 12 15:52:49 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    ld.so.1: oracle: fatal: libskgxp10.so: open failed: No such file or directory
    ERROR:
    ORA-12547: TNS:lost contact
    my Operating system details :
    SunOS Blade3-Chassis2 5.10 Generic_142900-03 sun4v sparc SUNW,Netra-CP3060
    Anyone please help me here. waiting for your reply.
    Below are the ORACLE_SID Details :
    1) echo $ORACLE_SID ----- > ems
    2)ps -eaf | grep smon -------> ora_smon_ems
    do you need any data?
    Edited by: user8959150 on Feb 11, 2010 7:19 PM

    Hi
    We mostly receive this error message ( ORA-27101: shared memory realm does not exist and ORA-01139)
    When our SGA_MAX_SIZE is greater than 1.7 G.b on
    You again configure your sga size
    and sga_max_size paramete will not greater than 1.7 G.b
    Hope your database will work correctly.
    for test purpose you set all your init.ora parameter
    db_cache_size=512m
    db_keep_cache_size=64m
    db_recycle_cache_size=16m
    java_pool_size=8m
    large_pool_size=16m
    shared_pool_size=256m
    shared_pool_reserved_size=64m
    sga_max_size=1600m
    sga_max_size will not be grater than combination of of db_cache_size db_keep_cache_size,db_recycle_cache_sizejava_pool_size+share_pool_size+share_pool_reserved_size
    Hope it will work fine.
    Regard
    Abdul Hameed Malik
    [email protected]

  • Oracle SGA MEMEORY SETTINGS , SGA_TRAGET , SGA_MAX_SIZE

    Hello Techies,
    I have a production environment where one of the Databases RAM is set to 6G where as the RAM installed on the server is 8GB. We have the Grid agent installed on it and according to the Oracle Grid there is impact on the performance and RAM has to be extened to 7.2 GB.
    Now my question is, whether we can extend this as we only have 8GB installed on the server. Will the left out 800 M is enough for the server?
    Or Should we need to extend the RAM on the server and then extend the SGA_TARGET AND SGA_MAX_SIZE? if so can you suggest the values.
    Could you shed some light on the cosiderations while we want to extend the SGA.
    Server - Windows
    DB - Oracle 10g
    Thank you.
    Regards,
    RanG.

    Hi sb92075,
    Here is the query , consuming significant DB time from Oracle Grid ...
    select e7.cmpcode as comp_no , e7.code as emcode , upper(a.add1) as user_name , upper(a.add2) as domain , upper(a.add3) as reviewer , upper(a.add4) as approver1 , upper(a.add5) as approver2 , a.emailaddr as email , l.cfvalue as costcentre , case e7.repcode3 when 'FRANCHISE' then '7001F' when 'STORE' then '7001S' else e7.cmpcode end as template , b.acnum as account , e7.name as account_holder
    from xxxx.oas_element e7 inner join coda.oas_elmaddrlist a on (e7.cmpcode = a.cmpcode and e7.code = a.elmcode and e7.elmlevel=a.elmlevel and a.catagory='EXPPORTAL') inner join xxxx.oas_rllist l on (e7.cmpcode = l.cmpcode and e7.code = l.elmcode and e7.elmlevel=l.elmlevel) left join xxxx.oas_elmbanklist b on (e7.cmpcode = b.cmpcode and e7.code = b.elmcode and b.elmlevel=2 and b.defbank=1)
    where e7.elmlevel=7 and e7.code like 'EM%' and l.lstseqno=1 and l.cffunction=0 and e7.cmpcode = '7001' and a.add1 is not null and a.add2 is not null and ((a.add3 is not null and a.add5 is not null and a.add2 = 'xxxx') or a.add2 != 'xxxx') and a.add4 is not null and b.acnum is not null and b.acname is not null
    =========================
    The other example of one of the 20 queries which run on this DB, i am sry for the lenght of the query ,
    =============================
    SELECT
      case 8 when 4 then 'T1' when 8 then 'T2' when 12 then 'T3' else 'Unknown' end,
      OAS_REPPACK.L1NAME,
      OAS_REPPACK.L1HDRTXT,
      OAS_REPPACK.L2NAME,
      OAS_REPPACK.L2HDRTXT,
      OAS_REPPACK.L3NAME,
      OAS_REPPACK.L3HDRTXT,
      OAS_REPPACK.L4NAME,
      OAS_REPPACK.L4HDRTXT,
      OAS_BALANCE.cmpcode,
      OAS_REPPACK.L5NAME,
      OAS_REPPACK.L5HDRTXT,
      OAS_REPPACK.LEAFNAME,
      OAS_REPPACK.LEAFHDRTXT,
      OAS_REPPACK.L2ORDER,
      OAS_REPPACK.L3ORDER,
      OAS_REPPACK.L4ORDER,
      OAS_REPPACK.L5ORDER,
    -- Actual YTD --
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE WHEN OAS_BALANCE.BALCODE = 'ACTUAL' THEN 1 ELSE 0 END
    *CASE WHEN IIS_CURRENCY(case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end, 'XEUR', 'Entity Currency' ) =  OAS_BALANCE.CURCODE THEN 1 ELSE 0 END
    *CASE WHEN  IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <= 8 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    -- Actual YTD Last Year--
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE WHEN OAS_BALANCE.BALCODE = 'ACTUAL' THEN 1 ELSE 0 END
    *CASE WHEN IIS_CURRENCY(case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end, 'XEUR', 'Entity Currency' ) =  OAS_BALANCE.CURCODE THEN 1 ELSE 0 END
    *CASE WHEN  IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <= 8 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013-1 THEN 1 ELSE 0 END
    -- Actual Full Year Last Year--
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE WHEN OAS_BALANCE.BALCODE = 'ACTUAL' THEN 1 ELSE 0 END
    *CASE WHEN IIS_CURRENCY(case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end, 'XEUR', 'Entity Currency' ) =  OAS_BALANCE.CURCODE THEN 1 ELSE 0 END
    *CASE WHEN   IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <= 9998 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013-1 THEN 1 ELSE 0 END
    -- Budget YTD --
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Entity Currency'  THEN 1
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Group Currency'  THEN IIS_BUDGETRATES.RATE
    ELSE 0 END
    *CASE WHEN OAS_BALANCE.BALCODE = IIS_PFBALCODE(OAS_BALANCE.BALCODE, 'Calendar Year')||'BUDG' THEN 1 ELSE 0 END
    *CASE WHEN  IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <= 8 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    -- Budget Full Year --
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Entity Currency'  THEN 1
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Group Currency'  THEN IIS_BUDGETRATES.RATE
    ELSE 0 END
    *CASE WHEN OAS_BALANCE.BALCODE = IIS_PFBALCODE(OAS_BALANCE.BALCODE, 'Calendar Year')||'BUDG' THEN 1 ELSE 0 END
    *CASE WHEN  IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    -- Estimate 1 --
    -- Actual T1--
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE WHEN OAS_BALANCE.BALCODE = 'ACTUAL' THEN 1 ELSE 0 END
    *CASE WHEN IIS_CURRENCY(case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end, 'XEUR', 'Entity Currency' ) =  OAS_BALANCE.CURCODE THEN 1 ELSE 0 END
    *CASE WHEN  CASE WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <=4 THEN 1 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') BETWEEN 5 AND 8 THEN 2 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') >= 9 THEN 3 END = 1 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    +
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE WHEN OAS_BALANCE.BALCODE = IIS_PFBALCODE(OAS_BALANCE.BALCODE, 'Calendar Year')||'EST1' THEN 1 ELSE 0 END
    *CASE WHEN  IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 AND IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') BETWEEN 5 AND 12 THEN 1 ELSE 0 END
      OAS_COMPANY.NAME,
      IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year'),
    -- Budget T1--
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Entity Currency'  THEN 1
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Group Currency'  THEN IIS_BUDGETRATES.RATE
    ELSE 0 END
    *CASE WHEN OAS_BALANCE.BALCODE = IIS_PFBALCODE(OAS_BALANCE.BALCODE, 'Calendar Year')||'BUDG' THEN 1 ELSE 0 END
    *CASE WHEN  CASE WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <=4 THEN 1 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') BETWEEN 5 AND 8 THEN 2 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') >= 9 THEN 3 END = 1 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    -- Budget T2--
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Entity Currency'  THEN 1
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Group Currency'  THEN IIS_BUDGETRATES.RATE
    ELSE 0 END
    *CASE WHEN OAS_BALANCE.BALCODE = IIS_PFBALCODE(OAS_BALANCE.BALCODE, 'Calendar Year')||'BUDG' THEN 1 ELSE 0 END
    *CASE WHEN  CASE WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <=4 THEN 1 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') BETWEEN 5 AND 8 THEN 2 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') >= 9 THEN 3 END = 2 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    -- Budget T3--
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Entity Currency'  THEN 1
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Group Currency'  THEN IIS_BUDGETRATES.RATE
    ELSE 0 END
    *CASE WHEN OAS_BALANCE.BALCODE = IIS_PFBALCODE(OAS_BALANCE.BALCODE, 'Calendar Year')||'BUDG' THEN 1 ELSE 0 END
    *CASE WHEN  CASE WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <=4 THEN 1 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') BETWEEN 5 AND 8 THEN 2 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') >= 9 THEN 3 END = 3 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    -- Estimate 0 --
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Entity Currency'  THEN 1
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Group Currency'  THEN IIS_BUDGETRATES.RATE
    ELSE 0 END
    *CASE WHEN OAS_BALANCE.BALCODE = IIS_PFBALCODE(OAS_BALANCE.BALCODE, 'Calendar Year')||'EST0' THEN 1 ELSE 0 END
    *CASE WHEN  IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    -- Estimate 2 --
    -- Actual T1--
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE WHEN OAS_BALANCE.BALCODE = 'ACTUAL' THEN 1 ELSE 0 END
    *CASE WHEN IIS_CURRENCY(case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end, 'XEUR', 'Entity Currency' ) =  OAS_BALANCE.CURCODE THEN 1 ELSE 0 END
    *CASE WHEN  CASE WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <=4 THEN 1 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') BETWEEN 5 AND 8 THEN 2 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') >= 9 THEN 3 END = 1 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    +
    -- Actual T2--
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE WHEN OAS_BALANCE.BALCODE = 'ACTUAL' THEN 1 ELSE 0 END
    *CASE WHEN IIS_CURRENCY(case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end, 'XEUR', 'Entity Currency' ) =  OAS_BALANCE.CURCODE THEN 1 ELSE 0 END
    *CASE WHEN  CASE WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') <=4 THEN 1 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') BETWEEN 5 AND 8 THEN 2 WHEN IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') >= 9 THEN 3 END = 2 AND IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 THEN 1 ELSE 0 END
    +
    SUM(OAS_BALANCE.FULL_VALUE
    *CASE
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Entity Currency'  THEN 1
    WHEN OAS_BALANCE.CURCODE = case OAS_BALANCE.cmpcode when '7004' then 'SEK' when '7041' then 'SEK' when '7015' then 'USD' when '7042' then 'USD' else 'EUR' end AND 'Entity Currency' = 'Group Currency'  THEN IIS_BUDGETRATES.RATE
    ELSE 0 END
    *CASE WHEN OAS_BALANCE.BALCODE = IIS_PFBALCODE(OAS_BALANCE.BALCODE, 'Calendar Year')||'EST2' THEN 1 ELSE 0 END
    *CASE WHEN  IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year') = 2013 AND IIS_PERIOD(OAS_BALANCE.PERIOD, 'Calendar Year') BETWEEN 9 AND 12 THEN 1 ELSE 0 END
    FROM
      OAS_BALANCE,
      OAS_GRPLIST  OAS_GRPLIST1RP,
      OAS_ELEMENT  OAS_EL1,
      OAS_HIMLIST  OAS_REPPACK,
      OAS_COMPANY,
      IIS_BUDGETRATES,
      IIS_BOSEC_CC  IIS_BOSECURITY_BAL,
      SELECT DISTINCT USRCODE, USRNAME, COMPANY FROM IIS_BOSEC_CC
      )  IIS_BOSECURITY_CMP
    WHERE
      ( OAS_COMPANY.CODE=OAS_BALANCE.CMPCODE  )
      AND  ( OAS_BALANCE.REPBASIS=0  )
      AND  ( OAS_EL1.ELMLEVEL=1  )
      AND  ( OAS_BALANCE.CMPCODE=OAS_EL1.CMPCODE and OAS_BALANCE.EL1=OAS_EL1.CODE  )
      AND  ( OAS_EL1.CMPCODE=OAS_GRPLIST1RP.CMPCODE and OAS_EL1.CODE=OAS_GRPLIST1RP.CODE and OAS_EL1.ELMLEVEL=OAS_GRPLIST1RP.ELMLEVEL and
    (OAS_GRPLIST1RP.GRPCODE  LIKE '1RB%' OR
    OAS_GRPLIST1RP.GRPCODE LIKE '1RP%')  )
      AND  ( OAS_REPPACK.GRPCODE=OAS_GRPLIST1RP.GRPCODE  )
      AND  ( OAS_REPPACK.CODE LIKE '1RP%'  )
      AND  ( IIS_BUDGETRATES.YR(+) =OAS_BALANCE.YR AND IIS_BUDGETRATES.PERIOD(+)=OAS_BALANCE.PERIOD AND
    IIS_BUDGETRATES.BALCODE(+) = OAS_BALANCE.BALCODE AND
    IIS_BUDGETRATES.CURCODE(+) = OAS_BALANCE.CURCODE  )
      AND  ( IIS_BOSECURITY_CMP.COMPANY=OAS_COMPANY.CODE  )
      AND  ( IIS_BOSECURITY_CMP.USRCODE=UPPER('exttino')  )
      AND  ( IIS_BOSECURITY_BAL.COMPANY=OAS_BALANCE.CMPCODE and IIS_BOSECURITY_BAL.COSTCENTRE=CASE  WHEN IIS_BOSECURITY_BAL.COSTCENTRE = 'ALL' THEN IIS_BOSECURITY_BAL.COSTCENTRE WHEN OAS_BALANCE.EL4 = ' ' THEN 'ALL' ELSE OAS_BALANCE.EL4 END  )
      AND 
        ( CASE WHEN 'Calendar Year' = 'Calendar Year'
              THEN OAS_BALANCE.YR
              WHEN 'Calendar Year' = 'Business Year'
              THEN CASE WHEN OAS_BALANCE.PERIOD <9    THEN OAS_BALANCE.YR ELSE OAS_BALANCE.YR+1 END
    END +1 = 2013  )
        OR
        ( CASE WHEN 'Calendar Year' = 'Calendar Year'
              THEN OAS_BALANCE.YR
              WHEN 'Calendar Year' = 'Business Year'
              THEN CASE WHEN OAS_BALANCE.PERIOD <9    THEN OAS_BALANCE.YR ELSE OAS_BALANCE.YR+1 END
    END = 2013  )
       AND
        ( IIS_BOSECURITY_BAL.USRCODE = UPPER('exttino')  )
        AND
        ( IIS_BOSECURITY_CMP.USRCODE = UPPER('exttino')  )
    GROUP BY
      case 8 when 4 then 'T1' when 8 then 'T2' when 12 then 'T3' else 'Unknown' end,
      OAS_REPPACK.L1NAME,
      OAS_REPPACK.L1HDRTXT,
      OAS_REPPACK.L2NAME,
      OAS_REPPACK.L2HDRTXT,
      OAS_REPPACK.L3NAME,
      OAS_REPPACK.L3HDRTXT,
      OAS_REPPACK.L4NAME,
      OAS_REPPACK.L4HDRTXT,
      OAS_BALANCE.cmpcode,
      OAS_REPPACK.L5NAME,
      OAS_REPPACK.L5HDRTXT,
      OAS_REPPACK.LEAFNAME,
      OAS_REPPACK.LEAFHDRTXT,
      OAS_REPPACK.L2ORDER,
      OAS_REPPACK.L3ORDER,
      OAS_REPPACK.L4ORDER,
      OAS_REPPACK.L5ORDER,
      OAS_COMPANY.NAME,
      IIS_YEAR(OAS_BALANCE.YR, OAS_BALANCE.PERIOD, 'Calendar Year')
    =============================
    Regards,
    RanG

  • 11g sga_max_size

    Hello,
    Oracle 11 on Windows
    In my parameter file the is no memory parameter, except MEMORY_TARGET.
    If I set MEMORY_TARGET=250M, the sga_max_size is set (autom.) to 250M. Windows Taskmanager shows: Mem. uage=250M, VM Size=250M
    If I set MEMORY_TARGET=1000M, the sga_max_size is set (autom.) to about 680M. Windows Taskmanager shows: Mem. uage=250M, VM Size=680M
    It looks to me, that Oracle is determining a good 'starting point'. As far as I understand, the SGA will shrink when PGAs need memory and the sum of memory comes above MEMORY_TARGET. Will Oracle adjust the sga_max_size at that moment? In other words: is there a background process periodically controlling the total sga memory for Oracle (let it grow or shrink) according the the value of sga_max_size at that moment?
    Thanks, Stephan

    When either MEMORY_TARGET or MEMORY_MAX_TARGET is enabled, SGA_MAX_SIZE default value is set to the larger of the two specified parameters on non-Windows 32-bit operating system. On Windows 32-bit operating system, due to address space pressure, the default value of SGA_MAX_SIZE is calculated based on the total available virtual address space along with MEMORY_TARGET and MEMORY_MAX_TARGET.
    To calculate the value on Windows 32-bit, SGA_MAX_SIZE larger of:
    60% of MEMORY_TARGET if set and
    60% of MEMORY_MAX_TARGET if set and
    25% of total available virtual address space
    http://docs.oracle.com/cd/B28359_01/readmes.111/b28280/toc.htm
    Similar discussion has been done on below link :
    What if I set MEMORY_MAX_TARGET and SGA_MAX_SIZE both?
    Regards
    Girish Sharma

  • Cahnge sga_target & sga_max_size ?

    Dear Friends ,
    I want to change the value of sga_max_size , sga_target using "ALTER SYSTEM SET .... scope=spfile " command in my production database server .
    Now I need the suggestion which one I need to change First , sga_max_size or the sga_target ?
    I want to set ,
    sga_target = 15000 M and sga_max_size = 18000 M
    Can u plz advice me ?
    my another query ,
    For the 15000 M sga_target size , what is the recommended size for the PGA , i.e., which value I need to set for the PGA for the value of "sga_target = 1500 M " .
    advice me plz ...........
    Edited by: shipon_97 on Nov 11, 2008 8:09 PM

    >
    As mentioned, if you only change spfile value, the order doesn't matter. But to be on the safe side, change sga_max_size first.
    Because if you forget to change sga_max_size after your increase sga_target beyond it, your instance can't startup nexttime. You will have to recreate a spfile because you can't edit spfile.
    >
    For the 15000 M sga_target size , what is the recommended size for the PGA , i.e., which value I need to set for the PGA for the value of "sga_target = 1500 M " .
    advice me plz ...........
    PGA setting is not directly related to SGA size.
    Check Oracle performance tunning guide,
    Setting PGA_AGGREGATE_TARGET Initially
    Monitoring the Performance of the Automatic PGA Memory Management
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#i47856

  • LOCK_SGA on 11.2 and Linux

    hello everyone
    is it possible to use LOCK_SGA=true on Oracle Linux 6.2 and UEK (64-bit)?
    I am assuming LOCK_SGA=true is required if I use Hugepages on Linux 6 and turn-off AMM and use ASMM
    I am trying to get it going and failing.....
    using Oracle 11.2.0.3 and Oracle Linux 6.2 with UEK R2, 64-bit
    LOCK_SGA=true requires MEMORY_MAX_TARGET=0 and MEMORY_TARGET=0 but even when I specify it all in a PFILE, its non-zero and instance does not start.
    I tried SGA_TARGET and SGA_MAX_SIZE and PGA_AGGREGATE_TARGET > 0 and no joy.
    I must be doing something wrong - searched Oracle 11.2 manuals - found nothing specific re LOCK_SGA.
    Perhaps this requires SPFILE and wont work on PFILE at all ?
    Sorry, I dont have MOS, perhaps there is a white-paper on "how to enable LOCK_SGA on 11.2 on Linux Hugepages" ?
    thanks

    thanks.
    sounds like I hit a known bug then ?
    so let me re-phrase the question:
    I want to implement Oracle Linux 64-bit Hugepages on Oracle 11g R2 (11.2.0.3)
    What are the steps to do so?
    I thought LOCK_SGA=TRUE is a requirement to use Hugepages on 64-bit Oracle Linux.
    But it looks like LOCK_SGA is not part of the solution, I believe. Right ?
    So..... LOCK_SGA=FALSE.
    Now, I turned off AMM, enabled ASMM instead, and enabled Hugepages (which are showing) but they are not being used by Oracle (looking at /proc/meminfo they are all unused)
    the
    ulimit -l
    says "unlimited"
    many thanks
    Edited by: yurib on Jun 1, 2012 4:15 PM

  • SGA_MAX_TARGET and SGA_TARGET

    What is difference b/w these two parameters ?
    If SGA_TARGET= 10G
    SGA_MAX_TARGET=15G
    Which parameter will be used during startup and Why ?
    Any refernce doc aur explanation will be helpful
    Regards
    Sourabh Gupta

    Sourabh85 wrote:
    On Windows XP and db version 10.2.0.4
    I set the SGA_TARGET=500M and SGA_MAX_SIZE= 1024M.
    Started the db and db is started with SGA =1G which means SGA_MAX_SIZE
    SQL> show parameter sga
    NAME TYPE VALUE
    lock_sga boolean FALSE
    pre_page_sga boolean FALSE
    sga_max_size big integer 1G
    sga_target big integer 500M
    SQL> show sga
    Total System Global Area 1073741824 bytes
    Fixed Size 1293588 bytes
    Variable Size 696255212 bytes
    Database Buffers 369098752 bytes
    Redo Buffers 7094272 bytes
    So still the question is what is advantage of setting both parameter in pfile.
    I think the above behavior is related to Windows only.
    Regards
    Sourabh GuptaYou've set it in pfile but the database will read the spfile by deafault..
    So first you need to check if the database is reading from spfile or pfile..
    show parameter spfileif it returns any value then the database is using spfile
    if it doesn't return any value the it is using pfile...

Maybe you are looking for

  • System preferences security and privacy is greyed how do i fix it? wifi connection to public not working ether

    system preferences's security and privacy are greyed out and it freezes how do i fix it? and when i try to connect to my school wifi it says that is not connected but it is how do i fix that too?

  • R7970 problem with temperature sensor?

    So last month I RMA'd my R7970 and I just received it in the mail. Originally my problem was I had artifacting lines, and occasionally freezes. In the time between that I had ordered a 5450 just as a temporary card. When I got my 7970 back I removed

  • ORA-36030

    Has anyone come across this error? I have encountered several times. Below is an example: Driver Dimension - 2 hierarchies associated with the dimension in a DML program I begin a loop over the driver dimension In the loop, I am accessing data from a

  • System doesn't recognize my account as admin

    Hello, everyone! A couple of weeks ago, I began having some problems with my printer. I couldn't print directly from a program, but if I drug a document over my desktop printer icon, it was fine. Then a couple days later, I tried to install some auto

  • One parameters should pass two Infotypes at different times

    I have two Infotype 0014 & 0015 which needs to be passed to the Class Z_CUSTOM_CLASS method CHECK_EGLIBILITY, Can any body help me in passing these Infotypes at different times but only through One Parameter ( IMPORTING or changing ) . I need to know