Orcle 12.2 新特性 --- 支持动态修改IM大小

1 说明

从12.2开始,支持在数据库打开的状态下动态修改IM的大小,而不需要重启数据库。而在此之前,都是需要重启数据库的。

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

  • 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.

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

猜你喜欢

转载自blog.csdn.net/qianglei6077/article/details/92795082