DB_Cache_Hit Ratio less than 70 [message #266626] |
Tue, 11 September 2007 04:36 |
tkmittal1
Messages: 143 Registered: May 2007 Location: Delhi
|
Senior Member |
|
|
Hi
I m using oracle 9i release 2
O/s : windows 2000 server
After running a particular report my db_cahce_hit ratio goes down less than 50% sometime
I have increase the size of db_cache_size but the problem is still same
kindly suggest
Regards
TM
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: DB_Cache_Hit Ratio less than 70 [message #266689 is a reply to message #266682] |
Tue, 11 September 2007 07:30 |
tkmittal1
Messages: 143 Registered: May 2007 Location: Delhi
|
Senior Member |
|
|
i have already optmize the report
the query behind that report is
select a.VCH_VCH_#,a.VCH_VCH_DATE,b.VCH_GL_CODE,
b.VCH_SL_CODE,b.VCH_NARATN_LN,
b.vch_date_DB,b.vch_date_CR,b.VCH_DOC_#,VCH_BILL_# ,SL_TYPE_DETL,
b.VCH_DBCR,b.vch_vch_type
VCH_BILL_DATE,b.vch_srl_# ,b.vch_prod_type
from fac_vch_m a, fac_vch_d b
where a.vch_locn_code = b.vch_locn_code
and
a.VCH_VCH_type = b.VCH_VCH_type
and
a.VCH_VCH_# = b.VCH_VCH_#
and
a.vch_locn_code = :locn_code
and
a.VCH_VCH_type = :vch_type
and
a.VCH_VCH_# BETWEEN NVL(:FROM_VCH_NO,A.VCH_VCH_#) AND
NVL(:TO_VCH_NO,A.VCH_VCH_#)
ORDER BY vch_vch_#, VCH_SRL_#
how can i know the number of buffer read by this query in db cache
|
|
|
|
Re: DB_Cache_Hit Ratio less than 70 [message #266993 is a reply to message #266710] |
Wed, 12 September 2007 03:41 |
tkmittal1
Messages: 143 Registered: May 2007 Location: Delhi
|
Senior Member |
|
|
Hi M
Explain Plan of that query is
PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost |
---------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 13 | 1313 | 44 |
| 1 | SORT ORDER BY | | 13 | 1313 | 44 |
| 2 | TABLE ACCESS BY INDEX ROWID | FAC_VCH_D | 2 | 152 | 3 |
| 3 | NESTED LOOPS | | 13 | 1313 | 40 |
| 4 | TABLE ACCESS BY INDEX ROWID| FAC_VCH_M | 8 | 200 | 16 |
| 5 | INDEX RANGE SCAN | CONS_VCH_PK | 8 | | 15 |
| 6 | INDEX RANGE SCAN | CONS_VCH_D_PK | 1 | | 2 |
PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------
Plz Suggest
|
|
|
|
Re: DB_Cache_Hit Ratio less than 70 [message #267011 is a reply to message #266993] |
Wed, 12 September 2007 04:34 |
tkmittal1
Messages: 143 Registered: May 2007 Location: Delhi
|
Senior Member |
|
|
[ PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost |
---------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 13 | 1313 | 44 |
| 1 | SORT ORDER BY | | 13 | 1313 | 44 |
| 2 | TABLE ACCESS BY INDEX ROWID | FAC_VCH_D | 2 | 152 | 3 |
| 3 | NESTED LOOPS | | 13 | 1313 | 40 |
| 4 | TABLE ACCESS BY INDEX ROWID| FAC_VCH_M | 8 | 200 | 16 |
| 5 | INDEX RANGE SCAN | CONS_VCH_PK | 8 | | 15 |
| 6 | INDEX RANGE SCAN | CONS_VCH_D_PK | 1 | | 2 |
]
Plz suggest
|
|
|
|