怎么捕获自己session执行的sql,进行深入跟踪
alter session set timed_statistics = true; --可选
alter session set max_dump_file_size = unlimited; --可选,防止dump目录放不下
-- To enable the trace event 10046
alter session set events '10046 trace name context forever, level 8';
--设置TRACEFILE_IDENTIFIER参数值,让trace文件包括MyTrace字符,这样找起来方便(这个方法不错!),从8.1.7开始就已经有了
alter session set tracefile_identifier = 'MyTrace'; -- 可选
-- Run your SQL script or program to trace wait event information--
...你的sql...
--To turn off the tracing
alter session set events '10046 trace name context off';
OK, 找到该转储文件localdb_ora_4456_mytrace.trc
再使用tkprof:
C:\> tkprof D:\oracle\product\10.2.0\admin\localdb\udump\localdb_ora_4456_mytrace.trc D:\output.txt
使结果更加可读。如图:
读Oracle Wait Interface: A Practical Guide to Performance Diagnostics & Tuning 有感~
相关文档:
http://hi.baidu.com/dumao/blog/item/1cafa71e5886d019413417e4.html
1.全文索引概述
对 Microsoft® SQL Server™ 2000 数据的全文支持涉及两个功能:对字符数据发出查询的能力和创建及维护基础索引以简化这些查询的能力。
全文索引在许多地方与普通的 SQL 索引不同。
普通 SQL 索引全文索引
存储时受 ......
条件:
拥有sa权限
开启 xp_cmdshell
方法:
开启/关闭 xp_cmdshell 必须在 master 库执行
EXEC sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
EXEC sp_configure 'xp_cmdshell', 1
RECONFIGURE ......
DBMS_CHANGE_NOTIFICATION
对象(表)数据更新通知
DBMS_APPLICATION_INFO
设置/读取SESSION APPLICATION信息,操作V$SESSION_LONGOPS
DBMS_ALERT
告警
DBMS_DATAPUMP
数据迁移
DBMS_DB_VERSION
数据库版本定义
DBMS_DDL
Compiles、wrapped、Reorganizes 对象
DBMS_DEBUG
ORACLE DEPL/SQL debugger 工具
DB ......