Thursday 25 July 2019

MEMOPTIMIZE_POOL_SIZE in Oracle 18C

Description:-
o    Oracle 18c introduces new feature called MemOptimize pool, a memory area in the system global area (SGA).
o    We can increase the size of the memoptimize pool by manually adjusting the MEMOPTIMIZE_POOL_SIZE initialization parameter.
o    We have use this feature’s to frequently access tables in database level. Those tables are pined into buffer cache using primary key values
o    Tables must have primary key column then only we will achieve the expected performance from the query level.
o    Tables should not be compressed. Compressed tables not suitable for Memoptimized Rowstore option.
To check the value of Memoptimized _Pool_size parameter


To set the size of MEMOPTIMIZE_POOL_SIZE parameter.

Note this parameter is not dynamic and required database restart.


Now the MEMOPTIMIZE_POOL_SIZE parameter value has been changed to 1GB.



Create table with  Memoptimized Rowstore option.


Alter the existing table for memoptimized read.


We can load the table data into pool using DBMS_MEMOPTIMIZEpackage:


Thanks
Srini

No comments:

Post a Comment


No one has ever become poor by giving