分享
 
 
 

一个参数究竟如何影响Oracle/OS

王朝oracle·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

一点深入研究:这个参数究竟如何影响Oracle/OS

文件系统:Veritas VXFS With QuickIO

bash-2.03$ qiomkfile -s 200m yong.dbf

bash-2.03$ sqlplus internal

SQL*Plus: Release 8.1.7.0.0 - Production on Wed Dec 18 14:52:47 2002

(c) Copyright 2000 Oracle Corporation. All rights reserved.

Connected to:

Oracle8i Enterprise Edition Release 8.1.7.2.0 - 64bit Production

With the Partitioning option

JServer Release 8.1.7.2.0 - 64bit Production

SQL> create tablespace yong datafile '/oradata/standby/backup/yong.dbf' reuse

2 extent management local uniform size 1m;

Tablespace created.

SQL> SQL>

SQL> alter table bidder.t move tablespace yong;

Table altered.

SQL> conn internal

Connected.

SQL> alter tablespace yong offline;

Tablespace altered.

SQL> alter tablespace yong online;

Tablespace altered.

SQL> conn bidder/bidder

Connected.

SQL> alter session set db_file_multiblock_read_count=128;

Session altered.

SQL> ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT FOREVER,LEVEL 12';

Session altered.

SQL> select count(*) from t;

COUNT(*)

----------

196736

Elapsed: 00:00:01.71

SQL> exit

Disconnected from Oracle8i Enterprise Edition Release 8.1.7.2.0 - 64bit Production

With the Partitioning option

JServer Release 8.1.7.2.0 - 64bit Production

把它改成16,我们再次测试:

SQL> alter tablespace yong offline;

Tablespace altered.

SQL> SQL> alter tablespace yong online;

Tablespace altered.

SQL> alter session set db_file_multiblock_read_count=16;

Session altered.

SQL> ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT FOREVER,LEVEL 12';

Session altered.

SQL> set timing on

SQL> select count(*) from t;

COUNT(*)

----------

196736

Elapsed: 00:00:02.12

我们查看生成的相应的Trace文件,我们可以看到,oracle的实际操作:

DB_FILE_MULIBLOCK_READ_COUNT=128:

PARSING IN CURSOR #1 len=36 dep=0 uid=18 oct=3 lid=18 tim=0 hv=2060058659 ad='d2d65230'

SELECT /*+full(t)*/ COUNT(*) FROM T

END OF STMT

PARSE #1:c=0,e=0,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=4,tim=0

BINDS #1:

EXEC #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=0

WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1650815232 p2=1 p3=0

WAIT #1: nam='file open' ela= 0 p1=0 p2=0 p3=0

WAIT #1: nam='db file sequential read' ela= 0 p1=4 p2=9 p3=1

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=10 p3=127

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=137 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=265 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=393 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=521 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=649 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=777 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=905 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1033 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1161 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1289 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1417 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1545 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1673 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1801 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1929 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=2057 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=2185 p3=128

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=2313 p3=38

FETCH #1:c=0,e=0,p=2342,cr=2346,cu=15,mis=0,r=1,dep=0,og=4,tim=0

WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1650815232 p2=1 p3=0

FETCH #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,tim=0

WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1650815232 p2=1 p3=0

WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1650815232 p2=1 p3=0

STAT #1 id=1 cnt=1 pid=0 pos=0 obj=0 op='SORT AGGREGATE '

STAT #1 id=2 cnt=196736 pid=1 pos=1 obj=3161 op='TABLE ACCESS FULL T '

XCTEND rlbk=0, rd_only=1

DB_FILE_BLOCK_READ_COUNT=16的时候:

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=809 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=825 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=841 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=857 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=873 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=889 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=905 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=921 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=937 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=953 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=969 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=985 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1001 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1017 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1033 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1049 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1065 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1081 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1097 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1113 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1129 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1145 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1161 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1177 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1193 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1209 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1225 p3=16

WAIT #1: nam='db file scattered read' ela= 0 p1=4 p2=1241 p3=16

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有