SGA_TARGET again

I've read some about SGA_TARGET and SGA_MAX_SIZE, but there are things I don't understand well I think.
1) SGA_MAX_SIZE is said to be for a life of an instance -> But I can change it with alter system set sga_max_size=... scope=spfile, restart the database and it gets changed. Why?
2) Why is exactly SGA_TARGET for? If it's set to a non-zero value it's just to indicate we have ASMM enabled? SGA_TARGET is written to set total memory for SGA. But we can change it dynamically, up to SGA_MAX_SIZE, that's why for me SGA_MAX_SIZE looks rather for total memory for SGA. It can be changed too though...
Thx for answer.
A.

I've read some about SGA_TARGET and SGA_MAX_SIZE, but
there are things I don't understand well I think.
1) SGA_MAX_SIZE is said to be for a life of an
instance -> But I can change it with alter system set
sga_max_size=... scope=spfile, restart the database
and it gets changed. Why?I'm sorry. Your question doesn;t make sense to me ...
perhaps the confusion is that 'the life of an instance' is from startup to shutdown ... restart and you have a new instance.
>
2) Why is exactly SGA_TARGET for? If it's set to a
non-zero value it's just to indicate we have ASMM
enabled? SGA_TARGET is written to set total memory
for SGA. But we can change it dynamically, up to
SGA_MAX_SIZE, that's why for me SGA_MAX_SIZE looks
rather for total memory for SGA. It can be changed
too though...MAX_SIZE is exactly that - the max size. The OS pre-allocates to the max size, BUT some OSs do not need to physically assign the memory that has been allocated. That allows the OS to have pointers to 'memory that needs to be allocated when it's needed'. So the process thinks it has MAX_SIZE available but it ain;t really there. See http://blog.tanelpoder.com/2007/08/28/operating-systems-are-lazy-allocating-memory/
TARGET is the amount that is allowed to be in use at a specific point in time. It is less than, or equal to MAX_SIZE. A description, including the impact on the auto-allocated sizes, is at http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams192.htm#sthref792
Therefore, on a 4 GB machine you can have 4 instances each with MAX_SIZE set to 3GB but TARGET set to 800M each. Then, when it's needed, you can back off some to increase one in particular without shutting any down simply by TARGET.
The really, really confusing part is that some OSs report that the memory is 'in use' simply because is allocated. That makes it appear that we have a problem.

Similar Messages

  • ALTER SYSTEM SET SGA_TARGET

    Hi,
    in 10g R2 should I stop/start database when I change sGA_TARGET :
    ALTER SYSTEM SET SGA_TARGET=value [SCOPE={SPFILE|MEMORY|BOTH}]
    Thank you.

    user522961 wrote:
    OK.
    When I query V$PARAMETER I have the OLD value for SGA_TARGET. It is normal because the value in V$PARAMETER comes from starting and spfile. How can I be sur that now oRACLE uses the new value for SGA_TARGET effectively ?
    Thanks again.Not sure I understand your question. If you set SGA_TARGET with SCOPE=MEMORY or BOTH, it should be in effect immediately.
    SQL> alter system set sga_target=253M scope=both;
    System altered.
    SQL> select value bytes, value/1048576 MB from v$parameter where name = 'sga_target';
    BYTES              MB
    268435456         256
    SQL> show parameter sga
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 512M
    sga_target                           big integer 256M
    SQL> alter system set sga_target=257M scope=both;
    System altered.
    SQL> select value bytes, value/1048576 MB from v$parameter where name = 'sga_target';
    BYTES              MB
    272629760         260
    SQL> show parameter sga
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 512M
    sga_target                           big integer 260M
    SQL>

  • SGA_TARGET not Changing?

    Hi Experts...
    We use Oracle 10g R2(1002000300) on Hp-Unix for the Production & the OS RAM is 8GB
    We had the SGA_MAX_SIZE as 1GB & SGA_TARGET also 1GB,
    I have changed the SGA_MAX_SIZE to 3000M,
    SQL>ALTER SYSTEM SET SGA_MAX_SIZE = 3000M SCOPE=SPFILE;
    System altered.
    then Shutdown the Database
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> conn sys/orcl_2009_it as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 3154116608 bytes
    Fixed Size 2061600 bytes
    Variable Size 2231372512 bytes
    Database Buffers 905969664 bytes
    Redo Buffers 14712832 bytes
    Database mounted.
    Database opened.
    SQL> show parameter sga_max_size
    NAME TYPE VALUE
    sga_max_size big integer 3008M
    SQL> ALTER SYSTEM SET SGA_TARGET = 2500M SCOPE=SPFILE;
    System altered.
    SQL> show parameter SGA_TARGET
    NAME TYPE VALUE
    sga_target big integer 1G
    Again I Tried with Less Value
    SQL> ALTER SYSTEM SET SGA_TARGET = 2000M SCOPE=SPFILE;
    System altered.
    But Still the SGA_TARGET Value Didnt Change
    SQL> show parameter SGA_TARGET
    NAME TYPE VALUE
    sga_target big integer 1G
    why this Strange Behaviour,it has to update the SGA_TARGET?
    It didnt happen???
    please Kindly Help me out in this
    many thanks

    Excellent...
    Many thanks to Centinul,P. Forstmann ,asifkabir
    On Restarting the Database
    i find the SGA_TARGET New Assiggned Value 2500 M
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 3154116608 bytes
    Fixed Size 2061600 bytes
    Variable Size 687868640 bytes
    Database Buffers 2449473536 bytes
    Redo Buffers 14712832 bytes
    Database mounted.
    Database opened.
    SQL> sho parameter sga_target
    NAME TYPE VALUE
    sga_target big integer 2512M
    SQL>
    Many thanks Experts for the Excellent Support
    Have Great Time

  • ALTER SYSTEM SET SGA_TARGET = 0 scope=spfile; not working

    SQL> ALTER SYSTEM SET SGA_TARGET = 0 scope=spfile;
    System altered.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 2121256960 bytes
    Fixed Size 2243280 bytes
    Variable Size 1140852016 bytes
    Database Buffers 973078528 bytes
    Redo Buffers 5083136 bytes
    Database mounted.
    Database opened.
    SQL> show parameters sga
    NAME TYPE VALUE
    lock_sga boolean FALSE
    pre_page_sga boolean FALSE
    sga_max_size big integer 2032M
    sga_target big integer 0
    SQL> create pfile=#/home/oracle/per03pfile' from spfile;
    pfile has
    *.sga_max_size=0
    *.sga_target=0
    and
    instance1.__sga_target=2130706432
    instance2.__sga_target=2130706432
    tried ALTER SYSTEM SET SGA_TARGET = 0 scope=spfile sid='*'; aswell ...
    oracle v11.2.0.2
    GI 11.2.0.2
    linux 64 bit

    Chinar wrote:
    user9198889 wrote:
    SQL> ALTER SYSTEM SET SGA_TARGET = 0 scope=spfile;
    System altered.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 2121256960 bytes
    Fixed Size 2243280 bytes
    Variable Size 1140852016 bytes
    Database Buffers 973078528 bytes
    Redo Buffers 5083136 bytes
    Database mounted.
    Database opened.
    SQL> show parameters sga
    NAME TYPE VALUE
    lock_sga boolean FALSE
    pre_page_sga boolean FALSE
    sga_max_size big integer 2032M
    sga_target big integer 0
    SQL> create pfile=#/home/oracle/per03pfile' from spfile;
    pfile has
    *.sga_max_size=0
    *.sga_target=0
    and
    instance1.__sga_target=2130706432
    instance2.__sga_target=2130706432
    tried ALTER SYSTEM SET SGA_TARGET = 0 scope=spfile sid='*'; aswell ...
    oracle v11.2.0.2
    GI 11.2.0.2
    linux 64 bitWhile SGA_MA_SIZE <> 0 then it seems SHARED MEMORY constructed according this setting.So it is not recommended to avoid automatic shared memory management.But if you decide this then you have to identify SHARED_PLOOL_SIZE,DB_CACHE_SIZE(in additionally LOG_BUFFER and LARGE_POOL) parameter manually and
    ALTER SYSTEM SET SGA_TARGET=o scope=spfile and ALTER SYSTEM SET SGA_MAX_SIZE=o scope=spfile and restart database again.SQL> alter system set sga_max_size=0 scope=spfile sid='instance1';
    System altered.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup;
    ORACLE instance started.
    SQL> show parameters sga
    NAME TYPE VALUE
    lock_sga boolean FALSE
    pre_page_sga boolean FALSE
    sga_max_size big integer 2032M
    sga_target big integer 0
    SQL>
    has it got todo with AMM being enabbled?

  • For sga_target

    we are using 11G DB. our database sga_target = 0.so we can assume that ASSM is disbled. what wud be the oracle recomended size of enable ASSM. where as sga_max_size = 3054M.
    also what is the utlity of ASSM in 11G.how can we check?
    thanks in advance..

    please go thorugh our DB reading of those views.
    SQL> select * from v$memory_target_advice;
    MEMORY_SIZE MEMORY_SIZE_FACTOR ESTD_DB_TIME ESTD_DB_TIME_FACTOR    VERSION
            876                .25          696              1.0006          0
           1752                 .5          696                   1          0
           2628                .75          696                   1          0
           3504                  1          696                   1          0
           4380               1.25          696                   1          0
           5256                1.5          696                   1          0
           6132               1.75          696                   1          0
           7008                  2          696                   1          0
    8 rows selected.
      SGA_SIZE SGA_SIZE_FACTOR ESTD_DB_TIME ESTD_DB_TIME_FACTOR ESTD_PHYSICAL_READS
           572             .25          899              1.2935              218739
          1144              .5          708              1.0187              108602
          1716             .75          695                   1               97708
          2288               1          695                   1               97708
          2860            1.25          695                   1               97708
          3432             1.5          695                   1               97708
          4004            1.75          695                   1               97708
          4576               2          695                   1               97708
    8 rows selected.Now please suggest......
    Thanks once again..
    Edited by: piku on Feb 16, 2011 9:16 PM

  • Performance Problem Again

    Hi all,
    We are encountering performance problem again
    The batch process deletes 1M rows every night which took 30mins the usual.
    But last night (12AM) it took more that 2hrs and hangs.
    Does it help if I run gather_schena stats regularly when there is constant DELETE on the table?
    Please help me check our ASH, AWR, ADDM to resolve the issue.
    ADDM
    https://app.box.com/s/7o734e70aa2m2zg087hf
    ASH
    https://app.box.com/s/xadlxfk0r5y7jvtxfsz7
    AWR
    https://app.box.com/s/x8ordka2gcc6ibxatvld
    Thanks....
    zxy

    Hi ARM,
    ***What is the SGA_TARGET or MEMORY_TARGET that the database is running on?
    Our server has 8Gb Physical Memory and 8Gb Swap.
    What  is the ideal SGA_TARGET and MEMORY_TARGET shouldbe?
    Our current setting is:
    ========
    SQL> show parameter memory
    NAME                                 TYPE        VALUE
    hi_shared_memory_address             integer     0
    memory_max_target                        big integer 5936M
    memory_target                                big integer 5936M
    shared_memory_address                 integer     0
    SQL> show parameter sga_
    NAME                                 TYPE        VALUE
    sga_max_size                         big integer 5936M
    sga_target                               big integer 0
    Thanks

  • My iphone wont let me play songs that I bought from iTunes. It says "The requested URL was not found on this server" How can i play my music also my music videos again?

    I bought a few songs and music videos from iTunes, then all of a sudden it wouldn't play and would just skip to the next song. With the music videos it would do the same. Also, this message would show up " The Requested URL could not be found on this server" What does that exactly mean? And what do I need to do to play my music/videos again?

    This previous discussion has a solution:
    https://discussions.apple.com/message/16527576#16527576

  • When i login on game center it say enter your birth date when i enter it and i perss next the birth day will come again and again what should do

    when i login on game center it say enter your birth date when i enter it and i perss next the birth day will come again and again what should do

    Start a game with Game Center and go from there.

  • HT4972 After syncing my iPad2 to iTunes, I can't get it to work again.

    Ok, so I wanted to update my iPad2 in order to get the iOS5 (not even really sure what that it). So, I hooked it up to my computer, which is not the original one I had synced it to. It wanted to restart everything from the original iPad settings, so I stopped it.  I then hooked my iPad up to my original computer. When I looked at iTunes it had all my Apps, etc on it and I hit the "sync" button.  It looked like everything was syncing just fine.  But, when it was all done and I go back to using my iPad, it is saying to either: 1) set up as new iPad (which I don't want to do), 2) restore from iCloud backup (don't know how to do this) or 3) restore from ITunes backup...this is what I clicked on. I then plugged my iPad back into my computer with iTunes and started again. However, I can't get any further than this.  Nothing is happening!  Help!!!!!

    That message means that you have to restore the iPad now. Something went wrong. You need to restore the iOS software and then restore from the backup.
    Read this carefully and follow the instructions. Make sure that you restore from your backup at the end of the process. That is covered at the bottom of the support article.
    http://support.apple.com/kb/HT1414

  • Itunes wont open. Ive tried uninstalling, cleaned up my PC and then re installed again but still wont open! There are no error messages. It just wont open

    Itunes wont open. Ive tried uninstalling, cleaned up my PC and then re installed again but still wont open! There are no error messages. It just wont open! Im very frustrated and anything would help! I have Windows 7 or Vista. Idk which

    Hello Dr.Help,
    Thank you for providing so much information about the issue you are experiencing with iTunes.  It sounds like you have tried reinstalling it, but nothing happens when you launch it.  I recommend following the steps in this article to resolve launch issues with iTunes:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How long does it take for the warehouse to show a phone as recieved so I can pay my final bill?  I would like to sign up for Verizon again as I am very unsatisfied with my new company but cannot until this is resolved.

    I recently switched to another competitor but would actually like to start from scratch with Verizon but cannot do so because they cannot locate my devices I mailed in to their warehouse.  I switched my whole family's accounts, 3 phones and 1 mobile hotspot, to a competitor to get a cheaper rate and unlimited data but I have not been happy with their service and would like to switch back.  The problem is when switching the first time I was told by a Verizon chat rep that I could send my Edge devices back in and would get credit for them and stop my edge payments which was not the way I know now it is supposed to work.  After a couple of phone calls a supervisor looked at my online chat transcript and realized that I was correct and the rep had told me incorrectly that they would take my edge phones back and give me credit for them and I could close my account by only paying the early termination fees.  She sent me two envelopes to send my two edge phones back in and said they would credit on my account and stop the monthly billing for them once they were received.  I called a couple of weeks ago after being charged 24.99 for the both of them again for the month after my account was stopped.  They said that they had not received my phones and I should have noted the tracking number from the labels the rep sent me so they could track them.  I tried to find the tracking numbers but couldn't so I got back on live chat and asked them to resend me the letter from the supervisor rep as well as resending the labels and he said they could that and it should be 7-10 business days.  It has now been over two weeks and I have not received the resent letter or labels so I cannot give them the tracking number to prove I sent my phones back to them.  I have also researched the facility I was asked to send these phones back to and it seems this is a pretty common Verizon trick of making you prove you sent the phones and not giving you any access to the tracking numbers.  I just want to pay my ETF's and close out my original account so I can start over fresh with Verizon but now I am losing faith in doing that as this is making me wonder if they are the type of company I want to deal with.  Please someone who may have dealt with this help me restore my faith in Verizon and give me an idea of what to do next.

    How recently did you switch?  If it's less than 60 days, then Verizon simply reinstates your previous account.  The fact that you were on the EDGE plan and mailed the devices back, and they apparently are somewhere in the system, could cause complications, and it might just work out that you just go back on the same plan and they set you up with the same devices.  I'm not sure how it will go - but since you are still being billed for the devices... 

  • In the previous version i was able to close my mozilla and to open it again, the web pages which i was working with remained however i've tried many ways to have this advantage again but it is not working what can i do ???

    in the previous Mozilla version i used to leave some web sites opened and when i start working again my Mozilla showed the web pages i was working with in that occasion, i have looked in the options menu but there is no way, perhaps it was an add-on and now it is removed??? i would like to have this advantage again in my Mozilla could it be possible?? thx!

    Your webpages/tabs are still there. When you start firefox again, there is a "Restore Previous Session" icon below. If you click that, it will open up all your tabs again.
    Or you could see this article for better understanding-
    http://support.mozilla.com/en-US/kb/Firefox%20does%20not%20ask%20to%20save%20tabs%20and%20windows%20on%20exit?s=how+to+save+tabs&as=s#os=win&browser=fx4

  • Mail applications is blank when I open it, then it closes and opens again by itself, keeping blank

    In my Ipad, when I open Mail application it is blank. It stays like this for a few seconds, then it closes and open again by itself.  Keeping all time blank.

    Have you tried to force quit the app. Double tap the home button. Scroll sideways if needed to bring the mail app preview up on the screen. Flick that preview up and off the screen to close the app. Tap on the home page preview to exit the mode. Then try your mail again.
    Other things people have needed to do, especially after an update is to go into the settings, mail contacts and calendars, delete their mail account (it only deletes it off the iPad not out of existence) then exit out, go back i and re-enter the info.

  • TS3147 After installing Mountain Lion, I tried to scan from my Canon MX870 and received the message: "MP Navigator EX quit unexpectedly. Click Reopen to open the application again. A report will be sent to Apple,"

    After installing Mountain Lion, I tried to scan from my Canon MX870 and received the message: "MP Navigator EX quit unexpectedly. Click Reopen to open the application again. A report will be sent to Apple,"  This problem happened right after I installed Mountain Lion. I then downloaded Canon's upgraded software and drivers for the MX 870 and the problem was resolved. Now one month later, the problem has returned.

    rjliii wrote:
    Solved problem with original Canon software.  When I downloaded Canon software upgraded for OS X 10.8, I got all by Navigator Ex. Noticed that on Canon's site, the upgraded version is 3.1; my app was 2.1. Upgraded to 3.1 for Nav. Ex, and it works.
    You should still use Image Capture IMHO.  If it was my gear, that's what I would do.  No need to worry about software upgrades.

  • I am on windows 7 and I upgraded to 10.0.2 and now it will not open. I have removed firefox completely and uploaded it again and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version and once again nothing.

    I am on windows 7 and I upgraded to the newest verison of firefox and now it will not open. I have removed firefox completely and uploaded it again and that did not work. I then made sure it could get through my firewall and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version hoping that would do it and once again nothing. It will not open at all. Please help - is there a live chat or a number to talk to someone at Firefox?

    I think when uninstalling you may also have to choose (tick) to delete the preferences and other personal data like the bookmarks, stored passwords etc. to erase completely. If you are installing afresh, please try right-clicking on the file and '''Run as administrator''' to install. And when uninstalling, please also make sure choose to delete all data and also manually delete any '''Mozilla''', '''Mozilla Firefox''' or '''Firefox''' from %appdata%, %localappdata% and %programfiles%. You can open a location by typing for eg. %appdata% in the '''Run''' box (Windows key + R). You may also have to check the '''VirtualStore''' folder in %localappdata%. Files in the VirtualStore can be problematic. I think a clean installation may help.
    [https://www.mozilla.org/en-US/firefox/new/ Firefox]
    [http://kb.mozillazine.org/Installation_directory Installation Folder]
    [http://kb.mozillazine.org/Profile_folder Profile Folder]
    Please note that using system restore would usually damage the Firefox installation.

Maybe you are looking for

  • How to get better graphic performance on my Satellite C850?

    Hi. I have a problem with my *Toshiba Satellite C850-B253* and The problem is of graphic,in my PC when i run "**PES 2013**" the game warned to me even my *GPU* is not minimum and is very low to open this program. Please give me a issue that the game

  • Detail of legacy license and future price increases

    Legacy Licence: I currently have a licenced retail copy of Photoshop CS6 that would allow me a reduce rate for 12 months membership of Creative Cloud. If I took up this offer and in 12 months time decided not to renew Creative Cloud membership which

  • Integration of PS and MM

    hi, How to create purchase requisition from PS,Integration of PS and MM,What are the steps? Thanks

  • Css stylesheets for web reports

    Does any one know how to open the css stylesheets used by BW3.0B so that they can be edited?

  • WPA2-PSK and time capsule

    My Modem uses only WPA - PSK and my Time capsule (3rd Gen) does not seem to be able to connect to its network. Is this a Time Capsule limitation and if so does the latest TC allow connection to this type of security. If possible - what options do i n