<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>《ORACLE 12C In-Memory组件初试》的评论</title>
	<atom:link href="https://www.xifenfei.com/2014/04/oracle-12c-in-memory%e7%bb%84%e4%bb%b6%e5%88%9d%e8%af%95.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2014/04/oracle-12c-in-memory%e7%bb%84%e4%bb%b6%e5%88%9d%e8%af%95.html</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 11 Dec 2025 02:46:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>作者：zz</title>
		<link>https://www.xifenfei.com/2014/04/oracle-12c-in-memory%e7%bb%84%e4%bb%b6%e5%88%9d%e8%af%95.html/comment-page-1#comment-4017</link>
		<dc:creator><![CDATA[zz]]></dc:creator>
		<pubDate>Wed, 04 Feb 2015 08:02:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=5259#comment-4017</guid>
		<description><![CDATA[&lt;strong&gt;&lt;a href=&quot;#comment-3959&quot; rel=&quot;nofollow&quot;&gt;&#24796;&#20998;&#39134;&lt;/a&gt;&lt;/strong&gt;, 

是对于多列的全表扫没有好处，返回的列数越多越不合适列式存储。
Storing a database object in the IM column store can improve performance significantly for the following types of operations performed on the database object:
    A query that scans a large number of rows and applies filters that use operators such as the following: =, , and IN
    A query that selects a small number of columns from a table or materialized view with a large number of columns, such as a query that selects five columns from a table with 100 columns
    A query that joins a small table to a large table
    A query that aggregates data
*****************************************
The IM column store does not improve performance for the following types of operations:
    Queries with complex predicates
    Queries that select a large number of columns
    Queries that return a large number of rows
    Queries with multiple large table joins]]></description>
		<content:encoded><![CDATA[<p><strong><a href="#comment-3959" rel="nofollow">&#24796;&#20998;&#39134;</a></strong>, </p>
<p>是对于多列的全表扫没有好处，返回的列数越多越不合适列式存储。<br />
Storing a database object in the IM column store can improve performance significantly for the following types of operations performed on the database object:<br />
    A query that scans a large number of rows and applies filters that use operators such as the following: =, , and IN<br />
    A query that selects a small number of columns from a table or materialized view with a large number of columns, such as a query that selects five columns from a table with 100 columns<br />
    A query that joins a small table to a large table<br />
    A query that aggregates data<br />
*****************************************<br />
The IM column store does not improve performance for the following types of operations:<br />
    Queries with complex predicates<br />
    Queries that select a large number of columns<br />
    Queries that return a large number of rows<br />
    Queries with multiple large table joins</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2014/04/oracle-12c-in-memory%e7%bb%84%e4%bb%b6%e5%88%9d%e8%af%95.html/comment-page-1#comment-3959</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Thu, 31 Jul 2014 14:29:32 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=5259#comment-3959</guid>
		<description><![CDATA[你这里有两个问题：
1. 两种场景数据都在内存里面了，所以imm没有优势
2.对于全表扫描，列存储没有优势]]></description>
		<content:encoded><![CDATA[<p>你这里有两个问题：<br />
1. 两种场景数据都在内存里面了，所以imm没有优势<br />
2.对于全表扫描，列存储没有优势</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：lish</title>
		<link>https://www.xifenfei.com/2014/04/oracle-12c-in-memory%e7%bb%84%e4%bb%b6%e5%88%9d%e8%af%95.html/comment-page-1#comment-3953</link>
		<dc:creator><![CDATA[lish]]></dc:creator>
		<pubDate>Wed, 30 Jul 2014 03:58:51 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=5259#comment-3953</guid>
		<description><![CDATA[环境 是一台物理笔记本  IBM  W500

安装了 Linux6.4 和Oracle12.1.0.2

我在测试In Memory组件发现

[oracle@oracle12c Desktop]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Wed Jul 30 05:05:42 2014

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Connected to an idle instance.

SQL&gt; startup
ORACLE instance started.

Total System Global Area 4294967296 bytes
Fixed Size                    2932632 bytes
Variable Size                  436207720 bytes
Database Buffers          536870912 bytes
Redo Buffers                   13844480 bytes
In-Memory Area                 3305111552 bytes
Database mounted.
Database opened.
SQL&gt; alter pluggable database pdborcl open;

Pluggable database altered.

SQL&gt; conn sde/sde@pdborcl
Connected.
SQL&gt; create table t1 as select * from dba_objects;

Table created.

SQL&gt; select bytes from user_segments where segment_name=&#039;T1&#039;;

     BYTES
----------
  13631488

SQL&gt; select * from v$inmemory_area;

POOL                           ALLOC_BYTES USED_BYTES POPULATE_STATUS
-------------------------- ----------- ---------- --------------------------
    CON_ID
----------
1MB POOL                    2632974336         33554432 DONE
         3

64KB POOL                     654311424         34996224 DONE
         3


SQL&gt; set timing on 
SQL&gt; set autot trace
SQL&gt; select * from t1;

91710 rows selected.

Elapsed: 00:00:01.65

Execution Plan
----------------------------------------------------------
Plan hash value: 3617692013

--------------------------------------------------------------------------
&#124; Id  &#124; Operation          &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time         &#124;
--------------------------------------------------------------------------
&#124;   0 &#124; SELECT STATEMENT  &#124;         &#124; 91710 &#124;    10M&#124;   429   (1)&#124; 00:00:01 &#124;
&#124;   1 &#124;  TABLE ACCESS FULL&#124; T1         &#124; 91710 &#124;    10M&#124;   429   (1)&#124; 00:00:01 &#124;
--------------------------------------------------------------------------


Statistics
----------------------------------------------------------
          2  recursive calls
          0  db block gets
       7553  consistent gets
       1538  physical reads
          0  redo size
   12218706  bytes sent via SQL*Net to client
      67795  bytes received via SQL*Net from client
       6115  SQL*Net roundtrips to/from client
          0  sorts (memory)
          0  sorts (disk)
      91710  rows processed

=======================================================================

将该表进行memory测试

SQL&gt; alter table t1 inmemory;

Table altered.

Elapsed: 00:00:00.07
SQL&gt; set autot off
SQL&gt; select * from v$inmemory_area;

POOL                           ALLOC_BYTES USED_BYTES POPULATE_STATUS
-------------------------- ----------- ---------- --------------------------
    CON_ID
----------
1MB POOL                    2632974336         33554432 DONE
         3

64KB POOL                     654311424         34996224 DONE
         3


Elapsed: 00:00:00.00
SQL&gt; select count(*) from t1;

  COUNT(*)
----------
     91710

Elapsed: 00:00:00.02
SQL&gt; select * from v$inmemory_area;

POOL                           ALLOC_BYTES USED_BYTES POPULATE_STATUS
-------------------------- ----------- ---------- --------------------------
    CON_ID
----------
1MB POOL                    2632974336         37748736 DONE
         3

64KB POOL                     654311424         35127296 DONE
         3


Elapsed: 00:00:00.01
SQL&gt; set autot trace
SQL&gt; select * from t1;

91710 rows selected.

Elapsed: 00:00:02.98

Execution Plan
----------------------------------------------------------
Plan hash value: 3617692013

--------------------------------------------------------------------------------
---

&#124; Id  &#124; Operation                   &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time
  &#124;

--------------------------------------------------------------------------------
---

&#124;   0 &#124; SELECT STATEMENT           &#124;          &#124; 91710 &#124;    10M&#124;    32  (16)&#124; 00:00:0
1 &#124;

&#124;   1 &#124;  TABLE ACCESS INMEMORY FULL&#124; T1   &#124; 91710 &#124;    10M&#124;    32  (16)&#124; 00:00:0
1 &#124;

--------------------------------------------------------------------------------
---



Statistics
----------------------------------------------------------
          5  recursive calls
          0  db block gets
          5  consistent gets
          0  physical reads
          0  redo size
    4987819  bytes sent via SQL*Net to client
      67795  bytes received via SQL*Net from client
       6115  SQL*Net roundtrips to/from client
          0  sorts (memory)
          0  sorts (disk)
      91710  rows processed

SQL&gt; 



测试结论：为什么在memory测试的指标都比一般情况要好，但是查询时间反而低了，而且我是在本机测试，不考虑网络的问题，这个我很不解，希望高手给予指点！]]></description>
		<content:encoded><![CDATA[<p>环境 是一台物理笔记本  IBM  W500</p>
<p>安装了 Linux6.4 和Oracle12.1.0.2</p>
<p>我在测试In Memory组件发现</p>
<p>[oracle@oracle12c Desktop]$ sqlplus / as sysdba</p>
<p>SQL*Plus: Release 12.1.0.2.0 Production on Wed Jul 30 05:05:42 2014</p>
<p>Copyright (c) 1982, 2014, Oracle.  All rights reserved.</p>
<p>Connected to an idle instance.</p>
<p>SQL&gt; startup<br />
ORACLE instance started.</p>
<p>Total System Global Area 4294967296 bytes<br />
Fixed Size                    2932632 bytes<br />
Variable Size                  436207720 bytes<br />
Database Buffers          536870912 bytes<br />
Redo Buffers                   13844480 bytes<br />
In-Memory Area                 3305111552 bytes<br />
Database mounted.<br />
Database opened.<br />
SQL&gt; alter pluggable database pdborcl open;</p>
<p>Pluggable database altered.</p>
<p>SQL&gt; conn sde/sde@pdborcl<br />
Connected.<br />
SQL&gt; create table t1 as select * from dba_objects;</p>
<p>Table created.</p>
<p>SQL&gt; select bytes from user_segments where segment_name=&#8217;T1&#8242;;</p>
<p>     BYTES<br />
&#8212;&#8212;&#8212;-<br />
  13631488</p>
<p>SQL&gt; select * from v$inmemory_area;</p>
<p>POOL                           ALLOC_BYTES USED_BYTES POPULATE_STATUS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
    CON_ID<br />
&#8212;&#8212;&#8212;-<br />
1MB POOL                    2632974336         33554432 DONE<br />
         3</p>
<p>64KB POOL                     654311424         34996224 DONE<br />
         3</p>
<p>SQL&gt; set timing on<br />
SQL&gt; set autot trace<br />
SQL&gt; select * from t1;</p>
<p>91710 rows selected.</p>
<p>Elapsed: 00:00:01.65</p>
<p>Execution Plan<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Plan hash value: 3617692013</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
| Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time         |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
|   0 | SELECT STATEMENT  |         | 91710 |    10M|   429   (1)| 00:00:01 |<br />
|   1 |  TABLE ACCESS FULL| T1         | 91710 |    10M|   429   (1)| 00:00:01 |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Statistics<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
          2  recursive calls<br />
          0  db block gets<br />
       7553  consistent gets<br />
       1538  physical reads<br />
          0  redo size<br />
   12218706  bytes sent via SQL*Net to client<br />
      67795  bytes received via SQL*Net from client<br />
       6115  SQL*Net roundtrips to/from client<br />
          0  sorts (memory)<br />
          0  sorts (disk)<br />
      91710  rows processed</p>
<p>=======================================================================</p>
<p>将该表进行memory测试</p>
<p>SQL&gt; alter table t1 inmemory;</p>
<p>Table altered.</p>
<p>Elapsed: 00:00:00.07<br />
SQL&gt; set autot off<br />
SQL&gt; select * from v$inmemory_area;</p>
<p>POOL                           ALLOC_BYTES USED_BYTES POPULATE_STATUS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
    CON_ID<br />
&#8212;&#8212;&#8212;-<br />
1MB POOL                    2632974336         33554432 DONE<br />
         3</p>
<p>64KB POOL                     654311424         34996224 DONE<br />
         3</p>
<p>Elapsed: 00:00:00.00<br />
SQL&gt; select count(*) from t1;</p>
<p>  COUNT(*)<br />
&#8212;&#8212;&#8212;-<br />
     91710</p>
<p>Elapsed: 00:00:00.02<br />
SQL&gt; select * from v$inmemory_area;</p>
<p>POOL                           ALLOC_BYTES USED_BYTES POPULATE_STATUS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
    CON_ID<br />
&#8212;&#8212;&#8212;-<br />
1MB POOL                    2632974336         37748736 DONE<br />
         3</p>
<p>64KB POOL                     654311424         35127296 DONE<br />
         3</p>
<p>Elapsed: 00:00:00.01<br />
SQL&gt; set autot trace<br />
SQL&gt; select * from t1;</p>
<p>91710 rows selected.</p>
<p>Elapsed: 00:00:02.98</p>
<p>Execution Plan<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Plan hash value: 3617692013</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;</p>
<p>| Id  | Operation                   | Name | Rows  | Bytes | Cost (%CPU)| Time<br />
  |</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;</p>
<p>|   0 | SELECT STATEMENT           |          | 91710 |    10M|    32  (16)| 00:00:0<br />
1 |</p>
<p>|   1 |  TABLE ACCESS INMEMORY FULL| T1   | 91710 |    10M|    32  (16)| 00:00:0<br />
1 |</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;</p>
<p>Statistics<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
          5  recursive calls<br />
          0  db block gets<br />
          5  consistent gets<br />
          0  physical reads<br />
          0  redo size<br />
    4987819  bytes sent via SQL*Net to client<br />
      67795  bytes received via SQL*Net from client<br />
       6115  SQL*Net roundtrips to/from client<br />
          0  sorts (memory)<br />
          0  sorts (disk)<br />
      91710  rows processed</p>
<p>SQL&gt; </p>
<p>测试结论：为什么在memory测试的指标都比一般情况要好，但是查询时间反而低了，而且我是在本机测试，不考虑网络的问题，这个我很不解，希望高手给予指点！</p>
]]></content:encoded>
	</item>
</channel>
</rss>
