<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>《oracle 跟踪会话》的评论</title>
	<atom:link href="https://www.xifenfei.com/2011/04/oracle-%e8%b7%9f%e8%b8%aa%e4%bc%9a%e8%af%9d.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2011/04/oracle-%e8%b7%9f%e8%b8%aa%e4%bc%9a%e8%af%9d.html</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 11 Dec 2025 02:46:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2011/04/oracle-%e8%b7%9f%e8%b8%aa%e4%bc%9a%e8%af%9d.html/comment-page-1#comment-737</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Tue, 27 Mar 2012 08:26:31 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=952#comment-737</guid>
		<description><![CDATA[指定跟踪会话标志
[sql]
alter session set tracefile_identifier=&#039;xifenfei&#039;;
[/sql]]]></description>
		<content:encoded><![CDATA[<p>指定跟踪会话标志</p>
<pre class="brush: sql; title: ; notranslate">
alter session set tracefile_identifier='xifenfei';
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2011/04/oracle-%e8%b7%9f%e8%b8%aa%e4%bc%9a%e8%af%9d.html/comment-page-1#comment-736</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Tue, 27 Mar 2012 08:15:33 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=952#comment-736</guid>
		<description><![CDATA[跟踪会话方法
[sql]
--  For 8i and 9i:
alter session set sql_trace=true;

--  For 10g (sql_trace being deprecated):
execute dbms_monitor.session_trace_enable
[/sql]
[sql]
--  For 8i and 9i:
alter session set sql_trace=false;

--  For 10g (sql_trace being deprecated):
execute dbms_monitor.session_trace_disable
[/sql]]]></description>
		<content:encoded><![CDATA[<p>跟踪会话方法</p>
<pre class="brush: sql; title: ; notranslate">
--  For 8i and 9i:
alter session set sql_trace=true;

--  For 10g (sql_trace being deprecated):
execute dbms_monitor.session_trace_enable
</pre>
<pre class="brush: sql; title: ; notranslate">
--  For 8i and 9i:
alter session set sql_trace=false;

--  For 10g (sql_trace being deprecated):
execute dbms_monitor.session_trace_disable
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2011/04/oracle-%e8%b7%9f%e8%b8%aa%e4%bc%9a%e8%af%9d.html/comment-page-1#comment-735</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Tue, 27 Mar 2012 08:00:22 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=952#comment-735</guid>
		<description><![CDATA[oradebug操作
[sql]
--也可以设置当前会话SETMYPID
SQL&gt; oradebug SETORAPID 15
Unix process pid: 14851, image: oracle@xifenfei (TNS V1-V3)

SQL&gt; oradebug EVENT 10046 TRACE NAME CONTEXT FOREVER, LEVEL 4
Statement processed.

--(其他)会话操作

SQL&gt; oradebug EVENT 10046 trace name context off
Statement processed.

SQL&gt; oradebug TRACEFILE_NAME
/u01/oracle/admin/xifenfei/udump/xff_ora_14851.trc
[/sql]]]></description>
		<content:encoded><![CDATA[<p>oradebug操作</p>
<pre class="brush: sql; title: ; notranslate">
--也可以设置当前会话SETMYPID
SQL&gt; oradebug SETORAPID 15
Unix process pid: 14851, image: oracle@xifenfei (TNS V1-V3)

SQL&gt; oradebug EVENT 10046 TRACE NAME CONTEXT FOREVER, LEVEL 4
Statement processed.

--(其他)会话操作

SQL&gt; oradebug EVENT 10046 trace name context off
Statement processed.

SQL&gt; oradebug TRACEFILE_NAME
/u01/oracle/admin/xifenfei/udump/xff_ora_14851.trc
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜 分飞</title>
		<link>https://www.xifenfei.com/2011/04/oracle-%e8%b7%9f%e8%b8%aa%e4%bc%9a%e8%af%9d.html/comment-page-1#comment-334</link>
		<dc:creator><![CDATA[惜 分飞]]></dc:creator>
		<pubDate>Fri, 16 Dec 2011 07:42:17 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=952#comment-334</guid>
		<description><![CDATA[[shell]1、开启会话跟踪
alter session set events
&#039;10046 trace name context forever,level 4&#039;;
2、关闭会话跟踪
alter session set events
&#039;10046 trace name context off&#039;;
[/shell]]]></description>
		<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">1、开启会话跟踪
alter session set events
'10046 trace name context forever,level 4';
2、关闭会话跟踪
alter session set events
'10046 trace name context off';
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
