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

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

2135

积分

502

好友

184

主题
1#
发表于 2012-3-10 22:25:09 | 查看: 8203| 回复: 2
kcl.c@10949
A "select ... for update" query shows slow performance and
following three conditions meet
* query run full table scan against large table and run serially (not PQ)
* query use direct path reads against the table
   followed by "db file sequential read" operations.
   You can check this by "alter session set events 'sql_trace wait=true';
   and examine generated SQL trace file.
* The query selects a large number of rows and updates many of them
* Setting event 10949 level 1 to disable the direct reads
   shows improved performance.

Workaround
  Set event 10949.
  eg: alter session set events '10949 level 1';

  The setting of event 10949 to disable direct path reads has shown an
immediate and dramatic performance improvement for GE Capital without their
having to increase buffer cache size.



alter system set events '10949 trace name context forever,level 1';
下载专业ORACLE数据库恢复工具PRM-DUL  For Oracle http://www.parnassusdata.com/zh-hans/emergency-services

如果自己搞不定可以找诗檀软件专业ORACLE数据库修复团队成员帮您恢复!

诗檀软件专业数据库修复团队

服务热线 : 13764045638  QQ: 47079569   
2#
发表于 2014-7-14 13:20:26
请问,
怎样查看是否设置了10949事件呢?

回复 只看该作者 道具 举报

3#
发表于 2014-7-15 17:40:03
SQL>  alter session set events '10949 level 1';

Session altered.

SQL> set serveroutput on
declare
  event_level number;
  begin
  for i in 10000..10999 loop
     sys.dbms_system.read_ev(i,event_level);
     if (event_level > 0) then
      dbms_output.put_line('Event '||to_char(i)||' set at level '||
                             to_char(event_level));
     end if;
  end loop;
end;
/
Event 10949 set at level 1

回复 只看该作者 道具 举报

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

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

GMT+8, 2024-12-21 03:10 , Processed in 0.045505 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

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