- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-6-27 17:32:49
ODM FINDING:
The SERV_MOD_ACT_TRACE_ENABLE procedure enables tracing for services with three hierarchical possibilities: SERVICE_NAME, SERVICE_NAME/MODULE, and SERVICE_NAME/MODULE/ACTION. The default is to trace for all instances that access the database. A parameter is provided that restricts tracing to specified instances where poor performance is known to exist. This procedure also gives you the option of capturing relevant waits and bind variable values in the generated trace files. SERV_MOD_ACT_TRACE_DISABLE disables the tracing at all enabled instances for a given combination of service, module, and action. Like the statistics gathering mentioned previously, service tracing persists across instance restarts.
You can use the SERV_MOD_ACT_TRACE_ENABLE procedure to enable SQL tracing for a given combination of service name, module name, and action name globally, unless an instance_name is specified. The procedure has the following parameters:
SERVICE_NAME IN VARCHAR2: Name of the service for which tracing is to be enabled
MODULE_NAME IN VARCHAR2 DEFAULT ANY_MODULE: Name of the module—an (optional) additional qualifier for the service
ACTION_NAME IN VARCHAR2 DEFAULT ANY_ACTION: Name of the action—an (optional) additional qualifier for the service and module name
WAITS IN BOOLEAN DEFAULT TRUE: If TRUE, wait information is present in the trace.
BINDS IN BOOLEAN DEFAULT FALSE: If TRUE, bind information is present in the trace.
INSTANCE_NAME IN VARCHAR2 DEFAULT NULL: Restricts tracing to the named instance
BEGIN
DBMS_APPLICATION_INFO.set_module(module_name => 'test_module',action_name => 'test_action1');
END;
/
YOUR ACTION 1
BEGIN
DBMS_APPLICATION_INFO.set_module(module_name => 'test_module',action_name => 'test_action2');
END;
/
YOU ACTION 2
跟踪 ACTION 1阶段的所有操作 |
|