签到成功

知道了

CNDBA社区CNDBA社区

Orcle 12c 新特性---In-Memory Column Store Dynamic Resizing

2017-08-09 16:49 2409 0 原创 Oracle 12C
作者: Expect-乐

 说明

12.2开始,支持在数据库打开的状态下动态修改IM的大小,而不需要重启数据库。这可是福音。http://www.cndba.cn/Expect-le/article/2085

使用该特性必须满足以下条件:

The column store must be enabled.

The compatibility level must be 12.2.0 or higher.

The database instances must be started with an SPFILE.

The new size of the IM column store must be at least 128 megabytes greater than the current INMEMORY_SIZE setting.

实验

注意:当前SGA要有足够的可用内存。而是只能增大,不能减小。http://www.cndba.cn/Expect-le/article/2085

2.1   查看当前IM大小

http://www.cndba.cn/Expect-le/article/2085

http://www.cndba.cn/Expect-le/article/2085

SQL> set linesize 200
SQL> SHOW PARAMETER INMEMORY_SIZE

NAME	     TYPE	    VALUE
---------- -------------- -------------------
inmemory_size	     big integer	    100M

2.2   增加IM大小

http://www.cndba.cn/Expect-le/article/2085

SQL> ALTER SYSTEM SET INMEMORY_SIZE = 500M SCOPE=BOTH;
System altered.

http://www.cndba.cn/Expect-le/article/2085

注意:一定要是SCOPE=BOTH,或者是SCOPE=MEMORY;

http://www.cndba.cn/Expect-le/article/2085

2.3   再查看IM大小

在没有重启的情况下,已经变为500M了。

http://www.cndba.cn/Expect-le/article/2085http://www.cndba.cn/Expect-le/article/2085

SQL> show parameter inmemory_size

NAME	        TYPE	         VALUE
--------------- ------------- ------------------------
inmemory_size	     big integer	    500M

 

http://www.cndba.cn/Expect-le/article/2085

版权声明:本文为博主原创文章,未经博主允许不得转载。

In-Memory Column Store Dynamic Resizing

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
Expect-乐

Expect-乐

关注

Without the continuous bitter cold, there can be no fragrant plum blossom

  • 336
    原创
  • 6
    翻译
  • 100
    转载
  • 41
    评论
  • 访问:1914551次
  • 积分:1957
  • 等级:核心会员
  • 排名:第4名
精华文章
    热门文章
      Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

      QQ交流群

      注册联系QQ