当前位置:网站首页>Chapter 4 specifies the attribute of the inmemory column on the no inmemory table for im enabled filling objects: examples (Part IV of im-4.4)
Chapter 4 specifies the attribute of the inmemory column on the no inmemory table for im enabled filling objects: examples (Part IV of im-4.4)
2022-04-23 11:38:00 【Grainger】
In-Memory The manual : Preface (IM- Preface )
Chapter one Oracle Database In-Memory Relevant concepts (IM-1.1)
Chapter one Oracle Database In-Memory Relevant concepts ( To continue )(IM-1.2)
Chapter two Oracle Database In-Memory Architecture ( On ) (IM-2.1)
Chapter two In-Memory Architecture (IM-2.2)
Chapter two IM Architecture :CPU framework :SIMD Vector processing (IM-2.3)
The third chapter Enable and adjust IM The size of the column store (IM-3.1)
Chapter four by In-Memory Enable fill objects (IM-4.1 The first part )
Chapter four by In-Memory Enable fill objects (IM-4.2 The second part )
Chapter four by IM Enable and disable columns for fill objects (IM-4.3 The third part ) This article is IM Chapter 4 of the series : stay NO INMEMORY The table specifies INMEMORY Column properties : Example (IM-4.4 The first part )
stay NO INMEMORY The table specifies INMEMORY Column properties : Example
from OracleDatabase 12c The first 2 edition (12.2) Start , Can be specified as INMEMORY
Specifies the column level of the object INMEMORY
Clause .
In previous releases , Rank INMEMORY
Clause only in INMEMORY
Valid when specified on a table or partition . This restriction means that when a table or partition is associated with INMEMORY
Before clause Association , This column cannot be associated with INMEMORY
Clause is associated with .
from OracleDatabase 12c Release 2(12.2) Start , If... Is specified at the column level INMEMORY
Clause , The database will record the properties of the specified column . If the table is NO INMEMORY
( The default value ), Specify the table or partition as INMEMORY
Before , Column level properties do not affect how the table is queried . If you mark the table itself as NO INMEMORY
, The database will delete any existing column level attributes .
In this example , Your goal is to ensure that the columns in the partitioned table c3 Never fill up to IM Column storage . You can perform the following steps :
1. Create a partition table t
as follows :
CREATE TABLE t (c1 NUMBER, c2 NUMBER, c3 NUMBER)
NO INMEMORY -- this clause specifies the table itself as NO INMEMORY
PARTITION BY LIST (c1)
( PARTITION p1 VALUES (0),
PARTITION p2 VALUES (1),
PARTITION p3 VALUES (2) );
surface t yes NO INMEMORY
. The table consists of columns c1
List partition on , And has three partitions :p1
,p2
and p3
.
2. Compression of columns in query tables ( Include sample output ):
COL TABLE_NAME FORMAT a20
COL COLUMN_NAME FORMAT a20
SELECT TABLE_NAME, COLUMN_NAME, INMEMORY_COMPRESSION
FROM V$IM_COLUMN_LEVEL
WHERE TABLE_NAME = 'T'
ORDER BY COLUMN_NAME;
no rows selected
As shown in the output , Column level is not set INMEMORY
attribute .
3. Make sure that the columns c3
Never filled , Please put NO INMEMORY
Property is applied to the column c3
:
ALTER TABLE t NO INMEMORY (c3);
4. Compression of columns in query tables ( Include sample output ):
SELECT TABLE_NAME, COLUMN_NAME, INMEMORY_COMPRESSION
FROM V$IM_COLUMN_LEVEL
WHERE TABLE_NAME = 'T'
ORDER BY COLUMN_NAME;
TABLE_NAME COLUMN_NAME INMEMORY_COMPRESSION
-------------------- -------------------- --------------------
T C1 DEFAULT
T C2 DEFAULT
T C3 NO INMEMORY
The database has recorded c3
Of NO INMEMORY
attribute . Other columns use default compression .
5. Partition p3
Designated as INMEMORY
:
ALTER TABLE t
MODIFY PARTITION p3
INMEMORY PRIORITY CRITICAL;
Because column c3
Previously designated as NO INMEMORY
, So zoning p3
The initial population of will not include columns c3
.
6. Specify the entire table as INMEMORY:
ALTER TABLE t INMEMORY;
7. Compression of columns in query tables ( Include sample output ):
SELECT TABLE_NAME, COLUMN_NAME, INMEMORY_COMPRESSION
FROM V$IM_COLUMN_LEVEL
WHERE TABLE_NAME = 'T'
ORDER BY COLUMN_NAME;
TABLE_NAME COLUMN_NAME INMEMORY_COMPRESSION
-------------------- -------------------- --------------------------
T C1 DEFAULT
T C2 DEFAULT
T C3 NO INMEMORY
The database retains Columns c3
Of NO INMEMORY
Set up . Other columns use default compression .
- Pair column
c1
andc2
Apply different compression levels :
ALTER TABLE t
INMEMORY MEMCOMPRESS FOR CAPACITY HIGH (c1)
INMEMORY MEMCOMPRESS FOR CAPACITY LOW (c2);
9. Compression of columns in query tables ( Include sample output ):
SELECT TABLE_NAME, COLUMN_NAME, INMEMORY_COMPRESSION
FROM V$IM_COLUMN_LEVEL
WHERE TABLE_NAME = 'T'
ORDER BY COLUMN_NAME;
TABLE_NAME COLUMN_NAME INMEMORY_COMPRESSION
-------------------- -------------------- --------------------------
T C1 FOR CAPACITY HIGH
T C2 FOR CAPACITY LOW
T C3 NO INMEMORY
Each column now has a different compression level .
10. Specify the entire table as NO INMEMORY
:
ALTER TABLE t NO INMEMORY;
11. Compression of columns in query tables ( Include sample output ):
SELECT TABLE_NAME, COLUMN_NAME, INMEMORY_COMPRESSION
FROM V$IM_COLUMN_LEVEL
WHERE TABLE_NAME = 'T'
ORDER BY COLUMN_NAME;
no rows selected
Because the whole table is specified as NO INMEMORY
, So the database deletes all column levels INMEMORY
attribute .
Shandong Oracle User group (Shandong Oracle User Group), abbreviation :SDOUG, Is a full of vitality 、 Young non-profit organizations , It aims to provide an exchange platform for technology lovers in Jinan and surrounding areas .SDOUG Organize offline technology sharing activities from time to time , Promote local and surrounding IT Technological development 、 Help technology enthusiasts improve themselves . Share technology 、 Share happiness ,SDOUG On the road .
版权声明
本文为[Grainger]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231136323658.html
边栏推荐
- 卷积层和池化层总结
- Database design of forum system
- Maker education for primary and middle school students to learn in happiness
- 零钱兑换II——【LeetCode】
- [Web 每日一练] 八色拼图(float)
- Tensorflow common functions
- 汇编语言 运行环境设置等教程链接整理
- ImportError: libX11. so. 6: cannot open shared object file: No such file or directory
- Share two practical shell scripts
- ES6学习笔记二
猜你喜欢
1.Electron开发环境搭建
Get things technology network optimization - CDN resource request Optimization Practice
赛微微电科创板上市破发:跌幅达26% 公司市值44亿
Yunna | how to manage the company's fixed assets and how to manage fixed assets
系统编程之高级文件IO(十三)——IO多路复用-select
Learn go language 0x04: Code of exercises sliced in go language journey
RebbitMQ的初步了解
qt 64位静态版本显示gif
Practical data Lake iceberg lesson 30 MySQL - > iceberg, time zone problems of different clients
解析性能良好的机器人使用守则
随机推荐
stylecloud ,wordcloud 库学习及使用例子
Advanced file IO of system programming (13) -- IO multiplexing - Select
微型机器人的认知和研发技术
Learn go language 0x06: Fibonacci closure exercise code in go language journey
R-drop: a more powerful dropout regularization method
简易投票系统数据库设计
TclError: no display name and no $DISPLAY environment variable
ES6学习笔记二
MySQL Router重装后重新连接集群进行引导出现的——此主机中之前已配置过的问题
论坛系统数据库设计
Laravel admin form validation
C#的学习笔记【八】SQL【一】
讯飞2021年营收183亿:同比增41% 净利为15.56亿
Who said you should know PS? This open-source artifact can also be pulled in batch, and the effect is outstanding!
Nacos Foundation (7): Configuration Management
laravel-admin时间范围选择器dateRange默认值问题
2022爱分析· 工业互联网厂商全景报告
ImportError: libX11.so.6: cannot open shared object file: No such file or directory
QT信号量 无法解析的错误的总结
redis优化系列(二)Redis主从原理、主从常用配置