alter system set event和set events的區別
SQL> ALTER system SET event= '1461 trace name errorstack level 3';
ALTER system SET event= '1461 trace name errorstack level 3'
*
ERROR at line 1:
ORA- 02095: specified initialization parameter cannot be modified
SQL> ALTER system SET event= '1461 trace name errorstack level 3' scope=spfile;
System altered.
驗證是否已成功更改:
SQL> CREATE pfile= '/home/oracle/1.ora' FROM spfile;
File created.
SQL> !
[oracle@rac01 ~]$ grep event 1 .ora
* .event= '1461 trace name errorstack level 3'
這種方法的話,需要重啟DB。下面Rollback這個引數更改
SQL> ALTER system SET event= '1461 trace name errorstack off' scope=spfile;
System altered.
SQL> CREATE pfile= '/home/oracle/2.ora' FROM spfile;
File created.
SQL> !
[oracle@rac01 ~]$ grep event 2 .ora
* .event= '1461 trace name errorstack off'
2.alter system set events:此方法對memory生效,無法對spfile生效
SQL> ALTER system SET events '1461 trace name errorstack level 3';
System altered.
驗證:
[oracle@rac01 ~]$ tail -n1 /oracle/admin/strm1/bdump/alert_strm1.log
OS Pid: 9070 executed alter system set events '1461 trace name errorstack level 3'
這個引數更改沒有反應到spfile中
SQL> CREATE pfile= '/home/oracle/3.ora' FROM spfile;
File created.
SQL> !
[oracle@rac01 ~]$ grep event 3 .ora
* .event= '1461 trace name errorstack off'
其實這裡的1461是個BUG 6085625,Metalink上可以參照NOTE: 461911.1
另外需要注意的是,RAC環境中用方法2動態設定event的話需要在所有instance設定。不過理解了上面的區別的話這個也就很容易明白了。
注意:設定1461 event無法對已經存在的程式生效,對於設定之後新建立的程式才會有效果。所以,我們還是得重啟DB,讓其對所有程式生效。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31540281/viewspace-2937302/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- alter session|system set eventsSession
- alter system events與alter system event的區別
- alter system set events 相關知識
- alter system set events 知識 [final]
- alter system set events相關知識:
- alter system set events相關知識
- 【Oracle】alter system set events 相關知識Oracle
- ALTER SESSION SET EVENTSSession
- alter system set events相關知識(轉帖2)
- alter system set events相關知識(轉帖1)
- alter session set events /Oracle跟蹤SessionOracle
- alter database和alter system和alter session的區別DatabaseSession
- oracle set eventsOracle
- alter session setSession
- alter system switch logfile和alter system archive log current的區別Hive
- alter system switch logfile 和 alter system archive log current 的區別Hive
- alter session set events 'immediate trace name controlf level 8'Session
- [轉]alter system switch logfile和alter system archive log current的區別Hive
- 忍不住問下alter system 和alter database的區別Database
- alter session set events語句dump 控制檔案頭資訊示例Session
- mysql 中set和enum的區別MySql
- v$lock之alter table drop column與alter table set unused column區別系列五
- set autotrace的用法和含意及區別
- ALTER SYSTEM SWITCH LOGFILE ALTER SYSTEM ARCHIVELOG CURRENT 區別Hive
- List、Set、Map的區別
- set、List、map的區別
- alter session set events語句dump REDO日誌檔案頭資訊示例Session
- Oracle跟蹤事件 -- set eventsOracle事件
- zt:alter system switch logfile與ALTER SYSTEM ARCHIVE LOG CURRENT的區別Hive
- java中list、set和map 的區別(轉)Java
- JavaScript中的new map()和new set()使用詳細(new map()和new set()的區別)JavaScript
- 【故障-ORACLE】‘ALTER SYSTEM SET service_names='' SCOPE=MEMORY SID=’解釋Oracle
- 轉儲控制檔案時遇到的知識點:所有alter session set eventSession
- [zt]Oracle跟蹤事件 - set eventsOracle事件
- Oracle跟蹤事件:set events 整理Oracle事件
- Spring set注入和構造注入的區別Spring
- oracle10g_alter session set events 'immediate trace name controlf level 8'dumpOracleSession
- Oracle 跟蹤事件 set eventOracle事件