共计 1128 个字符,预计需要花费 3 分钟才能阅读完成。
关闭 Oracle 11g 的 DPR(Direct Path Read)特性
查看 event 参数值:
SQL> show parameter event
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
event string
xml_db_events string enable
设置 10949 event, 屏蔽 DPR 特性:
SQL> alter system set event='10949 trace name context forever,level 1' sid='*';
alter system set event='10949 trace name context forever,level 1' sid='*'
*
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified
SQL> alter system set event='10949 trace name context forever,level 1' sid='*' scope=spfile;
System altered.
由于指定的 scope=spfile,需要重启库生效:
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup
ORACLE instance started.
Total System Global Area 313159680 bytes
Fixed Size 2252824 bytes
Variable Size 222302184 bytes
Database Buffers 83886080 bytes
Redo Buffers 4718592 bytes
Database mounted.
Database opened.
SQL> show parameter event
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
event string 10949 trace name context forev
er,level 1
xml_db_events string enable
更多 Oracle 相关信息见 Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
本文永久更新链接地址 :http://www.linuxidc.com/Linux/2017-04/143140.htm
正文完
星哥玩云-微信公众号