博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

关闭11g新特性

Posted on 2012-07-24 17:57  紫冰龙  阅读(299)  评论(0编辑  收藏  举报

alter system set event= '10949 trace name context forever, level 1' scope=spfile;

alter system set audit_trail=none;

ORA-10949: Disable autotune direct path read for full table scan

禁止sql tuning advisor
BEGIN
  DBMS_AUTO_TASK_ADMIN.disable(
    client_name => 'sql tuning advisor',
    operation   => NULL,
    window_name => NULL);
END;

select se.USERNAME,
       se.OSUSER,
       se.SID,
       p.SPID,
       su.BLOCKS * 8192/1024/1024 Space,
       s.SQL_TEXT
  from v$sort_usage su, v$session se, v$sqltext s, v$process p
where su.SESSION_ADDR = se.SADDR
   and se.SQL_ADDRESS = s.ADDRESS
   and se.SQL_HASH_VALUE = s.HASH_VALUE
   and p.ADDR = se.PADDR;