The amount of free SGA memory available in the database

Hi,
How can we calculate the amount of free SGA memory available from the instance if the database is not set for Memory management.If the sga_max_size is set for a particular value and the db_cache_size and the shared_pool and all other components are specified,how can one determine whether all the memory allocated for SGA is in use?

How can we calculate the amount of free SGA memory available from the instance if the database is not set for Memory management.When the SGA is allocated, the memory is fixed, and none of it is "free" really.
how can one determine whether all the memory allocated for SGA is in use? Are you asking about usage WITHIN the pools? If so, shortly after startup the database buffer and shared_pool will fill-up and stay full . . . . .
Here is the script that I use to see inside the data buffer contents:
set pages 999
set lines 80
spool blocks.lst
ttitle 'Contents of Data Buffers'
drop table t1;
create table t1 as
select
o.object_name object_name,
o.object_type object_type,
count(1) num_blocks
from
dba_objects o,
v$bh bh
where
o.object_id = bh.objd
and
o.owner not in ('SYS','SYSTEM')
group by
o.object_name,
o.object_type
order by
count(1) desc
column c1 heading "Object|Name" format a30
column c2 heading "Object|Type" format a12
column c3 heading "Number of|Blocks" format 999,999,999,999
column c4 heading "Percentage|of object|data blocks|in Buffer" format 999
select
object_name c1,
object_type c2,
num_blocks c3,
(num_blocks/decode(sum(blocks), 0, .001, sum(blocks)))*100 c4
from
t1,
dba_segments s
where
s.segment_name = t1.object_name
and
num_blocks > 10
group by
object_name,
object_type,
num_blocks
order by
num_blocks desc
Hope this helps. . ..
Don Burleson
Oracle Press author

Similar Messages

  • Free SGA Memory Available is  0 ?

    Hi,
    We need to increased SGA_TARGET size but in sgainfor showing Free SGA Memory Available is  0
    how can we increased SGA_TAGGET?
    SQL> select * from v$sgainfo;
    NAME BYTES RES
    Fixed SGA Size 2059216 No
    Redo Buffers 14712832 No
    Buffer Cache Size 1929379840 Yes
    Shared Pool Size 805306368 Yes
    Large Pool Size 16777216 Yes
    Java Pool Size 16777216 Yes
    Streams Pool Size 50331648 Yes
    Granule Size 16777216 No
    Maximum SGA Size 2835349504 No
    Startup overhead in Shared Pool 251658240 No
    Free SGA Memory Available                 0
    We have 10GB RAM out of 10 7GB is utilizing.
    $ free -m
    total used free shared buffers cached
    Mem:         10136       7297       2838          0        462       3866
    -/+ buffers/cache: 2968 7168
    Swap: 5119 0 5119

    819136 wrote:
    Hi,
    We need to increased SGA_TARGET size but in sgainfor showing Free SGA Memory Available is  0
    how can we increased SGA_TAGGET?
    SQL> select * from v$sgainfo;
    NAME BYTES RES
    Fixed SGA Size 2059216 No
    Redo Buffers 14712832 No
    Buffer Cache Size 1929379840 Yes
    Shared Pool Size 805306368 Yes
    Large Pool Size 16777216 Yes
    Java Pool Size 16777216 Yes
    Streams Pool Size 50331648 Yes
    Granule Size 16777216 No
    Maximum SGA Size 2835349504 No
    Startup overhead in Shared Pool 251658240 No
    Free SGA Memory Available                 0
    We have 10GB RAM out of 10 7GB is utilizing.
    $ free -m
    total used free shared buffers cached
    Mem:         10136       7297       2838          0        462       3866
    -/+ buffers/cache: 2968 7168
    Swap: 5119 0 5119Increase the SGA_MAX_SIZE parameter andthen only you will able to increase the sga_target.
    Since sga_max_target is static parameter ,there you have to bounce the db .
    SQL> alter system set sga_max_size=xxM scope=spfile;
    shut immediate
    startup
    alter system set sga_target=xxm;
    Hope this may help you
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to get the amount of free physical memory?

    How to get the amount of free physical memory?
    (without sudo or root)

    vmstat will give it to you.
    Although the question depends a bit on what you mean by free memory.
    The figure vmstat labels free (in any reasonably recent version of solaris) actually represents memory mostly filled with cached file contents. So it represents memory that can be easily released if needed by something more important.
    Like most unix versions, solaris will use any free memory to cache files thats have been read/written previously just in case they are needed again

  • Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

  • How to read the amount of free memory available?

    I need a tool to tell me the amount of free memory left, at any given time. I want to tell my user in advance, and as the experiment proceeds, how much experiment time can remain before we will run out of memory. Yes I know, in a more perfect world the data would be written to disk and not stay in memory; but for now this solution would really help.
    Please be clear: I'm not looking for the performance profiling tool. I need something that will tell my program, at runtime, how much memory is left available to it. Is there any such tool?
    Thanks,
    Ken

    Hey Ken,
           I think this article discusses what you're looking for:
    How Can I Programmatically Find Information About My Computer's Memory Usage?
    http://digital.ni.com/public.nsf/allkb/B5889EB5349FAC478625723E00090265
    Hope this helps!
    --Ryan S.

  • How can I know the amount of free RAM when my VI is running?

    I need to know the amount of free RAM when my VI is running.

    If you are using Windows NT/2000/XP, monitoring free memory is very easy. Simply right click on the task bar and open the Task Manager. Click on the Performance tab, and you'll be able to monitor the physical memory total and available on your PC.
    If you are using Windows 9X, you will have to add some optional resources. Open Control Panel, then select Add/Remove Programs. Click on the Windows Setup Tab, and select System Tools, then click the Details... button. Check the boxes to install System Monitor and System Resource Meter. Click OK, and you will be prompted for your Windows CD. Insert the CD and Windows will add the monitoring tools. You can then use them to watch your free resources.

  • To know the amount of free space in a tablespace

    hi,
    I'm learning oracle 9i release 9.2.0.1.0 .I'd created a tablespace 'TOOLS' for being used as the default tablespace for Statspack.
    I wish to know the amount of free space available in this tablespace. For this purpose I ran the following query but there was no rows selected :-
    SQL> select tablespace_name,bytes from dba_free_space
    2 where tablespace_name='TOOLS';
    no rows selected
    SQL> select name from v$tablespace;
    NAME
    CWMLITE
    DRSYS
    EXAMPLE
    INDX
    ODM
    SYSTEM
    TOOLS
    UNDOTBS1
    USERS
    XDB
    TEMP
    Can anyone tell the reason for this.

    I tried your query
    SQL> select TABLESPACE_NAME,
    2 sum(BYTES) Total_free_space,
    3 max(BYTES) largest_free_extent
    4 from dba_free_space
    5 group by TABLESPACE_NAME;
    ♀TABLESPACE_NAME TOTAL_FREE_SPACE LARGEST_FREE_EXTENT
    CWMLITE 11141120 10878976
    DRSYS 10813440 10813440
    EXAMPLE 131072 131072
    INDX 26148864 26148864
    ODM 11206656 11206656
    SYSTEM 3211264 3080192
    UNDOTBS1 199229440 196149248
    USERS 26083328 26083328
    XDB 196608 196608
    9 rows selected.
    Again there were no rows for TOOLS tablespace.

  • How can I get the amount of free space that is on my drive to show at the bottom of the drive in Lion.

    How can I get the amount of free space that is on my drive to show at the bottom of the drive in Lion.
    This is a must feature for me and I may have to go back to Snow Leopard.
    Please help!

    Right click on your desktop and choose "viewer options". Adjust the spacing and the size of your icons and you should be able to see the size of your drive(s) and the free space available on each drive with the exception of your bootcamp drive which will only show the overall size of the drive you have it on.  This may be different if you only have one system drive (like on a Mac Book Pro) with a partition containing bootcamp on it. this may only show you the overall capacity, I can't say for sure though as I only use a Mac Pro with 4 seperate Hard Drives which are showing both overall capacity and free space available. Hope this helps
    Denisimo

  • About the amount of hard disk memory used during Testdrive installation

    Dear all,
    I have a question about installing SAP Netweaver Testdrive on Redhat Linux Enterprise 5.3. Currently I have a virtual machine (sun virtualbox) where Windows Vista is host and the guest operating system is RHLE 5.3 (32 bit). For doing several tests I would like to install the Testdrive on this linux system. Yet, the total available virtual hard disk memory is about 15 GB and I have already used more than 6GB.
    Is there any way to specify the amount of hard disk memory used by Netweaver once it installs DB2 on the system? Because as it seems to me it takes more than 15 GB just for the database. But I'm not sure whether the whole space is really needed, particularly in my case where the aim of use is just for ABAP development and tests (for self-training).
    Thanks in advance,
    Kind Regards,
    Dariyoosh
    Edited by: dariyoosh on Dec 5, 2009 11:23 AM

    Hi,
    You can refer the specific installation guide for the minimum disk space requirement.
    Whatever functionality you use you need minimum space as mentioned in the installation guide.
    You can configure slightly more memory than given in the installation guide to be safer.
    Cheeers...,
    Raghu

  • "iTunes could not restore the iPhone because not enough free space is available of the iPhone"??????

    Before updating to iOS6, I backed my iPhone up onto my PC, as I am aware that when updating an iPhone things like notes, contacts etc tend to disappear. However, after the update was complete, when I tried to 'restore back up' I keep getting the message "iTunes could not restore the iPhone because not enough free space is available of the iPhone". I don't understand why this message keeps coming up, because I have 20.96GB free space. All my contacts have gone, and I urgently need them for work. What can I do to solve this problem???

    I suggest you delete some stuff off your phone so free up some memory and try again

  • HT1414 I just got a replacement iPhone 5 (64MB) for one with a cracked face, and tried to restore it.  Got an error message saying the iTunes could not restore the iPhone because not enough free space is available on the iPhone.  Now what?

    I just replaced my iPhone 5 because of a cracked face.  I backed up the old phone to iTunes.  When I tried to restore my data off of iTunes to the new phone, I got an error message saying that iTunes could not restore the iPhone because not enough free space is available on the new iPhone.  Now what?
    I have Apple Care+, but I'll be darned if I can find any way to contact anyone at Apple to talk to about this.  They take your money, but make darned sure they don't have to support you unless you jump through a bunch of hoops first, like this site.

    I've done a restore.. The phone was completely wiped back to factory settings.. It then tells me there isn't enough space on the phone to restore from back up? How when the phone is empty?!

  • How to find the amount of free disk space on my pc....... in java of course

    how to find the amount of free disk space on my pc

    http://onesearch.sun.com/search/onesearch/index.jsp?qt=free+disk+space&subCat=siteforumid%3Ajava31&site=dev&dftab=siteforumid%3Ajava31&chooseCat=javaall&col=developer-forums

  • Was the amount of free accounts activated in this iPhone, as to proceed?

    Was the amount of free accounts activated in this iPhone, as to proceed?

    Each device can ony create a limited number of iCloud accounts.  Once the maximum number of accounts have been created, all you can do is use one of the accounts previously created, or create a new account to use on another iOS device or Mac (running OS X 10.7.2 or later), if you have one.

  • How Can I Get the Amount of Free Disk Space Using space using windows 7 please share example using GetDiskSpace

    How Can I Get the Amount of Free Disk Space  using windows 7 please share example using GetDiskSpace i have already studied http://digital.ni.com/public.nsf/allkb/9958B8E473C4EF1786256BBC0053B64F

    Reading your question a bit more in detail, I doubt whether you are using Win32 API GetDiskFreeSpace function (for which my previous post is the solution) of Programmer's Toolbox GetDiskSpace function.
    With reference to the second one, it works even with disks larger than 2GB but you need to use the proper formatting code to display the returned value. I updated my example to show total free space in the debug output window and added a comparison with 3GB value using UInt64TypeCompareUInt from the Programmer's Toolbox.

  • Why is the game Candy Crush Saga, a free game, not available in the South Africa store?

    Why is the game Candy Crush Saga, a free game, not available in the South Africa store?

    Read this thread where Steff South Africa, an apparently knowledgable user, has explained the situation as it stands:
    https://discussions.apple.com/thread/4159223
    Regards.

Maybe you are looking for

  • Multiple problems with 80GB classic, don't know where to start.

    Hey guys, I got an Apple classic 80GB for my bday early August and lately i've been having so many problems i dont know where to start, i'll try to explain them as best as i can. *problem 1:* Whenever i plug my iPod into my PC, it locks up the system

  • Extremely slow sync from iTunes to iPhone 5

    It's taking HOURS (>10 hours so far) to sync my new iPhone 5 to iTunes 10.7.  The process is stalled at "Step 5 of 5 Waiting for items to copy".  I am manually managing content on the phone, and I had a small fraction of my total iTunes content on my

  • How do I get windows8 toolbar to display?

    I have an HP desktop pc 1yr old *HP pavillion AMD50 ?. Running latest windows op system but do not know how to get windows toolbar to display. Have downloaded it but believed it should be in with Explorer . However it does not & has never displayed .

  • IPhoto 6.06 Slideshow Issue

    We have a MacBook that we need to be able to use for a slideshow from an iPhoto Event.  It has iPhoto 6.06 and, when I try to run the slideshow, all I get is a blue screen with the control items for play, pause, etc.  Clicking on it gets nothing.  Wh

  • Envelope Address File - How do 'you' do it

    Wondering how others keep an address file for printing envelopes in Pages. What I have done is opened an envelope document and added many 'pages' to it each with a different address. There are obvious limitations to this and am betting there's a bett