惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
IT之家
IT之家
D
DataBreaches.Net
Y
Y Combinator Blog
B
Blog RSS Feed
F
Fortinet All Blogs
GbyAI
GbyAI
V
Visual Studio Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
美团技术团队
L
LangChain Blog
N
Netflix TechBlog - Medium
G
Google Developers Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog

博客园 - 无意

程序猿的故事 余额宝收益查询_最新收益率 外国名著小说大全 linux 查看系统版本 32位 or 64位 redhat linux websphere 6 命令行安装(静默安装) 名著小说在线阅读 历史天气查询 oracle分区表之交换分区 altertable exchange partition with table 新工作 oracle 日常维护工作内容 RedHat Linux常见命令 Oracle to_char格式化函数 ROLLUP和CUBE语句 Oracle分析函数参考手册 oracle游标 oracle 存储过程模板 Oracle Merge into 详细介绍 11gr2中DBA_TAB_MODIFICATIONS视图返回结果异常 设置AUTOTRACE时出现SP2-0611错误
利用dbms_system包SET_SQL_TRACE_IN_SESSION开启sql跟踪
无意 · 2010-05-25 · via 博客园 - 无意

select name,value, ISSYS_MODIFIABLE from v$parameter where name like'%sga%'; 查看参数更改是否立即生效

select sid, SERIAL#,username from v$session; 查看会话

select sid, SERIAL#,username from v$session;
153         15 SCOTT


desc dbms_systems
execute dbms_system.SET_SQL_TRACE_IN_SESSION(153,15,true); 启动sq跟踪


select s.sid,s.serial#,s.username,p.spid         根据sid, SERIAL#查询spid

from v$session s,v$process p
where s.paddr=p.ADDR
/

根据显示的spid到C:\oracle\product\10.2.0\admin\orcl\udump中找文件orcl_ora_2020.trc

C:\Documents and Settings\Administrator>tkprof
C:\Documents and Settings\Administrator>tkprof C:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_2020.trc  c:\t1.txt             利用tkprof反编译跟踪文件