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

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

14

积分

0

好友

0

主题
1#
发表于 2012-3-6 22:41:54 | 查看: 6926| 回复: 3
exadata中的offloading包括很多特性,比如:Column Projection、Predicate Filtering、Storage Indexes、Bloom Filters、Function Offloading等等。

如果我将cell_offload_processing参数设置为false,则是否offloading中的这些特性将全部关闭?
2#
发表于 2012-3-6 22:56:10
cell_offload_processing enable SQL processing offload to cells

The Smart Scan feature of the Exadata Storage Server Software will offload
processing of certain SQL operations to the Exadata Storage Servers, thereby
allowing the data to be processed closer to where it resides. SQL offload
processing is enabled by default at the database instance level by the
initialization parameter CELL_OFFLOAD_PROCESSING.
When CELL_OFFLOAD_PROCESSING is TRUE, the database will
attempt to offload the SQL to be processed by the Exadata Storage Servers.
The decision to offload the SQL is a runtime decision and depends on
several factors, which are detailed in the Exadata Storage Server Software
Users Guide. When CELL_OFFLOAD_PROCESSING is set to FALSE, the
database processes the SQL in the database servers and the Exadata Storage
Servers will merely serve regular blocks to the database nodes.

CELL_OFFLOAD_PROCESSING can be set at the system and the session
level by using the ALTER SYSTEM or the ALTER SESSION commands. This
command enables SQL offload processing for the session executing the
command:
SQL> ALTER SESSION SET CELL_OFFLOAD_PROCESSING = TRUE;
You can also enable (or disable) the CELL_OFFLOAD_PROCESSING
for a SQL by using the OPT_PARAM hint. The SQL-level setting overrides
the session-level settings, which in turn overrides the system-level settings.
This example will enable offload processing only for the SQL using the
OPT_PARAM hint:
SQL> SELECT /*+ OPT_PARAM('cell_offload_processing', 'true') */ COUNT(*)
FROM SALES;
Whether the SQL query is offloaded to the Exadata Storage Server for
processing or not, you can always look at the execution plan of the SQL
with the EXPLAIN PLAN command and determine the predicate or portion
of the SQL that will be a candidate for offload processing. The EXPLAIN
PLAN command has been enhanced to display the offloaded predicates in
the storage section of its output. This feature of EXPLAIN PLAN exists even
when you do not have the Exadata Storage Servers as the storage grid
serving the database.

回复 只看该作者 道具 举报

3#
发表于 2012-3-6 23:15:20
A example :
  1. SQL> select * from v$version;

  2. BANNER
  3. --------------------------------------------------------------------------------
  4. Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
  5. PL/SQL Release 11.2.0.1.0 - Production
  6. CORE    11.2.0.1.0      Production
  7. TNS for Linux: Version 11.2.0.1.0 - Production
  8. NLSRTL Version 11.2.0.1.0 - Production

  9. 5 rows selected.


  10. SQL> show parameter cell_offload

  11. NAME                                 TYPE                             VALUE
  12. ------------------------------------ -------------------------------- ------------------------------
  13. cell_offload_compaction              string                           ADAPTIVE
  14. cell_offload_decryption              boolean                          TRUE
  15. cell_offload_parameters              string
  16. cell_offload_plan_display            string                           AUTO
  17. cell_offload_processing              boolean                          TRUE


  18. SQL> set timing on;

  19. SQL> set autotrace on;

  20. SQL> select count(*) from MAC.MACLEAN ;

  21.   COUNT(*)
  22. ----------
  23. 543144693

  24. 1 row selected.

  25. Elapsed: 00:01:24.46

  26. Execution Plan
  27. ----------------------------------------------------------
  28. Plan hash value: 2967464386

  29. ------------------------------------------------------------------------------------------
  30. | Id  | Operation                  | Name                | Rows  | Cost (%CPU)| Time     |
  31. ------------------------------------------------------------------------------------------
  32. |   0 | SELECT STATEMENT           |                     |     1 |  7169K  (1)| 23:53:59 |
  33. |   1 |  SORT AGGREGATE            |                     |     1 |            |          |
  34. |   2 |   TABLE ACCESS STORAGE FULL| MACLEAN             |   547M|  7169K  (1)| 23:53:59 |
  35. ------------------------------------------------------------------------------------------


  36. Statistics
  37. ----------------------------------------------------------
  38.           1  recursive calls
  39.           0  db block gets
  40.    32731859  consistent gets
  41.    32731502  physical reads
  42.           0  redo size
  43.         530  bytes sent via SQL*Net to client
  44.         519  bytes received via SQL*Net from client
  45.           2  SQL*Net roundtrips to/from client
  46.           0  sorts (memory)
  47.           0  sorts (disk)
  48.           1  rows processed
  49.                   
  50. SQL> alter session set cell_offload_processing=false;

  51. Session altered.                  
  52.                   
  53. SQL> select count(*) from MAC.MACLEAN ;
  54. select count(*) from MAC.MACLEAN

  55. take about 45 minutes here!
复制代码

回复 只看该作者 道具 举报

4#
发表于 2012-3-7 00:11:22
有exadata玩的人,真羡慕哈

回复 只看该作者 道具 举报

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

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

GMT+8, 2024-12-24 00:21 , Processed in 0.048561 second(s), 22 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

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