传统的以行形式保存的数据满足OLTP应用; 列形式保存的数据满足以查询为主的OLAP应用。
1. inmemory适用于什么样的系统类型
1)报表与分析 2)混合负载OLTP应用(ERP,CRM…)
2. inmemory可以在以下级别启用In-Memory
1)表 2)表上的某一列 3)物化视图 4)表空间 5)分区
1. 启用In-memory中的对象
Download In-Memory Advisor:
https://support.oracle.com/epmos/main/downloadattachmentprocessor?parent=DOCUMENT&sourceId=1965343.1&attachid=1965343.1:IMADVISOR4&clickstream=yes
SQL> show parameter inmemory_size
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
inmemory_size big integer 0
SQL> alter system set inmemory_size=200M scope=spfile;
System altered.
SQL> startup;
ORACLE instance started.
Total System Global Area 1593835520 bytes
Fixed Size 8793256 bytes
Variable Size 1006633816 bytes
Database Buffers 352321536 bytes
Redo Buffers 7983104 bytes
In-Memory Area 218103808 bytes
Database mounted.
Database opened.
SQL> create table WJH.TEST_05 as select * from dba_objects;
Table created.
SQL> alter table WJH.test_wjh inmemory;
Table altered.
SQL> SELECT
owner,obj_num,table_name,column_name,inmemory_compression
FROM V$IM_COLUMN_LEVEL and owner<>’sys’;


总 结:

本文作者:王俊晖(上海新炬中北团队)
本文来源:“IT那活儿”公众号

文章转载自IT那活儿,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




