Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the diff between default & manual in RESULT_CACHE MODE DEFAULT | MANUAL?

What is the difference between default & manual in the following code snippet? (Oracle 11g)

alter table t_a result_cache (mode default);

and

alter table t_a result_cache (mode manual);

Image:

user_tables.result_cache

The user_tables.result_cache column has three possible values (Source E40402-18 Oracle Reference 11g)

like image 257
Meeran Mohideen Avatar asked May 07 '19 07:05

Meeran Mohideen


People also ask

What is diff between default and protected?

The Protected access specifier is visible within the same package and also visible in the subclass whereas the Default is a package level access specifier and it can be visible in the same package.

What is difference between public and default?

Default : When no access modifier is specified, it is treated as default modifier. Its scope is limited within the package. Public: The word itself indicates that it has scope everywhere, i.e; it is visible everywhere even outside the package. Private: It has scope only within the class.

What is the difference between private and default?

default (no modifier specified): accessible by the classes of the same package. private : accessible within the same class only.

Is default a protected?

2) Default The default modifier is accessible only within package. It cannot be accessed from outside the package. It provides more accessibility than private. But, it is more restrictive than protected, and public.


1 Answers

After scanning a lot of the 11g (this question was about 11g) documentation from Oracle regarding this, I think the answer should be: alter table t_a result_cache (mode manual); is not documented. The fact that it is accepted is either an Oracle bug or it is a documentation defect that it is not described. While it might (who outside of Oracle can really proof that?) behave 100% the same as mode default, I would not use it, and use the two modes on table level that are described in the documentation: DEFAULT and FORCE. MANUAL is a documented option only for the parameter RESULT_CACHE_MODE.

This is the best - 11g related - documentation from Oracle that I could find which covers both Result Cache Table Annotations (chapter 7.6.3.3) as well as the RESULT_CACHE_MODE Initialization Parameter (chapter 7.6.3.1): https://docs.oracle.com/cd/E25178_01/server.1111/e16638/memory.htm#BGBCABED

Edit: corrected the link

like image 140
Peter Avatar answered Oct 14 '22 18:10

Peter