Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

3

积分

0

好友

6

主题
1#
发表于 2013-1-22 11:13:10 | 查看: 4452| 回复: 9
据自己所了解的:   INDEX FAST FULL SCAN扫描块的顺序是多块读的, 先扫描索引段头块,而再去查找ROOT节点块,再去找LEAF BLOCK。
可我在11.2.0.3的数据库中测试, 发现INDEX FAST FULL SCAN并不像那样走, 还是直接扫描的ROOT节点块。
测试如下:
  1. SQL> create table test as select * from dba_objects;

  2. Table created.

  3. SQL> alter table test modify owner not null;

  4. Table altered.

  5. SQL> create index idx_owner on test(owner);

  6. Index created.

  7. SQL> set arraysize 1000;
  8. SQL> alter system flush buffer_cache;

  9. System altered.

  10. SQL> alter system flush shared_pool;

  11. System altered.

  12. SQL> alter session set events '10046 trace name context forever, level 8';

  13. Session altered.

  14. SQL> select /*+ index_ffs(test idx_owner) */ owner from test where rownum<1001;

  15. 1000 rows selected.


  16. Execution Plan
  17. ----------------------------------------------------------
  18. Plan hash value: 2663146736

  19. -----------------------------------------------------------------------------------
  20. | Id  | Operation             | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
  21. -----------------------------------------------------------------------------------
  22. |   0 | SELECT STATEMENT      |           |  1000 | 17000 |     3   (0)| 00:00:01 |
  23. |*  1 |  COUNT STOPKEY        |           |       |       |            |          |
  24. |   2 |   INDEX FAST FULL SCAN| IDX_OWNER | 72929 |  1210K|     3   (0)| 00:00:01 |
  25. -----------------------------------------------------------------------------------

  26. Predicate Information (identified by operation id):
  27. ---------------------------------------------------

  28.    1 - filter(ROWNUM<1001)

  29. Note
  30. -----
  31.    - dynamic sampling used for this statement (level=2)


  32. Statistics
  33. ----------------------------------------------------------
  34.          86  recursive calls
  35.           0  db block gets
  36.         197  consistent gets
  37.         290  physical reads
  38.           0  redo size
  39.        5585  bytes sent via SQL*Net to client
  40.         523  bytes received via SQL*Net from client
  41.           2  SQL*Net roundtrips to/from client
  42.           4  sorts (memory)
  43.           0  sorts (disk)
  44.        1000  rows processed

  45. SQL> alter session set events '10046 trace name context off';

  46. Session altered.
  47. 查看跟踪文件:
  48. PARSING IN CURSOR #47738428004520 len=73 dep=0 uid=0 oct=3 lid=0 tim=1358822209137207 hv=1795841612 ad='7d9d4690' sqlid='b0adstdphnrkc'
  49. select /*+ index_ffs(test idx_owner) */ owner from test where rownum<1001
  50. END OF STMT
  51. PARSE #47738428004520:c=13997,e=15398,p=278,cr=181,cu=0,mis=1,r=0,dep=0,og=1,plh=2663146736,tim=1358822209137206
  52. EXEC #47738428004520:c=0,e=19,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=2663146736,tim=1358822209137301
  53. WAIT #47738428004520: nam='SQL*Net message to client' ela= 2 driver id=1650815232 #bytes=1 p3=0 obj#=78621 tim=1358822209137332
  54. WAIT #47738428004520: nam='db file scattered read' ela= 26 file#=1 block#=93233 blocks=7 obj#=78622 tim=1358822209137448
  55. FETCH #47738428004520:c=0,e=171,p=7,cr=7,cu=0,mis=0,r=1,dep=0,og=1,plh=2663146736,tim=1358822209137527
  56. WAIT #47738428004520: nam='SQL*Net message from client' ela= 475 driver id=1650815232 #bytes=1 p3=0 obj#=78622 tim=1358822209138050
  57. WAIT #47738428004520: nam='SQL*Net message to client' ela= 1 driver id=1650815232 #bytes=1 p3=0 obj#=78622 tim=1358822209138109
  58. FETCH #47738428004520:c=0,e=406,p=0,cr=4,cu=0,mis=0,r=999,dep=0,og=1,plh=2663146736,tim=1358822209138502
  59. STAT #47738428004520 id=1 cnt=1000 pid=0 pos=1 obj=0 op='COUNT STOPKEY (cr=11 pr=7 pw=0 time=879 us)'
  60. STAT #47738428004520 id=2 cnt=1000 pid=1 pos=1 obj=78622 op='INDEX FAST FULL SCAN IDX_OWNER (cr=11 pr=7 pw=0 time=590 us cost=3 size=1260924 card=74172)'
  61. WAIT #47738428004520: nam='SQL*Net message from client' ela= 1020 driver id=1650815232 #bytes=1 p3=0 obj#=78622 tim=1358822209139603


  62. SQL>  select header_file, header_block from dba_segments where segment_name='IDX_OWNER';

  63. HEADER_FILE HEADER_BLOCK
  64. ----------- ------------
  65.           1        93232
复制代码
很奇怪, 这里为何还是扫描ROOT节点呢, 而不去找索引段头块。  求解释呀。 是不是我理解的有问题。
2#
发表于 2013-1-22 13:06:38

tree dump做一个看看

alter system dump datafile 1 block 93232;

回复 只看该作者 道具 举报

3#
发表于 2013-1-22 13:34:40
TREE DUMP 部份内容:
  1. ----- begin tree dump
  2. branch: 0x416c31 4287537 (0: nrow: 177, level: 1)
  3.    leaf: 0x416c32 4287538 (-1: nrow: 312 rrow: 312)
  4.    leaf: 0x416c33 4287539 (0: nrow: 312 rrow: 312)
  5.    leaf: 0x416c34 4287540 (1: nrow: 312 rrow: 312)
  6.    leaf: 0x416c35 4287541 (2: nrow: 312 rrow: 312)
  7.    leaf: 0x416c36 4287542 (3: nrow: 312 rrow: 312)
  8.    leaf: 0x416c37 4287543 (4: nrow: 312 rrow: 312)
  9.    leaf: 0x416c38 4287544 (5: nrow: 312 rrow: 312)
  10.    leaf: 0x416c39 4287545 (6: nrow: 312 rrow: 312)
  11.    leaf: 0x416c3a 4287546 (7: nrow: 381 rrow: 381)
  12.    leaf: 0x416c3b 4287547 (8: nrow: 398 rrow: 398)
  13.    leaf: 0x416c3c 4287548 (9: nrow: 430 rrow: 430)
  14.    leaf: 0x416c3d 4287549 (10: nrow: 422 rrow: 422)
  15.    leaf: 0x416c3e 4287550 (11: nrow: 422 rrow: 422)
  16.    leaf: 0x416c3f 4287551 (12: nrow: 422 rrow: 422)
  17.    leaf: 0x416c40 4287552 (13: nrow: 423 rrow: 423)
  18.    leaf: 0x416c41 4287553 (14: nrow: 377 rrow: 377)
复制代码
BLOCK DUMP :
  1. Start dump data blocks tsn: 0 file#:1 minblk 93232 maxblk 93232
  2. Block dump from cache:
  3. Dump of buffer cache at level 4 for tsn=0 rdba=4287536
  4. BH (0x783e03e8) file#: 1 rdba: 0x00416c30 (1/93232) class: 4 ba: 0x780e0000
  5.   set: 9 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,25
  6.   dbwrid: 0 obj: 78622 objn: 78622 tsn: 0 afn: 1 hint: f
  7.   hash: [0x767fb608,0x6f3f4798] lru: [0x713fa470,0x75bdfa20]
  8.   ckptq: [NULL] fileq: [NULL] objq: [0x8238c408,0x793ee7c8] objaq: [0x8238c3f8,0x793ee7d8]
  9.   st: XCURRENT md: NULL fpin: 'ktewh25: kteinicnt' tch: 1
  10.   flags:
  11.   LRBA: [0x0.0.0] LSCN: [0x0.0] HSCN: [0xffff.ffffffff] HSUB: [65535]
  12. BH (0x767fb558) file#: 1 rdba: 0x00416c30 (1/93232) class: 4 ba: 0x767ba000
  13.   set: 9 pool: 3 bsz: 8192 bsi: 0 sflg: 1 pwc: 0,25
  14.   dbwrid: 0 obj: 78622 objn: 78622 tsn: 0 afn: 1 hint: f
  15.   hash: [0x73be6858,0x783e0498] lru: [0x75bde260,0x73bdc380]
  16.   lru-flags: on_auxiliary_list
  17.   ckptq: [NULL] fileq: [NULL] objq: [NULL] objaq: [NULL]
  18.   st: FREE md: NULL fpin: 'ktswh03: ktscts' tch: 0 lfb: 33
  19.   flags:
  20. Block dump from disk:
  21. buffer tsn: 0 rdba: 0x00416c30 (1/93232)
  22. scn: 0x0000.002c9fa2 seq: 0x02 flg: 0x04 tail: 0x9fa21002
  23. frmt: 0x02 chkval: 0xb933 type: 0x10=DATA SEGMENT HEADER - UNLIMITED
  24. Hex dump of block: st=0, typ_found=1
  25. Dump of memory from 0x00002ABC1C8B4A00 to 0x00002ABC1C8B6A00
  26. 2ABC1C8B4A00 0000A210 00416C30 002C9FA2 04020000  [....0lA...,.....]
  27. 2ABC1C8B4A10 0000B933 00000000 00000000 00000000  [3...............]
  28. 2ABC1C8B4A20 00000000 00000011 000000FF 00001020  [............ ...]
  29. 2ABC1C8B4A30 00000010 00000033 00000080 00417133  [....3.......3qA.]
  30. 2ABC1C8B4A40 00000000 00000010 00000000 000000B2  [................]
  31. 2ABC1C8B4A50 00000000 00000000 00000000 00000011  [................]
  32. 2ABC1C8B4A60 00000000 0001331E 40000000 00416C31  [.....3.....@1lA.]
  33. 2ABC1C8B4A70 00000007 00416C38 00000008 00416C40  [....8lA.....@lA.]
  34. 2ABC1C8B4A80 00000008 00416C48 00000008 00416C50  [....HlA.....PlA.]
  35. 2ABC1C8B4A90 00000008 00416C58 00000008 00416C60  [....XlA.....`lA.]
  36. 2ABC1C8B4AA0 00000008 00416C68 00000008 00416C70  [....hlA.....plA.]
  37. 2ABC1C8B4AB0 00000008 00416C78 00000008 00417080  [....xlA......pA.]
  38. 2ABC1C8B4AC0 00000008 00417088 00000008 00417090  [.....pA......pA.]
  39. 2ABC1C8B4AD0 00000008 00417098 00000008 004170A0  [.....pA......pA.]
  40. 2ABC1C8B4AE0 00000008 004170A8 00000008 00417100  [.....pA......qA.]
  41. 2ABC1C8B4AF0 00000080 00000000 00000000 00000000  [................]
  42. 2ABC1C8B4B00 00000000 00000000 00000000 00000000  [................]
  43.         Repeat 242 times
  44. 2ABC1C8B5A30 00000000 00010000 00020001 00000000  [................]
  45. 2ABC1C8B5A40 00000000 00000000 00000000 00000000  [................]
  46.         Repeat 250 times
  47. 2ABC1C8B69F0 00000000 00000000 00000000 9FA21002  [................]
  48.   Extent Control Header
  49.   -----------------------------------------------------------------
  50.   Extent Header:: spare1: 0      spare2: 0      #extents: 17     #blocks: 255   
  51.                   last map  0x00000000  #maps: 0      offset: 4128  
  52.       Highwater::  0x00417133  ext#: 16     blk#: 51     ext size: 128   
  53.   #blocks in seg. hdr's freelists: 0     
  54.   #blocks below: 178   
  55.   mapblk  0x00000000  offset: 16   
  56.                    Unlocked
  57.      Map Header:: next  0x00000000  #extents: 17   obj#: 78622  flag: 0x40000000
  58.   Extent Map
  59.   -----------------------------------------------------------------
  60.    0x00416c31  length: 7     
  61.    0x00416c38  length: 8     
  62.    0x00416c40  length: 8     
  63.    0x00416c48  length: 8     
  64.    0x00416c50  length: 8     
  65.    0x00416c58  length: 8     
  66.    0x00416c60  length: 8     
  67.    0x00416c68  length: 8     
  68.    0x00416c70  length: 8     
  69.    0x00416c78  length: 8     
  70.    0x00417080  length: 8     
  71.    0x00417088  length: 8     
  72.    0x00417090  length: 8     
  73.    0x00417098  length: 8     
  74.    0x004170a0  length: 8     
  75.    0x004170a8  length: 8     
  76.    0x00417100  length: 128   
  77.   
  78.   nfl = 1, nfb = 1 typ = 2 nxf = 0 ccnt = 0
  79.   SEG LST:: flg: UNUSED lhd: 0x00000000 ltl: 0x00000000
  80. End dump data blocks tsn: 0 file#: 1 minblk 93232 maxblk 93232
复制代码
93232是段头块!

回复 只看该作者 道具 举报

4#
发表于 2013-1-22 13:37:07
  1. SQL>  select dbms_utility.data_block_address_block(4287537) from dual;

  2. DBMS_UTILITY.DATA_BLOCK_ADDRESS_BLOCK(4287537)
  3. ----------------------------------------------
  4.                                          93233
复制代码
我在这里根据TREE DUMP的内容查询得知, 93233这个块正是ROOT 节点块。

回复 只看该作者 道具 举报

5#
发表于 2013-1-22 15:27:42
实际index full scan不需要知道 HWM等信息, 所以不扫描segment header也说得通, 等我有空测一把。。

回复 只看该作者 道具 举报

6#
发表于 2013-1-22 15:39:59
Maclean Liu(刘相兵 发表于 2013-1-22 15:27
实际index full scan不需要知道 HWM等信息, 所以不扫描segment header也说得通, 等我有空测一把。。 ...

多谢!   

回复 只看该作者 道具 举报

7#
发表于 2013-1-22 21:50:44
wshxgxiaoli 发表于 2013-1-22 15:39
多谢!

我自己测了一把

  1. SQL> create table mactab as select * from dba_tables ;

  2. Table created.

  3. SQL> desc mactab;
  4. Name                                      Null?    Type
  5. ----------------------------------------- -------- ----------------------------
  6. OWNER                                     NOT NULL VARCHAR2(128)
  7. TABLE_NAME                                NOT NULL VARCHAR2(128)
  8. TABLESPACE_NAME                                    VARCHAR2(30)
  9. CLUSTER_NAME                                       VARCHAR2(128)
  10. IOT_NAME                                           VARCHAR2(128)
  11. STATUS                                             VARCHAR2(8)
  12. PCT_FREE                                           NUMBER
  13. PCT_USED                                           NUMBER
  14. INI_TRANS                                          NUMBER
  15. MAX_TRANS                                          NUMBER
  16. INITIAL_EXTENT                                     NUMBER
  17. NEXT_EXTENT                                        NUMBER
  18. MIN_EXTENTS                                        NUMBER
  19. MAX_EXTENTS                                        NUMBER
  20. PCT_INCREASE                                       NUMBER
  21. FREELISTS                                          NUMBER
  22. FREELIST_GROUPS                                    NUMBER
  23. LOGGING                                            VARCHAR2(3)
  24. BACKED_UP                                          VARCHAR2(1)
  25. NUM_ROWS                                           NUMBER
  26. BLOCKS                                             NUMBER
  27. EMPTY_BLOCKS                                       NUMBER
  28. AVG_SPACE                                          NUMBER
  29. CHAIN_CNT                                          NUMBER
  30. AVG_ROW_LEN                                        NUMBER
  31. AVG_SPACE_FREELIST_BLOCKS                          NUMBER
  32. NUM_FREELIST_BLOCKS                                NUMBER
  33. DEGREE                                             VARCHAR2(40)
  34. INSTANCES                                          VARCHAR2(40)
  35. CACHE                                              VARCHAR2(20)
  36. TABLE_LOCK                                         VARCHAR2(8)
  37. SAMPLE_SIZE                                        NUMBER
  38. LAST_ANALYZED                                      DATE
  39. PARTITIONED                                        VARCHAR2(3)
  40. IOT_TYPE                                           VARCHAR2(12)
  41. TEMPORARY                                          VARCHAR2(1)
  42. SECONDARY                                          VARCHAR2(1)
  43. NESTED                                             VARCHAR2(3)
  44. BUFFER_POOL                                        VARCHAR2(7)
  45. FLASH_CACHE                                        VARCHAR2(7)
  46. CELL_FLASH_CACHE                                   VARCHAR2(7)
  47. ROW_MOVEMENT                                       VARCHAR2(8)
  48. GLOBAL_STATS                                       VARCHAR2(3)
  49. USER_STATS                                         VARCHAR2(3)
  50. DURATION                                           VARCHAR2(15)
  51. SKIP_CORRUPT                                       VARCHAR2(8)
  52. MONITORING                                         VARCHAR2(3)
  53. CLUSTER_OWNER                                      VARCHAR2(128)
  54. DEPENDENCIES                                       VARCHAR2(8)
  55. COMPRESSION                                        VARCHAR2(8)
  56. COMPRESS_FOR                                       VARCHAR2(30)
  57. DROPPED                                            VARCHAR2(3)
  58. READ_ONLY                                          VARCHAR2(3)
  59. SEGMENT_CREATED                                    VARCHAR2(3)
  60. RESULT_CACHE                                       VARCHAR2(7)
  61. CLUSTERING                                         VARCHAR2(3)
  62. ACTIVITY_TRACKING                                  VARCHAR2(23)
  63. DML_TIMESTAMP                                      VARCHAR2(25)
  64. HAS_IDENTITY                                       VARCHAR2(3)
  65. CONTAINER_DATA                                     VARCHAR2(3)

  66. SQL> create index mac_ind on mactab(table_name);

  67. Index created.






  68. SQL> alter system flush buffer_cache;

  69. System altered.

  70. SQL> /

  71. System altered.


  72. SQL> set autotrace traceonly;
  73. SQL>
  74. SQL> select count(table_name) from mactab;


  75. Execution Plan
  76. ----------------------------------------------------------
  77. Plan hash value: 196216451

  78. -------------------------------------------------------------------------
  79. | Id  | Operation             | Name    | Rows  | Cost (%CPU)| Time     |
  80. -------------------------------------------------------------------------
  81. |   0 | SELECT STATEMENT      |         |     1 |     5   (0)| 00:00:01 |
  82. |   1 |  SORT AGGREGATE       |         |     1 |            |          |
  83. |   2 |   INDEX FAST FULL SCAN| MAC_IND |  2607 |     5   (0)| 00:00:01 |
  84. -------------------------------------------------------------------------




  85. Statistics
  86. ----------------------------------------------------------
  87.           6  recursive calls
  88.           0  db block gets
  89.          91  consistent gets
  90.          96  physical reads
  91.           0  redo size
  92.         552  bytes sent via SQL*Net to client
  93.         543  bytes received via SQL*Net from client
  94.           2  SQL*Net roundtrips to/from client
  95.           0  sorts (memory)
  96.           0  sorts (disk)
  97.           1  rows processed

  98.                   
  99.                   
  100. SQL> select distinct sid from v$mystat;

  101.        SID
  102. ----------
  103.         64
  104.                
  105.                
  106.                
  107. SQL> alter session set events '10046 trace name context forever,level 12';

  108. Session altered.

  109. SQL> select count(table_name) from mactab;

  110. COUNT(TABLE_NAME)
  111. -----------------
  112.              2483

  113.                          
  114. PARSING IN CURSOR #139831777068160 len=36 dep=0 uid=0 oct=3 lid=0 tim=1358862208006118 hv=3733191424 ad='7c698438' sqlid='9mrhn5bg87ys0'
  115. select count(table_name) from mactab
  116. END OF STMT
  117. PARSE #139831777068160:c=1000,e=1321,p=5,cr=8,cu=0,mis=0,r=0,dep=0,og=1,plh=196216451,tim=1358862208006113
  118. EXEC #139831777068160:c=0,e=66,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=196216451,tim=1358862208006238
  119. WAIT #139831777068160: nam='SQL*Net message to client' ela= 5 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=1358862208006348
  120. WAIT #139831777068160: nam='db file sequential read' ela= 15 file#=1 block#=100888 blocks=1 obj#=90849 tim=1358862208006472
  121. WAIT #139831777068160: nam='db file scattered read' ela= 23 file#=1 block#=100889 blocks=7 obj#=90849 tim=1358862208006594
  122. WAIT #139831777068160: nam='db file scattered read' ela= 18 file#=1 block#=100896 blocks=5 obj#=90849 tim=1358862208007059
  123. FETCH #139831777068160:c=1000,e=962,p=13,cr=17,cu=0,mis=0,r=1,dep=0,og=1,plh=196216451,tim=1358862208007371
  124. STAT #139831777068160 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=17 pr=13 pw=0 time=959 us)'
  125. STAT #139831777068160 id=2 cnt=2483 pid=1 pos=1 obj=90849 op='INDEX FAST FULL SCAN MAC_IND (cr=17 pr=13 pw=0 time=20481 us cost=5 size=0 card=2607)'
  126. WAIT #139831777068160: nam='SQL*Net message from client' ela= 342 driver id=1650815232 #bytes=1 p3=0 obj#=90849 tim=1358862208007853
  127. FETCH #139831777068160:c=0,e=6,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,plh=196216451,tim=1358862208007920
  128. WAIT #139831777068160: nam='SQL*Net message to client' ela= 5 driver id=1650815232 #bytes=1 p3=0 obj#=90849 tim=1358862208007961
  129. WAIT #139831777068160: nam='SQL*Net message from client' ela= 507 driver id=1650815232 #bytes=1 p3=0 obj#=90849 tim=1358862208008489
  130. *** SESSION ID:(64.773) 2013-01-22 13:43:28.010
  131. *** CONTAINER ID:(1) 2013-01-22 13:43:28.010


  132. SQL>  alter session set events ' immediate trace name treedump level 90849';

  133. Session altered.



  134. ----- begin tree dump
  135. branch: 0x418a19 4295193 (0: nrow: 11, level: 1)
  136.    leaf: 0x418a1a 4295194 (-1: nrow: 246 rrow: 246)
  137.    leaf: 0x418a1b 4295195 (0: nrow: 252 rrow: 252)
  138.    leaf: 0x418a1c 4295196 (1: nrow: 276 rrow: 276)
  139.    leaf: 0x418a1d 4295197 (2: nrow: 254 rrow: 254)
  140.    leaf: 0x418a1e 4295198 (3: nrow: 254 rrow: 254)
  141.    leaf: 0x418a1f 4295199 (4: nrow: 240 rrow: 240)
  142.    leaf: 0x418a20 4295200 (5: nrow: 242 rrow: 242)
  143.    leaf: 0x418a21 4295201 (6: nrow: 225 rrow: 225)
  144.    leaf: 0x418a22 4295202 (7: nrow: 207 rrow: 207)
  145.    leaf: 0x418a23 4295203 (8: nrow: 202 rrow: 202)
  146.    leaf: 0x418a24 4295204 (9: nrow: 85 rrow: 85)
  147. ----- end tree dump


  148. branch: 0x418a19 4295193 ==》 file 1 block 100889

  149. WAIT #139831777068160: nam='db file sequential read' ela= 15 file#=1 block#=100888 blocks=1 obj#=90849 tim=1358862208006472


  150. SQL> alter system dump datafile 1 block 100888;   10888是segment header


  151. buffer tsn: 0 rdba: 0x00418a18 (1/100888)
  152. scn: 0x0000.0029a160 seq: 0x02 flg: 0x04 tail: 0xa1601002
  153. frmt: 0x02 chkval: 0x84fe type: 0x10=DATA SEGMENT HEADER - UNLIMITED
  154. Hex dump of block: st=0, typ_found=1

复制代码
结论 INDEX FAST FULL SCAN 确实也应当先scan index segment header
                 

回复 只看该作者 道具 举报

8#
发表于 2013-1-23 08:21:52
Maclean Liu(刘相兵 发表于 2013-1-22 21:50
我自己测了一把结论 INDEX FAST FULL SCAN 确实也应当先scan index segment header

多谢!   再多问一句,  我在10G的版本里测试的也看到了INDEX FFS 会扫描SEGMENT HEDER BLOCK, 而在11.2.0.3中没有。   不知道是不是因为版本的原因, 所以才会看到这样的现象!

回复 只看该作者 道具 举报

9#
发表于 2013-1-23 15:08:46
Maclean Liu(刘相兵 发表于 2013-1-22 21:50
我自己测了一把结论 INDEX FAST FULL SCAN 确实也应当先scan index segment header

今天不管怎么测, INDEX FFS都能看到扫描段头块了! 多谢刘大指导。

回复 只看该作者 道具 举报

10#
发表于 2013-1-23 20:45:37

Difference between Full Index Scans and Fast Full Index Scans"

http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:3193365100346233806

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-6-15 13:38 , Processed in 0.051250 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569