这篇文章主要介绍“分析Oracle不同版本查看数据库session/system级别设置了哪些events”,在日常操作中,相信很多人在分析Oracle不同版本查看数据库session/system级别设置了哪些events问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”分析Oracle不同版本查看数据库session/system级别设置了哪些events”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
Document 436036.1
SQL> connect / as sysdba
SQL> oradebug setmypid
Oracle 8i / 9i
SQL> oradebug dump events <level>
/* Level 1 - Dump session group's event settings
/* Level 2 - Dump process group's event settings
/* Level 4 - Dump system group's event settings (Ie the instance wide events)
Oracle 10g / 11g and above
SQL> oradebug eventdump <level>
/* 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)
Note: level needs to be specified in lowercase !
-- OR --
SQL> alter session set events 'immediate eventdump(<level>)';
/* 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)
到此,关于“分析Oracle不同版本查看数据库session/system级别设置了哪些events”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注亿速云网站,小编会继续努力为大家带来更多实用的文章!