1.数据库启动到mount
如果在open状态开启,报以下错误:
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> startup mount;
2.启动强制全库缓存模式
SQL> alter database force full database caching;
3.确定打开全库缓存模式
SQL> select FORCE_FULL_DB_CACHING from v$database;
FOR
---
YES
4.打开数据库
SQL> alter database open;
二、关闭强制全库缓存模式
如果关闭,启动到mount,然后执行关闭命令即可。
SQL> startup mount;
SQL> alter database no force full database caching;
SQL> alter database open;
SQL> select FORCE_FULL_DB_CACHING from v$database;
FOR
---
NO