Which two conditions must be true for a PL/SQL function to be result cached? (Choose two.)
A.
It must be part of a package.
B.
It must be a pipelined table function.
C.
It must not be defined in an anonymous block.
D.
It must have at least one DBMS_TRACE.trace_all_callsDBMS_TRACE.trace_all_calls
Can anyone tell me why D is a correct answer ?
I think Answer D is wrong as I couldnt see any such conditon for using result cache in any document.I think Option A and C is right.
QUESTION IS WRONG IN THIS PAGE!
Of course D doesn’t make sense. D is “function must have at least one OUT or IN OUT parameter”.
QUESTION IS WRONG IN THIS PAGE!
Option D doesn’t make sense. D should be “function must have at least one OUT or IN OUT parameter”.
– A is inexact so it’s wrong
– B is wrong, it’s the opposite,
– C is correct
– D is true by discharge but it doesn’t make sense
D) Doesn’t make make sense!
Also suggestion about OUT or IN OUT parameter is wrong!
http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/subprograms.htm#g3335204
Restrictions on Result-Cached Functions
To be result-cached, a function must meet all of the following criteria:
(…)
It has no OUT or IN OUT parameters.
(…)
C is only correct answer
according to http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/subprograms.htm#g3298100
A,C
C) is the only correct answer
Here are some hyperlinks to websites that we link to due to the fact we think they may be really worth visiting.