<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>2DEV&#187; sql tuning</title>
	<atom:link href="http://blog.2dev.com/tag/sql-tuning/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.2dev.com</link>
	<description>IT &#38; Management Blogs</description>
	<lastBuildDate>Sun, 18 Dec 2011 22:01:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Oracle Database &#8211; SQL trace &amp; capturing the value of bind variables</title>
		<link>http://blog.2dev.com/2010/11/oracle-database-sql-trace-file-capturing-bind-variable-values/</link>
		<comments>http://blog.2dev.com/2010/11/oracle-database-sql-trace-file-capturing-bind-variable-values/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 00:00:29 +0000</pubDate>
		<dc:creator>Payam Moghtader</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[oracle database]]></category>
		<category><![CDATA[Payam Moghtader]]></category>
		<category><![CDATA[sql tuning]]></category>

		<guid isPermaLink="false">http://blog.2dev.com/?p=271</guid>
		<description><![CDATA[The value of the bind variable has a direct impact on the selectivity of your SQL predicates.  Often it is useful to capture the value of the bind variables to investigate the SQL performance issues.<p>Post from: <a href="http://blog.2dev.com">2DEV</a><br/><br/><a href="http://blog.2dev.com/2010/11/oracle-database-sql-trace-file-capturing-bind-variable-values/">Oracle Database &#8211; SQL trace &#038; capturing the value of bind variables</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The value of the bind variable has a direct impact on the selectivity of your SQL predicates.  Often it is useful to capture the value of the bind variables to investigate the SQL performance issues.</p>
<p>Here are the steps to capture your Oracle SQL trace file that includes the value of the bind variables.</p>
<blockquote><p>Alter session set statistics_level=ALL;<br />
Alter session set max_dump_file_size=UNLIMITED;<br />
Alter session set events <strong>&#8217;10046</strong> trace name context forever, <strong>level 12</strong>&#8216;;</p>
<p>var g_city char(20)</p>
<p>begin<br />
:g_city := &#8216;<span style="color: #ff0000;"><strong>Toronto</strong></span>&#8216;;<br />
end;<br />
/</p>
<p>select * from customers where cust_city = :g_name;</p>
<p>alter session set events &#8217;10046 trace name context off&#8217;;</p></blockquote>
<p>Open up the trace file and search for string &#8220;Bind&#8221; and followed by value and of course the value.  Not the prettiest output but it does not the job;</p>
<blockquote><p>BINDS #2:<br />
<strong>Bind</strong>#0<br />
oacdty=96 mxl=128(90) mxlc=00 mal=00 scl=00 pre=00<br />
oacflg=03 fl2=1000000 frm=01 csi=873 siz=128 off=0<br />
kxsbbbfp=006061e4  bln=128  avl=30  flg=05<br />
<strong>value=&#8221;<span style="color: #ff0000;">Toronto</span></strong> &#8220;</p></blockquote>
<p>Recall that in Oracle 11g you can provide an identifier for for your trace file to ease the pain of locating the right trace file.</p>
<p>Post from: <a href="http://blog.2dev.com">2DEV</a><br/><br/><a href="http://blog.2dev.com/2010/11/oracle-database-sql-trace-file-capturing-bind-variable-values/">Oracle Database &#8211; SQL trace &#038; capturing the value of bind variables</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.2dev.com/2010/11/oracle-database-sql-trace-file-capturing-bind-variable-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Payam Moghtader</title>
		<link>http://blog.2dev.com/about/oracle-fusion-middleware-payam-moghtader-architect-pmp/</link>
		<comments>http://blog.2dev.com/about/oracle-fusion-middleware-payam-moghtader-architect-pmp/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 02:16:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freelance consultant]]></category>
		<category><![CDATA[oracle application server]]></category>
		<category><![CDATA[oracle fusion middleware]]></category>
		<category><![CDATA[Payam Moghtader]]></category>
		<category><![CDATA[PMP]]></category>
		<category><![CDATA[senior consultant]]></category>
		<category><![CDATA[sql tuning]]></category>

		<guid isPermaLink="false">http://blog.2dev.com/?page_id=193</guid>
		<description><![CDATA[Payam Moghtader is a Senior Consultant and currently working in capacities of Oracle Solutions Architect, IT Project Manager (PMP), and Certified Oracle University Instructor.  He also is a contributor to 2Dev.com. Payam has over 17 years of experience in management and implementation of Information Technology solutions. His areas of expertise are Oracle based solutions including [...]<p>Post from: <a href="http://blog.2dev.com">2DEV</a><br/><br/><a href="http://blog.2dev.com/about/oracle-fusion-middleware-payam-moghtader-architect-pmp/">Payam Moghtader</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://ca.linkedin.com/in/payammoghtader"><strong>Payam Moghtader</strong></a> is a Senior Consultant and currently working in capacities of Oracle Solutions Architect, IT Project Manager (PMP), and Certified Oracle University Instructor.  He also is a contributor to 2Dev.com. Payam has over 17 years of experience in management and implementation of Information Technology solutions. His areas of expertise are Oracle based solutions including Oracle Fusion Middleware, Oracle WebLogic Server, Oracle Application Server, Oracle ADF, Java EE, Oracle Database, SQL Tuning, Server Architecture and Design as well as Project Management.</p>
<p>He managed his own start-up company in the mid 90’s and was responsible for directing the technology needs and modernizing processes in the manufacturing industry. He also worked as a freelance consultant, technical trainer and project manager for a number of small and midsize organizations in the late 90’s.</p>
<p>Payam has been with his current role since 2000 as a senior consultant at DesTech, a highly regarded Professional Services firm in Toronto, Ontario, Canada.</p>
<p>In the past 12 years, through DesTech and other corporate training companies and colleges, Payam has taught many courses for Oracle University across North America with many awards to his name.</p>
<p>Post from: <a href="http://blog.2dev.com">2DEV</a><br/><br/><a href="http://blog.2dev.com/about/oracle-fusion-middleware-payam-moghtader-architect-pmp/">Payam Moghtader</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.2dev.com/about/oracle-fusion-middleware-payam-moghtader-architect-pmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

