Home » RDBMS Server » Server Administration » Calculating SGA MAX Size
Calculating SGA MAX Size [message #110205] Fri, 04 March 2005 02:16 Go to next message
sridcpp
Messages: 23
Registered: February 2005
Location: India
Junior Member
How should i decide SGA size
No of Users : Apprx 100
RAM : 1GB
What should be the SGA_MAX SIZE
Re: Calculating SGA MAX Size [message #110292 is a reply to message #110205] Fri, 04 March 2005 22:34 Go to previous messageGo to next message
richwa
Messages: 2
Registered: March 2005
Junior Member
Will you be using dedicated or shared server connections?
Re: Calculating SGA MAX Size [message #110330 is a reply to message #110292] Sat, 05 March 2005 23:20 Go to previous messageGo to next message
oldboy
Messages: 9
Registered: March 2005
Location: Chongqing CHINA
Junior Member

what are your OS?
how many rams have your os spent?
what are your application?
has your application used JAVA?

Re: Calculating SGA MAX Size [message #110400 is a reply to message #110330] Mon, 07 March 2005 05:13 Go to previous messageGo to next message
sridcpp
Messages: 23
Registered: February 2005
Location: India
Junior Member
OS : Linux
Dual Processor
Visual Basic Applications
icon14.gif  Re: Calculating SGA MAX Size [message #110461 is a reply to message #110205] Mon, 07 March 2005 16:09 Go to previous messageGo to next message
vjeedigunta
Messages: 201
Registered: March 2005
Location: Hyderabad
Senior Member

My take on this ...
I would go for 1/3 the size of RAM ...

-V
Re: Calculating SGA MAX Size [message #110606 is a reply to message #110205] Tue, 08 March 2005 23:24 Go to previous messageGo to next message
sridcpp
Messages: 23
Registered: February 2005
Location: India
Junior Member
why did you considered 1/3, on what basis you are calcuting (1/3 or half or etc of RAM)
Re: Calculating SGA MAX Size [message #110889 is a reply to message #110205] Thu, 10 March 2005 17:36 Go to previous messageGo to next message
jbatista
Messages: 8
Registered: March 2005
Location: Horsham, PA
Junior Member
Approximating size of the SGA
8.0.X
To approximate size of the SGA (Shared Global Area), use the following formula:

((db_block_buffers * block size) +
(shared_pool_size + large_pool_size + log_buffers) + 1MB

8.1.X
((db_block_buffers * block size) +
(shared_pool_size + large_pool_size + java_pool_size + log_buffers) + 1MB

9.X

In Oracle9i, the SGA can be configured as in prior releases to be static,
or can now be dynamically configured.

The size of the dynamic SGA is determined by the values of the following
database initialization parameters: DB_BLOCK_SIZE, DB_CACHE_SIZE,
SHARED_POOL_SIZE, and LOG_BUFFER.

Beginning with Oracle9i, the SGA infrastructure is dynamic. This means that
the following primary parameters used to size the SGA can be changed while
the instance is running:

Buffer cache ( DB_CACHE_SIZE) -- the size in bytes of the cache of standard blocks

Shared pool ( SHARED _POOL_SIZE) -- the size in bytes of the area devoted to shared SQL and PL/SQL statements

Large pool (LARGE_POOL_SIZE) (default is 0 bytes) -- the size in bytes of the large pool used in shared server systems for session memory, parallel execution for message buffers, and by backup and restore processes for disk I/O buffers.


Also, take a look at the following Oracle Document in MetaLink:Doc ID 1008866.6
Re: Calculating SGA MAX Size [message #111677 is a reply to message #110205] Fri, 18 March 2005 10:09 Go to previous message
smartin
Messages: 1803
Registered: March 2005
Location: Jacksonville, Florida
Senior Member
You want as much RAM as possible for oracle to use on the server (vs other apps software on it). Also, if you have lots of stored packages and procedures and more of an OLTP active environment you will need a larger SGA. If you have fewer concurrent users executing ad hoc type stuff you need a larger PGA. If you aren't using stored java procedures and/or bitmap indexes, set those memory params to 0.

If you are on 10g, use sga_target.

Whatever you set it initially will just be a guess, then you monitor and tweak it as you go.
Previous Topic: Urgent - Need to manually shrink Temporary Space
Next Topic: Unicode version problem?
Goto Forum:
  


Current Time: Sat Jan 25 03:03:54 CST 2025