当前位置:网站首页>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
边栏推荐
- 简易投票系统数据库设计
- Laravel绑定钉钉群警报(php)
- Use kettle to copy records to and get records from results
- nacos基础(6):nacos配置管理模型
- After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
- docker MySQL主从备份
- Redis learning 5 - high concurrency distributed lock practice
- Database design of forum system
- 2022 love analysis · panoramic report of industrial Internet manufacturers
- 汇编语言 运行环境设置等教程链接整理
猜你喜欢
Laravel增加自定义助手函数
创客教育中的统筹方案管理模式
少儿编程结构的改变之路
解读机器人创造出来的艺术
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
Advanced file IO of system programming (13) -- IO multiplexing - Select
解析性能良好的机器人使用守则
nacos基础(5):nacos配置入门
Résumé de la relation entre GPU, cuda et cudnn
配电房远程综合监控系统在10kV预制舱项目中的应用
随机推荐
怎么进行固定资产盘点,资产盘点报告如何一键生成
laravel 永远返回 JSON 响应
R-drop: a more powerful dropout regularization method
解决由于找不到amd_ags_x64.dll,无法继续执行代码。重新安装程序可能会解决此问题,地平线(Forza Horizon 5)
GPU, CUDA,cuDNN三者的關系總結
TclError: no display name and no $DISPLAY environment variable
MIT: label every pixel in the world with unsupervised! Humans: no more 800 hours for an hour of video
IM表达式如何工作(5.3)
解析幼儿教育中steam教育的融合
redis优化系列(二)Redis主从原理、主从常用配置
远程访问家里的树莓派(上)
Practical data Lake iceberg lesson 30 MySQL - > iceberg, time zone problems of different clients
RebbitMQ的初步了解
Golang Pen & interview 01
QT信号量 无法解析的错误的总结
Nacos Foundation (7): Configuration Management
qt 64位静态版本显示gif
MQ在laravel中简单使用
IFLYTEK's revenue in 2021 was 18.3 billion yuan: a year-on-year increase of 41% and a net profit of 1.556 billion yuan
Understanding of MQ