oracle database 11g’s result cache rob van wijk 28 october 2010

Post on 20-Jan-2016

219 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Oracle Database 11g’s Result Cache

Rob van Wijk

28 October 2010

Who am IRob van Wijk

• 15 years experience with Oracle products

Utrecht,Netherlands

• Database application developer

• From:

• Blog:

• Forums:

Oracle Database 11g’s Result CacheTopics

• What is it?

• Demo how it works

• Demo some caveats

• Technical design considerations

Oracle Database 11g’s Result CacheDefinition

“A result cache is an area of memory, either in the SGA or client application memory, that

stores the result of a database query or query block for reuse.“

Oracle® Database Performance Tuning Guide Chapter 7.6

Oracle Database 11g’s Result CacheOverview SGA and Server Result Cache

System Global Area (SGA)

Shared Pool Database Buffer Cache

Large Pool

Other

Redo Log Buffer

Library Cache

DataDictionaryCache

OtherServerResultCache

ReservedPool

Oracle Database 11g’s Result Cache

D E M O

Robs Tourpoules

Technical design considerations

rc23.sql

Oracle Database 11g’s Result CacheTechnical design considerations

Which queries are ideal candidates?• Static source data• Process lots of data• Produce a smallish result set• Execute often• Limited number of parameters

Oracle Database 11g’s Result CacheTechnical design considerations

• Small lookup tables, like CG_REF_CODES?

rc21.sql

Oracle Database 11g’s Result CacheTechnical design considerations

Are denormalizations still necessary?

Oracle Database 11g’s Result CacheTechnical design considerations

Use it in your interface schemas?

ApplicationSchema

InterfaceSchema

Table

Table

Table

View

ExternalApplication

orWebsite

The End

Thanks for your attention.

Email: rwijk72@gmail.com

Blog: http://rwijk.blogspot.com

top related