How do I reducethe size of sga?
how do I reduce the size of sga so as to relief my heavily used server?
set echo off
set feedback off
set linesize 110
COLUMN a HEADING ' '
COLUMN est_mb FOR 99,999 HEADING 'Shared Pool|Size (MB)'
COLUMN multiplier FOR 9.99 HEADING ' | |Multilpier'
COLUMN LC_MB FOR 9,999 HEADING 'Lib. Cache|(MB)'
COLUMN LC_OBJ FOR 999,999 HEADING 'Lib. Cache|Objects'
COLUMN LC_TS FOR 999,999,999 HEADING 'Parse Time|Saved (Sec)'
COLUMN LC_TSF FOR 999.99 HEADING 'Parse Time|Saved Factor'
COLUMN LC_OH FOR 999,999,999 HEADING 'Lib. Obj.|Hits Change'
COLUMN sys_id NOPRINT new_value system_id
COLUMN sys_startup NOPRINT new_value startup_date
TTITLE Left 'DB :' system_id -
Center 'Shared Pool Tuning Estimates' Skip 1 -
Left 'Up Since: ' startup_date -
Center '~~~~~~~~~~~~~~~~~~~~~~~~~~~~' Skip 2
select d.name AS sys_id,
TO_CHAR(i.startup_time,'dd Mon yyyy hh24:mi') as sys_startup,
p.SHARED_POOL_SIZE_FOR_ESTIMATE AS est_MB,
p.SHARED_POOL_SIZE_FACTOR AS multiplier,
p.ESTD_LC_SIZE AS LC_MB,
p.ESTD_LC_MEMORY_OBJECTS AS LC_OBJ,
p.ESTD_LC_TIME_SAVED - base.ts AS LC_TS,
p.ESTD_LC_TIME_SAVED_FACTOR AS LC_TSF,
p.ESTD_LC_MEMORY_OBJECT_HITS - base.oh AS LC_OH
from V$SHARED_POOL_ADVICE p,
v$database d,
v$instance i,
(SELECT ESTD_LC_TIME_SAVED as ts,
ESTD_LC_MEMORY_OBJECT_HITS as oh
FROM V$SHARED_POOL_ADVICE
WHERE SHARED_POOL_SIZE_FACTOR = 1) base;
set echo off
set feedback off
set heading off
TTITLE Center 'Shared Pool Reserved' Skip 1 -
Center '~~~~~~~~~~~~~~~~~~~~' Skip 2
select 'shared_pool_reserved_size init.ora paramater : '||to_char(value,'999,999,999')
from v$parameter where name = 'shared_pool_reserved_size'
union all
select 'Freespace on reserved list : '||to_char(FREE_SPACE,'999,999,999')
from v$shared_pool_reserved
union all
select 'Avg. size of free memory : ' || to_char(AVG_FREE_SIZE,'999,999,999')
from v$shared_pool_reserved
union all
select 'Num. of free places on reserd list : '|| to_char(FREE_COUNT,'999,999,999')
from v$shared_pool_reserved
union all
select 'Largest piece of free memory on reserved list : ' || to_char(MAX_FREE_SIZE,'999,999,999')
from v$shared_pool_reserved
union all
select 'Total used memory on reserved list : ' ||to_char(USED_SPACE,'999,999,999')
from v$shared_pool_reserved
union all
select 'Average size of used memory on reserved list : '||to_char(AVG_USED_SIZE,'999,999,999')
from v$shared_pool_reserved
union all
select 'Number of used pieces of memory on reserved list : '|| to_char(USED_COUNT,'999,999,999')
from v$shared_pool_reserved
union all
select 'Largest piece of used memory on reserved lsit : ' || to_char(MAX_USED_SIZE,'999,999,999')
from v$shared_pool_reserved
union all
select 'Number of times reserved list searched for free memory : '|| to_char(REQUESTS,'999,999,999')
from v$shared_pool_reserved
union all
select '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '
from dual
union all
select 'Number of times could reserved list has to start flushing LRU : ' || to_char(REQUEST_MISSES,'999,999,999')
from v$shared_pool_reserved
union all
select 'Size of last memory request miss : ' || to_char(LAST_MISS_SIZE,'999,999,999')
from v$shared_pool_reserved
union all
select 'Size of the largest memory request miss : ' ||to_char(MAX_MISS_SIZE,'999,999,999')
from v$shared_pool_reserved
union all
select 'Number of times no memory found (ORA-04031) : '||to_char(REQUEST_FAILURES,'999,999,999')
from v$shared_pool_reserved
union all
select 'Size of the last no memory found (ORA-04031) : '|| to_char(LAST_FAILURE_SIZE,'999,999,999')
from v$shared_pool_reserved
union all
select 'Minimum size of request that causes an ORA-04031 W/O flushing LRU: '|| to_char(ABORTED_REQUEST_THRESHOLD,'999,999,999,999')
from v$shared_pool_reserved
union all
select 'Number of requests that signaled ORA-04031 without flushing LRU : '|| to_char(ABORTED_REQUESTS,'999,999,999')
from v$shared_pool_reserved
union all
select 'Size of last request that signaled ORA-04031 : '|| to_char(LAST_ABORTED_SIZE,'999,999,999')
from v$shared_pool_reserved;
TTITLE off
set feedback on
set heading on
set underline off
set feedback off
COLUMN TEXT FOR a96 HEADING ''
SELECT 'V$SHARED_POOL_ADVICE displays information about estimated parse time savings in the shared pool for different sizes.' ||
CHR(10) || '.' ||
CHR(10) || 'SHARED POOL SIZE : Shared pool size for the estimate (in MB).' ||
CHR(10) || 'MULTIPLIER : Size factor with respect to the current shared' ||
CHR(10) || ' pool size. 1.00 = current shared pool size.' ||
CHR(10) || 'LIB. CACHE (MB) : Est. memory in use by the library cache (in MB)' ||
CHR(10) || 'LIB. CACHE OBJECTS: Est. number of library cache memory objects in' ||
CHR(10) || ' the shared pool of the specified size.' ||
CHR(10) || 'PARSE TIME SAVED : Est. elapsed parse time saved (in seconds), owing'||
CHR(10) || ' to library cache memory objects being found in a' ||
CHR(10) || ' shared pool of the specified size. This is the ' ||
CHR(10) || ' time that would have been spent in reloading the' ||
CHR(10) || ' required objects in the shared pool had they been'||
CHR(10) || ' aged out due to insufficient amount of available' ||
CHR(10) || ' free memory.' ||
CHR(10) || 'PARSE TIME SAVED FACTOR: Estimated parse time saved factor with respect' ||
CHR(10) || ' to the current shared pool size.' ||
CHR(10) || 'LIB. OBJ. HITS : Est. number of times a library cache memory object' ||
CHR(10) || ' was found in a shared pool of the specified size.'
as text
FROM dual;
set underline '-'
TTITLE off
set feedback onThis will show you the state of shared pool and help you decide on the proper size.
Similar Messages
-
MY RAM IS 12GB HOW WOULD YOU SUGGEST SHMMAX SIZE AND SGA SIZE
Hi Export
MY RAM IS 12GB HOW WOULD YOU SUGGEST SHMMAX SIZE AND SGA SIZE.
thanksafzal wrote:
my ram 12gb
database size 70gb
windows 2003
harddisk 500gbHow large is your SGA now??
Do you have a performance problem yet ??
Is the problem a global problem in the whole database, or are there just some queries that are slow ??
What db version are you using ??
What other applications are using this server ??
How many users are using this database ??
Tuning is very much dependent on the application/situation and database type.
I would like to suggest you start looking at AWR or Statspack.
HTH
FJ Franken
My Blog: http://managingoracle.blogspot.com -
How to increase the size of sort_area_size
How to increase the size of sort_area_size and what size should be according to the PROD database
Thanksuser10869960 wrote:
Hi,
Many Thanks Charles
Oracle does not recommend using the SORT_AREA_SIZE parameter unless the instance is configured with the shared server option. Oracle recommends that you enable automatic sizing of SQL working areas by setting PGA_AGGREGATE_TARGET instead. SORT_AREA_SIZE is retained for backward compatibility."
--How can i know the instance is configured with the shared server option or not?This might be a tough question to answer. A shared server configuration may be enabled, but the clients may still connect using dedicated sessions, in which case PGA_AGGREGATE_TARGET would still apply.
From
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm
V$SESSION includes a column named SERVER which will contain one of the following for each of the sessions: DEDICATED, SHARED, PSEUDO, or NONE. As a quick check, you could query V$SESSION to see if any sessions are connected using a shared server connection.
From:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm
There are several parameters which are used to configure shared server support, as well as several views to monitor shared server.
As Robert mentioned, when the WORKAREA_SIZE_POLICY is set to AUTO, the SORT_AREA_SIZE setting is not used, unless a shared server configuration is in use.
--What default value is WORKAREA_SIZE_POLICY and SORT_AREA_SIZE ?From:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams157.htm
"Setting PGA_AGGREGATE_TARGET to a nonzero value has the effect of automatically setting the WORKAREA_SIZE_POLICY parameter to AUTO. This means that SQL working areas used by memory-intensive SQL operators (such as sort, group-by, hash-join, bitmap merge, and bitmap create) will be automatically sized. A nonzero value for this parameter is the default since, unless you specify otherwise, Oracle sets it to 20% of the SGA or 10 MB, whichever is greater."
Actually I am facing performence issue since long time till now i did not get the solution even i have raised SRs but i could not.When the issue occur system seems hang.what i monitored whenever hdisk0 and hdisk1 use 100% the issue occur.
Regards,
SajidWhen you say that you have had a performance issue for a long time, is it a performance problem faced by a single SQL statement, a single user, a single application, or everything on the server? If you are able to identify a single user, or SQL statement that is experiencing poor performance, I suggest starting with a 10046 trace at level 8 (wait events) or level 12 (wait events and bind variables) to determine why the execution appears to be slow. If you have not yet determined a specific user or SQL statement that is experiencing performance problems, you might start with either a Statspack Report or an AWR Report (AWR requires a separate license).
If you believe that temp tablespace usage may be a contributing factor to the performance problem, you may want to periodically run this query, which will indicate currently in use temp tablespace usage:
{code}
SELECT /*+ ORDERED */
TU.USERNAME,
S.SID,
S.SERIAL#,
S.SQL_ID,
S.SQL_ADDRESS,
TU.SEGTYPE,
TU.EXTENTS,
TU.BLOCKS,
SQL.SQL_TEXT
FROM
V$TEMPSEG_USAGE TU,
V$SESSION S,
V$SQL SQL
WHERE
TU.SESSION_ADDR=S.SADDR
AND TU.SESSION_NUM=S.SERIAL#
AND S.SQL_ID=SQL.SQL_ID
AND S.SQL_ADDRESS=SQL.ADDRESS;
{code}
The SID and SERIAL# returned by the above could then be used to enable a 10046 trace for a session. The SQL_ID (and CHILD_NUMBER from V$SESSION in recent releases) could be used with DBMS_XPLAN.DISPLAY_CURSOR to return the execution plan for the SQL statement.
You could also take a look in V$SQL_WORKAREA_ACTIVE to determine which, if any, SQL statement are resulting in single-pass, or multi-pass executions, which both access the temp tablespace.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc. -
How much data canbe cache in SGA
Hai everybody,
my company using Oracle 11g 11.2.0.1.0 - Production database, my os is RHEL 5.5 ,my server's physical memory is 30.9 GB ( cat /proc/meminfo ) ie the SGA size [ (30.9*40/100)=12.5 GB ] so i use 12.5GB SGA size for one instance, we need to cache some data for our application performance how much data can cache in SGA based on 12.5 GB or how to calculate how much data can cache in SGA without any performance degradation.
Regards BenkAman has it right. WHY?
the keep pool, alter table cache, etc - I would not be doing ANY of these without a good reason.
Often times, people think that forcing a table to stay in the cache is a good idea. It rarely is. If you want things in the cache, use them. If they are used, they will naturally have their blocks cached. If you don't use them, they can get flushed out. But if you don't use them, why do you want them using memory that could better be used by other things?
My advice: don't try to second-guess Oracle's memory management and caching strategy. If you think you have a reason to, post it here and we can help you (or debunk your reason). Based on the fact that you've apparently calculated the SGA using that silly, meaningless "rule" that says give it 40% of your total RAM, I'd guess that you are looking around for a magic bullet, and you don't actually have a problem to solve.
John -
Recommended size for SGA.
Hi All,
I need to know what will be the recommended size for the SGA.
how to calculate the MAX size for sga?
its an interview question.
Please help?SGA is composed of buffer_cache, shared_pool, java_pool, large_pool etc. How much memory they need depends on the number of users, the number of different sql statements, the size of the plsql packages, the size of the database, the type of query etc.
You size SGA to get the best performance you can on the server based on what you need to run. There is no rule or formula, just make it as big as possible to give the best performance without causing the server to use paging.
The Max size will depend on how much memory is on the server, the OS you are running, and whether you are using 32 or 64 bit Oracle.
Message was edited by:
rgeier -
How to publish big size repot by BI Publisher?
Hi all,
Our customer wants to know how to publish big size report by BI Publisher.
Because they have performance problem with Excel Analyzer, which is used for reporting perpose.
Their existing reports are based on Excel. So, they wants to design and report by Excel Interface.
I'd like to know how to publish the big size report by BI Publisher?
We want to know customer case and explain it our customer.
Thank you,
WataruNice document.
Also if you want to look at it from concurrent program log itself, then:
In the application developer responsibility
-> Concurrent
-> Program
-> Define
-> Query for short code
-> Click on Parameters
->Define the following parameter (if not existing)
Parameter Name=P_DEBUG_FLAG, attach any valueset that is YES_NO valueset.
Give
Default value=Y
Token=DebugFlag
Save.
Next time you run the Concurrent Program, the log file contains the sql executions similar to xdo logs.
By
Vamsi -
How to change font size on screen
how to change font size on screen
I'm not certain what font sizes you wish to change, when on a page you can use command and the += button to zoom in and make the fonts larger. On the finder desktop you can make what ever is on the desktop larger or smaller from the finder menu click view, custom view options, and adjust the icon size with the slider on the top, and the text using the text size box to select the size that your comfortable with.
Forgot to add these.
http://support.apple.com/kb/PH10876
http://support.apple.com/kb/PH10877
Hope this helps. -
How to change Font Size of Object Explorer in "SQL Server Management Studio"
Dear Team,
"SQL Server Management Studio" is a fantastic IDE for the database.
There are so many customization options available but one thing many users missing is that " How to change Font Size of Object Explorer?"
Can you please accumulate this feature in IDE ASAP?
Many Thanks,
BhaveshIts there
Go to Tools -> Options
Then under Environment you've fonts and colors tab where you can specify a higher font size.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to change font size, maximum column size in the result screen ?
hi All
That's great when using SQL Dev.
But I also have a trouble that how to change font size, maximum column size in the result screen ?
My users think that font in result screen is shown very small, and whenever the data in each colum is long then it's not shown full data in column, they must double click for extend the size. Have the option to default the max size for showing full data in each column ? I try but still not to do that .
Appreciate for anyone to help us.
Thanks all.
SigmasvnYou can't change the font for the results screen yet, however you will be able to select an auto-fit option for selected columns, so if some columns have slitghtly wider text you'll be able to set the column widths to handle these wider columns.
Also, there s the option of switching the layout of a record in the grid.
Sue -
How to change font size and style in keynote for ios
How to change font size and style in keynote for ios
Same situation for report parameter input value font. What ever we do , it is still Arial and size 10.
-
How to change font size in a call-out tool box?
Hi, the other day i inserted a call-out tool box in a PDF document, however i cannot find anything that can change the font size of the letters i input in that box. could anyone help? Thanks.
ShermanThis is a question for the Acrobat support forums – please post there.
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Wed, 23 Nov 2011 10:55:07 -0800
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: how to change font size in a call-out tool box?
Re: how to change font size in a call-out tool box?
created by danmarch<http://forums.adobe.com/people/danmarch> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/4043425#4043425 -
How to change font size in check printing program in AP Invoice
I would like to know how to change font size in check printing program in Oracle Payables Module for Invoice printing. We are using Oracle standard
report to print check.
Concurrent program short name : APXPBFEL
Prt file : APLASP.prt
I modified prt file for code 199 like below
code "199" esc "(8U" esc "(s0p12.00h10.00v0s0b3T" esc "&k11.75H"
Font size changed for last page only which prints checks, for Void pages its printed with default font. For Page 1 printed with default font and page 2 has reduced font. This change is not intiallized for all pages.
Please let me know if you any of you know how to change fonts.
Thanks,
Anand*Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
-
How to change font size in textarea?
how to change font size in textarea?
to embed a font using actionscript requires adding the font to your library. to do that, click the upper right of your library panel, click "new font..", select the font you want and click ok. find the added font in your library, right click, click properties and tick "export for actionscript" (click the actionscript tab if you don't see that option, at first). assign a class name (eg, WhateverFont). you can then use:
var tfor:TextFormat = new TextFormat();
tfor.size=22;
var yourfont:Font=new WhateverFont();
tfor.font = yourfont.fontName;
ta.setStyle("embedFonts",true);
ta.setStyle("textFormat",tfor); -
How to change font size in a table?
How to change font size in a table without using the font style of another document? Please show a sample script. Thanks!
Hi Dave,
Thank you so much for the email. I tried every object and method I can
posibly think about such as
myTable.Rows.Item(1).PointSize = 24
myCell.Characters.Item(1).PointSize = 24
I got error message all the time. These objects don’t support PointSize.
All I need is to change point size of the text in InDesign tables created
using VBScript. Could you help me with this? Thanks,
Regards,
Li -
Just purchased Deskjet 1010 & don't know how to change font size.
hellinger
Welcome to the HP Community Forum.
In most cases you can adjust the scale of your documents before you print.
Please take a look at the following:
Manage Print Output with Print Preview
Click the Kudos Thumbs-Up to say Thank You!
And...Click Accept as Solution when my Answer provides a Fix or Workaround!
I am pleased to provide assistance on behalf of HP. I do not work for HP.
Kind Regards,
Dragon-Fur
Maybe you are looking for
-
Re: [iPlanet-JATO] Double Trouble
Looks like the attachment will not be inlined by egroup's mailer so here is the table i was trying to send before: Current Type mapping (appologies for lousy formatting) ND ColumnDataType DATA_FIELD_TYPE_MAP DATA_FIELD_SQL_TYPE_MAP NO_TYPE String jav
-
It will update for about 10 minutes and when it starts proccessing file it gives me a message that it is unable to complete to check my connection or try later.
-
Welcome to BT. Please stand still while I repeated...
My experience so far: Was (and thankfully still am just) with Virgin. Ordered Infinity, TV and phone from BT. Mainly because I want Moto GP in 2014. First engineer slot. Engineer no show. Phoned up. Order was cancelled but nobody mentioned it. Excell
-
As being a novice with my Mac Pro computer and Cannon 5D mark 3 camera my issue has arisen while over the last year and half, when down loading into my Photoshop Lightroom 4, my 18,000 photograph were not catalogued correctly, or hardly at all, so n
-
Why can't I use a Vision+ and a YouView Box
Hi, I'm with BT and pay £5 a month for BT Vision. I have their YouView box in one room. They only allow BT Sport on the YouView box if you have fibre and there's no fibre in my area. I asked BT if I could run a YouView box and BT Vision box at the sa