Orcle 12c 新特性---In-Memory Column Store Dynamic Resizing
作者:
Expect-乐
1 说明
从12.2开始,支持在数据库打开的状态下动态修改IM的大小,而不需要重启数据库。这可是福音。
使用该特性必须满足以下条件:
l The column store must be enabled.
l The compatibility level must be 12.2.0 or higher.
l The database instances must be started with an SPFILE.
l The new size of the IM column store must be at least 128 megabytes greater than the current INMEMORY_SIZE setting.
2 实验
注意:当前SGA要有足够的可用内存。而是只能增大,不能减小。
2.1 查看当前IM大小
SQL> set linesize 200
SQL> SHOW PARAMETER INMEMORY_SIZE
NAME TYPE VALUE
---------- -------------- -------------------
inmemory_size big integer 100M
2.2 增加IM大小
SQL> ALTER SYSTEM SET INMEMORY_SIZE = 500M SCOPE=BOTH;
System altered.
注意:一定要是SCOPE=BOTH,或者是SCOPE=MEMORY;
2.3 再查看IM大小
在没有重启的情况下,已经变为500M了。
SQL> show parameter inmemory_size
NAME TYPE VALUE
--------------- ------------- ------------------------
inmemory_size big integer 500M
版权声明:本文为博主原创文章,未经博主允许不得转载。
In-Memory Column Store Dynamic Resizing