Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SGA / Latch Question

 
   Database Help (Home) -> Oracle RSS
Next:  Question on SGA  
Author Message
mrdjmagnet

External


Since: Dec 01, 2008
Posts: 23



(Msg. 1) Posted: Tue Dec 30, 2008 10:12 am
Post subject: SGA / Latch Question
Archived from groups: comp>databases>oracle>misc (more info?)

Hi,

This just seems weird. I look at our SPFILE: *.shared_pool_size=2G

I query v$parameter: 1073741824

I ran a query:

SHARED_POOL_USED SHARED_POOL_SIZE SHARED_POOL_AVAILPCT_SHARED_POOL_AVL
---------------- ---------------- ------------------------------------
2107.04836 1024 0205.766441

Ok, so if I have 2GB in my spfile, and I bounced my database, why is
it reading 1GB, unless I'm a dork and cannot read properly.......Size
= 1GB and used = 2GB??

Our sql library cache miss ratio says 99%, using that Spotlight
utility and the latch waits are about 10%. So, we figure we have a
problem.....

DUH??

 >> Stay informed about: SGA / Latch Question 
Back to top
Login to vote
Mark D Powell

External


Since: Dec 20, 2007
Posts: 294



(Msg. 2) Posted: Tue Dec 30, 2008 11:34 am
Post subject: Re: SGA / Latch Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Dec 30, 1:12 pm, mrdjmag....RemoveThis@aol.com wrote:
> Hi,
>
> This just seems weird.  I look at our SPFILE:  *.shared_pool_size=2G
>
> I query v$parameter: 1073741824
>
> I ran a query:
>
> SHARED_POOL_USED SHARED_POOL_SIZE SHARED_POOL_AVAILPCT_SHARED_POOL_AVL
> ---------------- ---------------- ------------------------------------
>       2107.04836             1024                 0205.766441
>
> Ok, so if I have 2GB in my spfile, and I bounced my database, why is
> it reading 1GB, unless I'm a dork and cannot read properly.......Size
> = 1GB and used = 2GB??
>
> Our sql library cache miss ratio says 99%, using that Spotlight
> utility and the latch waits are about 10%.  So, we figure we have a
> problem.....
>
> DUH??

Please provide the folowing information:
Full Oracle version
values of database parameters:
sga_max_size
sga_target
pga_target
workarea_size_policy
shared_pool_size
db_cache_size

The actual query or queries you are using since the source cannot
always be determined just from seeing output.

HTH -- Mark D Powell --

 >> Stay informed about: SGA / Latch Question 
Back to top
Login to vote
mrdjmagnet

External


Since: Dec 01, 2008
Posts: 23



(Msg. 3) Posted: Tue Dec 30, 2008 11:55 am
Post subject: Re: SGA / Latch Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Dec 30, 1:34 pm, Mark D Powell wrote:
> On Dec 30, 1:12 pm, mrdjmag... DeleteThis @aol.com wrote:
>
>
>
> > Hi,
>
> > This just seems weird.  I look at our SPFILE:  *.shared_pool_size=2G
>
> > I query v$parameter: 1073741824
>
> > I ran a query:
>
> > SHARED_POOL_USED SHARED_POOL_SIZE SHARED_POOL_AVAILPCT_SHARED_POOL_AVL
> > ---------------- ---------------- ------------------------------------
> >       2107.04836             1024                 0205.766441
>
> > Ok, so if I have 2GB in my spfile, and I bounced my database, why is
> > it reading 1GB, unless I'm a dork and cannot read properly.......Size
> > = 1GB and used = 2GB??
>
> > Our sql library cache miss ratio says 99%, using that Spotlight
> > utility and the latch waits are about 10%.  So, we figure we have a
> > problem.....
>
> > DUH??
>
> Please provide the folowing information:
> Full Oracle version
> values of database parameters:
> sga_max_size
> sga_target
> pga_target
> workarea_size_policy
> shared_pool_size
> db_cache_size
>
> The actual query or queries you are using since the source cannot
> always be determined just from seeing output.
>
> HTH -- Mark D Powell --


Database: 10gr2
sga_max_size=12G
sga_target=10G
pga_aggregate_target=800M (No pga_target defined)
workarea_size_policy='AUTO'
shared_pool_size=2G
db_cache_size=3000M
 >> Stay informed about: SGA / Latch Question 
Back to top
Login to vote
joel garry

External


Since: Dec 20, 2007
Posts: 422



(Msg. 4) Posted: Tue Dec 30, 2008 2:32 pm
Post subject: Re: SGA / Latch Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Dec 30, 11:55 am, mrdjmag... DeleteThis @aol.com wrote:
> On Dec 30, 1:34 pm, Mark D Powell wrote:
>
>
>
>
>
> > On Dec 30, 1:12 pm, mrdjmag... DeleteThis @aol.com wrote:
>
> > > Hi,
>
> > > This just seems weird.  I look at our SPFILE:  *.shared_pool_size=2G
>
> > > I query v$parameter: 1073741824
>
> > > I ran a query:
>
> > > SHARED_POOL_USED SHARED_POOL_SIZE SHARED_POOL_AVAILPCT_SHARED_POOL_AVL
> > > ---------------- ---------------- ------------------------------------
> > >       2107.04836             1024                 0205.766441
>
> > > Ok, so if I have 2GB in my spfile, and I bounced my database, why is
> > > it reading 1GB, unless I'm a dork and cannot read properly.......Size
> > > = 1GB and used = 2GB??
>
> > > Our sql library cache miss ratio says 99%, using that Spotlight
> > > utility and the latch waits are about 10%.  So, we figure we have a
> > > problem.....
>
> > > DUH??
>
> > Please provide the folowing information:
> > Full Oracle version
> > values of database parameters:
> > sga_max_size
> > sga_target
> > pga_target
> > workarea_size_policy
> > shared_pool_size
> > db_cache_size
>
> > The actual query or queries you are using since the source cannot
> > always be determined just from seeing output.
>
> > HTH -- Mark D Powell --
>
> Database:  10gr2
> sga_max_size=12G
> sga_target=10G
> pga_aggregate_target=800M    (No pga_target defined)
> workarea_size_policy='AUTO'
> shared_pool_size=2G
> db_cache_size=3000M

See http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/memory....#sthref
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/create....#sthref

This shared pool parameter is being automatically tuned by Oracle, so
looking at the setting that would be used if you were "manual" may be
a bit confusing. You might want to google around for good
descriptions of workarea_size_policy. But be careful, there are a lot
of myths and falsehoods floating about. The advice tables for setting
pga and those things seem pretty good in my experience, though some
things just keep asking for more and more. But it is nice and easy to
just use EM to check them out.

Here's a start: http://asktom.oracle.com/pls/asktom/f?p=100:11:4452652851819884::::P11...ESTION_

Since you have another thread that seems to show strange code, it is
possible the advice tables and anything based on them may be fooled.
They are just tools, and any such tools have built-in assumptions.

There is no pga_target.

Some other important pieces to the puzzle:

Are you using shared servers? (ohhh, that difference isn't supposed
to be true anymore...)
Which _exact_ version of Oracle are you using? 10gR2 is not good
enough, it should be something like 10.2.0.4.0
Which platform are you on? (OS, version, hardware)

And as Mark asked, show the query you are using to make the
determination.

jg
--
@home.com is bogus.
$40M/year: http://www3.signonsandiego.com/stories/2008/dec/30/1b30buffett212021-j...y-buffe
 >> Stay informed about: SGA / Latch Question 
Back to top
Login to vote
Mark D Powell

External


Since: Dec 20, 2007
Posts: 294



(Msg. 5) Posted: Wed Dec 31, 2008 8:02 am
Post subject: Re: SGA / Latch Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Dec 30, 5:32 pm, joel garry wrote:
> On Dec 30, 11:55 am, mrdjmag....RemoveThis@aol.com wrote:
>
>
>
>
>
> > On Dec 30, 1:34 pm, Mark D Powell wrote:
>
> > > On Dec 30, 1:12 pm, mrdjmag....RemoveThis@aol.com wrote:
>
> > > > Hi,
>
> > > > This just seems weird.  I look at our SPFILE:  *.shared_pool_size=2G
>
> > > > I query v$parameter: 1073741824
>
> > > > I ran a query:
>
> > > > SHARED_POOL_USED SHARED_POOL_SIZE SHARED_POOL_AVAILPCT_SHARED_POOL_AVL
> > > > ---------------- ---------------- ------------------------------------
> > > >       2107.04836             1024                 0205.766441
>
> > > > Ok, so if I have 2GB in my spfile, and I bounced my database, why is
> > > > it reading 1GB, unless I'm a dork and cannot read properly.......Size
> > > > = 1GB and used = 2GB??
>
> > > > Our sql library cache miss ratio says 99%, using that Spotlight
> > > > utility and the latch waits are about 10%.  So, we figure we have a
> > > > problem.....
>
> > > > DUH??
>
> > > Please provide the folowing information:
> > > Full Oracle version
> > > values of database parameters:
> > > sga_max_size
> > > sga_target
> > > pga_target
> > > workarea_size_policy
> > > shared_pool_size
> > > db_cache_size
>
> > > The actual query or queries you are using since the source cannot
> > > always be determined just from seeing output.
>
> > > HTH -- Mark D Powell --
>
> > Database:  10gr2
> > sga_max_size=12G
> > sga_target=10G
> > pga_aggregate_target=800M    (No pga_target defined)
> > workarea_size_policy='AUTO'
> > shared_pool_size=2G
> > db_cache_size=3000M
>
> Seehttp://download.oracle.com/docs/cd/B19306_01/server.102/b14211/memo......http
>
> This shared pool parameter is being automatically tuned by Oracle, so
> looking at the setting that would be used if you were "manual" may be
> a bit confusing.  You might want to google around for good
> descriptions of workarea_size_policy.  But be careful, there are a lot
> of myths and falsehoods floating about.  The advice tables for setting
> pga and those things seem pretty good in my experience, though some
> things just keep asking for more and more.  But it is nice and easy to
> just use EM to check them out.
>
> Here's a start:  http://asktom.oracle.com/pls/asktom/f?p=100:11:4452652851819884:::Razz1...
>
> Since you have another thread that seems to show strange code, it is
> possible the advice tables and anything based on them may be fooled.
> They are just tools, and any such tools have built-in assumptions.
>
> There is no pga_target.
>
> Some other important pieces to the puzzle:
>
> Are you using shared servers?  (ohhh, that difference isn't supposed
> to be true anymore...)
> Which _exact_ version of Oracle are you using?  10gR2 is not good
> enough, it should be something like 10.2.0.4.0
> Which platform are you on? (OS, version, hardware)
>
> And as Mark asked, show the query you are using to make the
> determination.
>
> jg
> --
> @home.com is bogus.
> $40M/year:  http://www3.signonsandiego.com/stories/2008/dec/30/1b30buffett212021-...- Hide quoted text -
>
> - Show quoted text -

Joel, thanks for following up.
MRDJMAG, you may want to check out the information in the following
views
v$sga_dynamic_components
v$sga_resize_ops
v$sga_current_resize_ops

HTH -- Mark D Powell --
 >> Stay informed about: SGA / Latch Question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Q: imp question - I have exp'd several tables using the exp defaults, which appears to include GRANTS INDEXES ROWS CONSTRAINTS TRIGGERS. Now I am about to imp those table just to check I can do that before doing other things. I understand perfectly well that imp fails i...

SubQuery Question - I have 2 tables that contain Schedule information. The first table contains Work Order's and the second table contains Task information. A given Work Order is composed of any combination of Tasks. Example: Work Order = Car Task 1 = Wheel Install Task 2...

performance question - What will be better? UPDATE table1 SET table1.some_col = (SELECT some_col FROM table2 WHERE table2.col_id = table1.col_id) WHERE EXISTS (SELECT null FROM table2 WHERE table2.col_id =..

A synonym question - I have the following scenario: - Tables and views are in Schema1 and Schema2 - Synonyms are created private under UserX this works fine no problem. Lately I created Schema3 and Schema4 to backup 1 and 2 respectively. Now I want to access these new..

PLSQL Question - Hi All, Some developers here have tried to come up with a procedure where they can pass a table name to a functon, and a SELECT statement will be returned with all the column names, thus eliminating the need for do a SELECT *........ CURSOR tab_cols....
   Database Help (Home) -> Oracle All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]