McDOUG Question #1A key Oracle11g enhancement forPL/SQL is the function result cache.Which of the following types of datac...
Your Choices?1.   Cursor variables2.   Nested tables and varrays3.   Associative arrays4.   Object types5.   Large objects...
AnswerYou cannot use any of the following datatypes in either the  parameter list and RETURN clause of a function that  in...
Continue You can, on the other hand, return the  following types of data (but they may not  appear in the parameter list ...
Restrictions on Result-Cached Functions To be result-cached, a function must meet  all of the following criteria: It is ...
Restrictions on Result-Cached Functions   No IN parameter has one of the following types:     – BLOB     – CLOB     – NCL...
Q&A Use RESULT CACHE Wisely? Thank You.
Upcoming SlideShare
Loading in …5
×

PL/SQL11g Question #1

745 views

Published on

This was the McDOUG first meeting question to introduce 11g features to group.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
745
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

PL/SQL11g Question #1

  1. 1. McDOUG Question #1A key Oracle11g enhancement forPL/SQL is the function result cache.Which of the following types of datacan be used in the parameter list orreturn clause (but not necessarilyboth) of a function defined using theRESULT_CACHE keyword?
  2. 2. Your Choices?1. Cursor variables2. Nested tables and varrays3. Associative arrays4. Object types5. Large objects (BLOB, CLOB, BFILE)6. Records (user-defined and %ROWTYPE)7. Scalars (numbers, dates, strings, Booleans)
  3. 3. AnswerYou cannot use any of the following datatypes in either the parameter list and RETURN clause of a function that includes the RESULT_CACHE clause: Large objects (BLOB, CLOB, BFILE) Object types Cursor variables If you try to use these anywhere in the function header, you will get this compile error: PLS-00999: implementation restriction (may be temporary) RESULT_CACHE is disallowed on subprograms with IN parameter of (or
  4. 4. Continue You can, on the other hand, return the following types of data (but they may not appear in the parameter list of the function): Associative arrays Nested tables Varrays Records (user-defined and %ROWTYPE)
  5. 5. Restrictions on Result-Cached Functions To be result-cached, a function must meet all of the following criteria: It is not defined in a module that has invokers rights or in an anonymous block. It is not a pipelined table function. It has no OUT or IN OUT parameters.
  6. 6. Restrictions on Result-Cached Functions No IN parameter has one of the following types: – BLOB – CLOB – NCLOB – REF CURSOR – Collection – Object – Record The return type is none of the following: – BLOB – CLOB – NCLOB – REF CURSOR – Object – Record or PL/SQL collection that contains one of the preceding unsupported return types
  7. 7. Q&A Use RESULT CACHE Wisely? Thank You.

×