DBA Hub

📋Steps in this guide1/3

Full Database Caching Mode in Oracle Database 12cR1 (12.1.0.2)

Learn how changes in Oracle Database 12cR1 (12.1.0.2) affect the way Oracle handles the buffer cache.

oracle 12cconfigurationintermediate
by OracleDba
14 views
1

Enable Force Full Database Caching Mode

Rather than letting Oracle determine if full database caching is appropriate, you can force the decision using the command. If the database is open in this or any other instance you get an error message. To force full database caching, you will need to do the following. After that, the change will be visible in the view.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SQL> ALTER DATABASE FORCE FULL DATABASE CACHING;
ALTER DATABASE FORCE FULL DATABASE CACHING
*
ERROR at line 1:
ORA-01126: database must be mounted in this instance and not open in any
instance

SQL>

CONN / AS SYSDBA
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ALTER DATABASE FORCE FULL DATABASE CACHING;
ALTER DATABASE OPEN;

SELECT force_full_db_caching FROM v$database;

FOR
---
YES

SQL>
2

Disable Force Full Database Caching Mode

Disabling force full database caching mode follows a similar format. The change is reflected in the view.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
CONN / AS SYSDBA
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ALTER DATABASE NO FORCE FULL DATABASE CACHING;
ALTER DATABASE OPEN;

SELECT force_full_db_caching FROM v$database;

FOR
---
NO

SQL>
3

Caveats

- The parameter must be set to 12.0.0 or higher. - If you are using AMM (MEMORY_TARGET) or ASMM (SGA_TARGET) it is possible the buffer cache size will alter, making the cache too small to hold the entire database. Either size the memory parameters appropriately, or better still set the minimum size of the buffer cache by setting the parameter to an appropriately large value. - There is no pre-emptive loading of objects. Instead, objects are cached as they are accessed. - LOBs defined as NOCACHE can be cached when force full database cache mode is enabled. Under normal running they are not. - Enabling force full database cache mode applies to the CDB and all PDBs when using the multitenant option. - If you need to recover your controlfile, you should check that force full database cache mode is still enabled. For more information see: - Using Force Full Database Caching Mode Hope this helps. Regards Tim...

Comments (0)

Please to add comments

No comments yet. Be the first to comment!