mysql类exadata功能_Exadata:Smart Scan(一)
Smart Scan是Exadata的主要特性之一,该特性主要依赖于于Exadata Storage Software:
[oracle@database ~]$ sqlplus maclean/maclean
SQL*Plus: Release 11.2.0.2.0 Production on Sat Aug 18 22:46:39 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
select a.name,b.value/1024/1024 MB
from v$sysstat a , v$mystat b
where
a.statistic#=b.statistic#
and (a.name in ('physical read total bytes','physical write total bytes',
'cell IO uncompressed bytes') or a.name like 'cell phy%');
NAME MB
---------------------------------------------------------------- ----------
physical read total bytes .3984375
physical write total bytes 0
cell physical IO interconnect bytes .3984375
cell physical IO bytes saved during optimized file creation 0
cell physical IO bytes saved during optimized RMAN file restore 0
cell physical IO bytes eligible for predicate offload 0
cell physical IO bytes saved by storage index 0
cell physical IO interconnect bytes returned by smart scan 0
cell IO uncompressed bytes 0
SQL> set linesize 200 pagesize 2000
SQL> set autotrace on;
SQL> select /*+ OPT_PARAM('cell_offload_processing' 'false') */ count(*) from sales
2 where time_id between '01-JAN-98' and '31-DEC-98'
3 and amount_sold>=101;
COUNT(*)
----------
30661
Execution Plan
----------------------------------------------------------
Plan hash value: 8150843
-------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 22 | 1238 (2)| 00:00:15 |
| 1 | SORT AGGREGATE | | 1 | 22 | | |
|* 2 | FILTER | | | | | |
|* 3 | TABLE ACCESS STORAGE FULL| SALES | 14685 | 315K| 1238 (2)| 00:00:15 |
-------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
2 - filter(TO_DATE('01-JAN-98')=101 AND "TIME_ID">='01-JAN-98' AND
3 - filter("AMOUNT_SOLD"》=101 AND "TIME_ID"》='01-JAN-98' AND
"TIME_ID"《='31-DEC-98')
Note
-----
- dynamic sampling used for this statement (level=2)
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
4437 consistent gets
4433 physical reads
0 redo size
424 bytes sent via SQL*Net to client
419 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
SQL> select a.name,b.value/1024/1024 MB
2 from v$sysstat a , v$mystat b
3 where
4 a.statistic#=b.statistic#
5 and (a.name in ('physical read total bytes','physical write total bytes',
6 'cell IO uncompressed bytes') or a.name like 'cell phy%');
NAME MB
---------------------------------------------------------------- ----------
physical read total bytes 35.484375
physical write total bytes 0
cell physical IO interconnect bytes 35.484375
cell physical IO bytes saved during optimized file creation 0
cell physical IO bytes saved during optimized RMAN file restore 0
cell physical IO bytes eligible for predicate offload 0
cell physical IO bytes saved by storage index 0
cell physical IO interconnect bytes returned by smart scan 0
cell IO uncompressed bytes 0
9 rows selected.
上面我们使用了exadata核心参数cell_offload_processing=false禁用了smart scan, 下面我们来看看Smart scan的统计表现
select count(*) from sales
where time_id between '01-JAN-2003' and '31-DEC-2003'
and amount_sold=1;
PARSING IN CURSOR #8100532 len=100 dep=0 uid=93 oct=3 lid=93 tim=1345357700828975 hv=1616885803 ad='3f07a6a0' sqlid='7z3cz8ph5zf1b'
select count(*) from sales
where time_id between '01-JAN-98' and '31-DEC-98'
and amount_sold>=101
END OF STMT
PARSE #8100532:c=149978,e=1430146,p=271,cr=310,cu=0,mis=1,r=0,dep=0,og=1,plh=8150843,tim=1345357700828975
EXEC #8100532:c=0,e=31,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=8150843,tim=1345357700829041
WAIT #8100532: nam='SQL*Net message to client' ela= 2 driver id=1650815232 #bytes=1 p3=0 obj#=79496 tim=1345357700829074
WAIT #8100532: nam='cell smart table scan' ela= 502 cellhash#=1375519866 p2=0 p3=0 obj#=79496 tim=1345357700830804
WAIT #8100532: nam='cell smart table scan' ela= 20243 cellhash#=1375519866 p2=0 p3=0 obj#=79496 tim=1345357700851709
WAIT #8100532: nam='cell smart table scan' ela= 32442 cellhash#=1375519866 p2=0 p3=0 obj#=79496 tim=1345357700884378
WAIT #8100532: nam='cell smart table scan' ela= 6315 cellhash#=1375519866 p2=0 p3=0 obj#=79496 tim=1345357700891113
WAIT #8100532: nam='cell smart table scan' ela= 17460 cellhash#=1375519866 p2=0 p3=0 obj#=79496 tim=1345357700909251
SQL> select a.name,b.value/1024/1024 MB
2 from v$sysstat a , v$mystat b
3 where
4 a.statistic#=b.statistic#
5 and (a.name in ('physical read total bytes','physical write total bytes',
6 'cell IO uncompressed bytes') or a.name like 'cell phy%');
NAME MB
---------------------------------------------------------------- ----------
physical read total bytes 53.484375
physical write total bytes 0
cell physical IO interconnect bytes .484375
cell physical IO bytes saved during optimized file creation 0
cell physical IO bytes saved during optimized RMAN file restore 0
cell physical IO bytes eligible for predicate offload 53.484375
cell physical IO bytes saved by storage index 0
cell physical IO interconnect bytes returned by smart scan .484375
cell IO uncompressed bytes 53.484375
9 rows selected.
mysql类exadata功能_Exadata:Smart Scan(一)相关推荐
- mysql类exadata功能_Exadata V2数据库一体机的几大致命缺点
昨天客户语重心长的告诉我,他们准备把Exadata V2 上的核心应用迁移走,客户在09年就开始用Exadata,是不是国内第一家我不知道,但至少应该是用于生产的第一批.但是这2年来因为Exadata ...
- mysql类exadata功能_几类关系型数据库的数据解决方案
今天聊下几类关系型数据库的数据解决方案,算是抛砖引玉,近期也要对技术方向上做一些扩展,也算是前期的小结吧. 1 3 Oracle 目前市面上的主流版本应该还是11gR2,记得很多年前有个网站做过一次调 ...
- 数据库 - mysql内置功能
mysql内置功能: 1.视图 2.触发器 3.存储过程 4.事务 5.函数 一.视图 介绍: 视图是一个虚拟表(非真实存在),其本质是[根据SQL语句获取动态的数据集,并为其命名], 用户使用时只需 ...
- mysql scws_php利用scws实现mysql全文搜索功能的方法,_PHP教程
php利用scws实现mysql全文搜索功能的方法, 本文实例讲述了php利用scws实现mysql全文搜索功能的方法.分享给大家供大家参考.具体方法如下: scws这样的中文分词插件比较不错,简单的 ...
- mysql 内置功能 存储过程介绍
存储过程介绍 就是mysql内置功能把逻辑写好 的功能给封装好,封装成一个接口名,把接口名丢给应用程序,应用程序直接调用接口名实现一系列增删改查功能 这个接口叫存储过程 基于存储过程封装成一个功能 存 ...
- php mysql 单例模式_PHP基于单例模式实现的mysql类
本文实例讲述了PHP基于单例模式实现的mysql类.分享给大家供大家参考,具体如下:<?php defined('ACC')||exit('Access Denied'); // 封装mysql ...
- mysql scws_php利用scws实现mysql全文搜索功能的方法
本文实例讲述了php利用scws实现mysql全文搜索功能的方法.分享给大家供大家参考.具体方法如下: scws这样的中文分词插件比较不错,简单的学习了一下,它包涵一些专有名称.人名.地名.数字年代等 ...
- 使用Mybatis如何对Mysql进行分页功能?
使用Mybatis如何对Mysql进行分页功能 1.Limit实现分页 接口 //分页List<User> getUserByLimit(HashMap<String, Intege ...
- php简单的功能模块,php中mysql模块部分功能的简单封装
php中mysql模块部分功能的简单封装 复制代码 代码如下: class mysql { private $db; // datebase connect private $result; // m ...
- dede mysql x_认识Dede的mysql数据库结构功能
数据库是我们深入研究DEDE必须要熟悉的,想必很多朋友都对DEDE的数据库很陌生的,甚至有很多朋友对数据库感到恐惧,全是一些表,感觉什么都看不懂.今天就来和大家详细的分析一下DEDE的数据库结构,写出 ...
最新文章
- 设计模式C#描述——单例与多例模式
- java s0 s1_Java GC 变量含义(S0 S1 E O P YGC YGCT FGC FGCT GCT)详解
- Django的类视图和中间件
- 双11“新贵”红星美凯龙:数据中台充分给足转型马力
- 基于墨刀的轻音乐播放器——乐享APP原型设计
- php的全局p变量程序_php全局变量的使用
- 心理平衡其实就这么简单
- mysql数据改电话号码_mysql 里面用什么数据类型来定义手机号码?
- 信息系统项目管理师必背核心考点(四十八)合同类型的选择
- Windows7中搭建Android x86 64及armv8-a操作步骤
- 拉钩网招聘信息爬虫项目
- 用java写新年快乐特效代码_蓝叶分享新年快乐大红灯笼特效代码
- 计算机毕设(附源码)JAVA-SSM基于java学科竞赛管理系统
- Hive学习(7)pmod()函数详解
- 基于群智能算法的函数最值优化问题
- Java实践(五)仿照用户列表查询写查自己的库
- 10% building 2/5 modules 3 active ...lib\index.js!/路径报错
- ICCV2019(Segmentation):ShelfNet-论文解读《ShelfNet for Fast Semantic Segmentation》
- 第7节 蒙卡模拟计算路径依赖型期权价格
- win7更新,360手机安装谷歌框架
热门文章
- kali-网站克隆工具-httrack
- 51单片机c语言脉冲计数实验报告,单片机计数器实验报告.doc
- 如何将卫星影像按固定比例尺输出(1:5千,1:1万等)
- 信息安全三分靠技术七分靠管理_ISO27001信息安全管理体系“三分靠技术 七分靠管理”...
- megafiers3.14下载
- BLP模型(Bell-La Padula模型)
- CAS4.0.0链接Redis4.0.6
- 售前工程师是做什么的?
- 5年500台达芬奇手术,和睦家实现技术升级
- jTopo 拓扑图(入门)