ORACLE 配置event引數
下面測試來至於11G
1,資料庫的版本
> select * from v$version;
BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production PL/SQL Release 11.2.0.4.0 - Production CORE 11.2.0.4.0 Production TNS for Linux: Version 11.2.0.4.0 - Production NLSRTL Version 11.2.0.4.0 - Production |
2,在spfile中修改event引數
> alter system set event='10235 trace name context forever,level 512', '10015 trace name context forever, level 1' scope=spfile;
System altered.
> startup force;
> @dump_event.sql "***************************************************************************" "session - Dump session group's event settings " "process - Dump process group's event settings " "system - Dump system group's event settings(Ie the instance wide events) " "***************************************************************************" Statement processed. Enter value for input: system 10015 trace name context forever, level 1 10235 trace name context forever,level 512
清空event的值 ALTER SYSTEM RESET EVENT SCOPE=SPFILE SID='*';
其實我們還可以使用下面的方法 這裡需要注意的是:level 512後面接的:沒有','
> alter system set event='10235 trace name context forever,level 512:10015 trace name context forever,level 1' scope=spfile;
System altered.
"***************************************************************************" "session - Dump session group's event settings " "process - Dump process group's event settings " "system - Dump system group's event settings(Ie the instance wide events) " "***************************************************************************" Statement processed. Enter value for input: system 10235 trace name context forever,level 512 10015 trace name context forever,level 1 |
3,在init中修改event引數
方法1 > !grep "event" /tmp/123.txt *.event='10235 trace name context forever,level 512:10015 trace name context forever,level 1' 方法2 > !grep "event" /tmp/123.txt *.event='10235 trace name context forever,level 512' *.event='10015 trace name context forever,level 1' 方法3: > !grep -A1 "event" /tmp/123.txt *.event='10235 trace name context forever,level 512:\ 10015 trace name context forever,level 1' |
4,清空event的方法
如果使用init引數檔案,直接刪除event引數,如果使用spfile檔案
> @dump_event.sql "***************************************************************************" "session - Dump session group's event settings " "process - Dump process group's event settings " "system - Dump system group's event settings(Ie the instance wide events) " "***************************************************************************" Statement processed. Enter value for input: system 10235 trace name context forever,level 512 10015 trace name context forever,level 1 > alter system set event='' scope=spfile ; 其實這裡我們還可以使用reset event scope=spfile sid='*'來操作 System altered.
> startup force; ORACLE instance started.
Total System Global Area 379965440 bytes Fixed Size 2253464 bytes Variable Size 171969896 bytes Database Buffers 201326592 bytes Redo Buffers 4415488 bytes Database mounted. Database opened. > @dump_event.sql "***************************************************************************" "session - Dump session group's event settings " "process - Dump process group's event settings " "system - Dump system group's event settings(Ie the instance wide events) " "***************************************************************************" Statement processed. Enter value for input: system Statement processed. |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27677261/viewspace-1158735/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle引數配置Oracle
- Oracle rman 配置引數Oracle
- oracle RMAN引數配置詳解Oracle
- ORACLE初始化引數的配置Oracle
- oracle11g引數檔案配置Oracle
- 部分Oracle 配置檔案引數含義Oracle
- 常用的jvm配置引數 :永久區引數配置JVM
- oracle sga配置相關的os 核心引數Oracle
- Oracle引數-隱藏引數Oracle
- jvm引數配置JVM
- JavaWeb引數配置JavaWeb
- oracle 引數Oracle
- ORACLE安裝核心引數配置_linux平臺OracleLinux
- Oracle 統計量NO_INVALIDATE引數配置(下)Oracle
- Oracle 統計量NO_INVALIDATE引數配置(上)Oracle
- ORACLE RAC GUARD配置引數——RAC GUARD概念和管理Oracle
- Ceph配置引數分析
- mosquitto 引數配置UI
- 配置網路引數
- Oracle引數檔案解析——引數解析Oracle
- oracle 10g rac ggs關鍵引數配置Oracle 10g
- 揭祕ORACLE備份之----RMAN之一(引數配置)Oracle
- Oracle 核心引數Oracle
- Oracle UNDO引數Oracle
- Oracle引數大全Oracle
- oracle 效能引數Oracle
- ORACLE核心引數Oracle
- oracle引數整理Oracle
- nginx 常見引數以及重定向引數配置Nginx
- EDBPPAS(Oracle相容版)Oracle與PostgreSQL相容模式的引數配置切換OracleSQL模式
- Oracle引數檔案 各引數解釋Oracle
- hadoop YARN配置引數剖析—MapReduce相關引數HadoopYarn
- Hystrix 配置引數全解析
- Laravel 配置郵箱引數Laravel
- APM Java agent 引數配置Java
- Elasticsearch 引數配置說明Elasticsearch
- SAP配置系統引數
- kafka 引數配置說明Kafka