Reader small image

You're reading from  Oracle Advanced PL/SQL Developer Professional Guide

Product typeBook
Published inMay 2012
Reading LevelExpert
PublisherPackt
ISBN-139781849687225
Edition1st Edition
Languages
Right arrow
Author (1)
Saurabh K. Gupta
Saurabh K. Gupta
author image
Saurabh K. Gupta

Saurabh K. Gupta is a seasoned database technologist with extensive experience in designing high performance and highly available database applications. His technology focus has been centered around Oracle Database architecture, Oracle Cloud platform, Database In-Memory, Database Consolidation, Multitenant, Exadata, Big Data, and Hadoop. He has authored the first edition of this book. He is an active speaker at technical conferences from Oracle Technology Network, IOUG Collaborate'15, AIOUG Sangam, and Tech Days. Connect with him on his twitter handle (or SAURABHKG) or through his technical blog www.sbhoracle. wordpress.com, with comments, suggestions, and feedback regarding this book.
Read more about Saurabh K. Gupta

Right arrow

Chapter 9, Caching to Improve Performance


Question No.

Answer

Explanation

1

a

The database server would cache the query results only when the user explicitly allocates the cache memory at the server and the caching feature is enabled. In the given scenario, caching is disabled as the value of the RESULT_CACHE_MAX_SIZE parameter is 0.

2

b and d

In automatic result caching, the RESULT_CACHE hint is ineffective as the server implicitly caches results of all SQL queries.

3

a

When the dependent table data gets updated, all the cached results get invalidated.

4

b

The cached results are stored at the server and are sharable across the sessions of the user.

5

b

PL/SQL result cache feature is operative only upon the functions which are declared as standalone or local to a stored subprogram or within a package.

6

a

The RELIES_ON clause has been deprecated in Oracle 11g R2.

7

b and c

The server doesn't cache the results of the queries which use sequence or any pseudo column (here SYSDATE).

8

b

PL/SQL function result cache works on server-side memory infrastructure which is the same for both SQL and PL/SQL. Only the results of functions can be cached at the server. The function must not be a pipelined one or the one declared with invoker's rights. It should accept parameters in the pass by reference mode of primitive data types only.

9

a and b

The valid values are PUBLISHED, NEW, INVALID, BYPASS, and EXPIRED.

10

a, b, c, and d

The V$RESULT_CACHE_STATISTICS dynamic performance view stores the latest cache memory statistics.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Oracle Advanced PL/SQL Developer Professional Guide
Published in: May 2012Publisher: PacktISBN-13: 9781849687225

Author (1)

author image
Saurabh K. Gupta

Saurabh K. Gupta is a seasoned database technologist with extensive experience in designing high performance and highly available database applications. His technology focus has been centered around Oracle Database architecture, Oracle Cloud platform, Database In-Memory, Database Consolidation, Multitenant, Exadata, Big Data, and Hadoop. He has authored the first edition of this book. He is an active speaker at technical conferences from Oracle Technology Network, IOUG Collaborate'15, AIOUG Sangam, and Tech Days. Connect with him on his twitter handle (or SAURABHKG) or through his technical blog www.sbhoracle. wordpress.com, with comments, suggestions, and feedback regarding this book.
Read more about Saurabh K. Gupta