首页 > 数据库 > Oracle > DBMS_MONITOR跟踪SQL
| Subprogram | Description |
|---|---|
|
Disables statistic gathering previously enabled for a given Client Identifier |
|
|
Enables statistic gathering for a given Client Identifier |
|
|
Disables the trace previously enabled for a given Client Identifier globally for the database |
|
|
Enables the trace for a given Client Identifier globally for the database |
|
|
Disables SQL trace for the whole database or a specific instance |
|
|
Enables SQL trace for the whole database or a specific instance |
|
|
Disables statistic gathering enabled for a given combination of Service Name, MODULE and ACTION |
|
|
Enables statistic gathering for a given combination of Service Name, MODULE and ACTION |
|
|
Disables the trace for ALL enabled instances for a or a given combination of Service Name, MODULE and ACTION name globally |
|
|
Enables SQL tracing for a given combination of Service Name, MODULE and ACTION globally unless an instance_name is specified |
|
|
Disables the previously enabled trace for a given database session identifier (SID) on the local instance |
|
|
Enables the trace for a given database session identifier (SID) on the local instance |
下面我们通过一个例子来演示下dbms_monitor的用法:
4.1 查询会话sid为140的sql跟踪状态
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26390465/viewspace-1771293/ ,如需转载,请注明出处,否则将追究法律责任。