<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Simple scripts</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2009/12/18/simple-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2009/12/18/simple-scripts/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Sat, 18 May 2013 11:04:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/18/simple-scripts/#comment-35048</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Mon, 21 Dec 2009 13:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2636#comment-35048</guid>
		<description><![CDATA[Timur,
It depends so much on where you put the line-breaks. Here&#039;s your second query formatted properly (i.e. MY way)  ;)

[sourcecode gutter=&quot;false&quot;]
select 
	value &#124;&#124; &#039;/&#039; &#124;&#124; 
	(select lower(instance_name) from v$instance) &#124;&#124; 
	&#039;_ora_&#039; &#124;&#124;
	(
	select 	spid
	from	v$process
	where	addr = (
			select	paddr 
			from	v$session 
			where	sid = (
					select	sid 
					from	v$mystat 
					where	rownum = 1
				)
			)
	) &#124;&#124; 
	&#039;.trc&#039;
from 
	v$parameter
where
	name = &#039;user_dump_dest&#039;
;
[/sourcecode]


Twenty-three lines !]]></description>
		<content:encoded><![CDATA[<p>Timur,<br />
It depends so much on where you put the line-breaks. Here&#8217;s your second query formatted properly (i.e. MY way)  ;)</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
select 
	value || '/' || 
	(select lower(instance_name) from v$instance) || 
	'_ora_' ||
	(
	select 	spid
	from	v$process
	where	addr = (
			select	paddr 
			from	v$session 
			where	sid = (
					select	sid 
					from	v$mystat 
					where	rownum = 1
				)
			)
	) || 
	'.trc'
from 
	v$parameter
where
	name = 'user_dump_dest'
;
</pre>
<p>Twenty-three lines !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Akhmadeev</title>
		<link>http://jonathanlewis.wordpress.com/2009/12/18/simple-scripts/#comment-35045</link>
		<dc:creator><![CDATA[Timur Akhmadeev]]></dc:creator>
		<pubDate>Mon, 21 Dec 2009 09:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2636#comment-35045</guid>
		<description><![CDATA[I don&#039;t call a script &quot;simple&quot; when it contains more then 10 lines ;)
Two scripts I use most heavily are getting an explain plan output &amp; default trace file name:
[sourcecode]
set linesize 150 pagesize 999
col plan_table_output format a150
select * from table(dbms_xplan.display);
[/sourcecode]
[sourcecode]
select value &#124;&#124; &#039;/&#039; &#124;&#124; (select lower(instance_name) from v$instance) &#124;&#124; &#039;_ora_&#039; &#124;&#124;
       (select spid
          from v$process
         where addr = (select paddr from v$session where sid = (select sid from v$mystat where rownum = 1))) &#124;&#124; &#039;.trc&#039;
  from v$parameter
 where name = &#039;user_dump_dest&#039;;
[/sourcecode]
BTW, referencing dba_hist_* requires Diagnostic Pack license only; correct name of the Performance pack is &quot;Oracle Tuning Pack&quot;.]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t call a script &#8220;simple&#8221; when it contains more then 10 lines ;)<br />
Two scripts I use most heavily are getting an explain plan output &amp; default trace file name:</p>
<pre class="brush: plain; title: ; notranslate">
set linesize 150 pagesize 999
col plan_table_output format a150
select * from table(dbms_xplan.display);
</pre>
<pre class="brush: plain; title: ; notranslate">
select value || '/' || (select lower(instance_name) from v$instance) || '_ora_' ||
       (select spid
          from v$process
         where addr = (select paddr from v$session where sid = (select sid from v$mystat where rownum = 1))) || '.trc'
  from v$parameter
 where name = 'user_dump_dest';
</pre>
<p>BTW, referencing dba_hist_* requires Diagnostic Pack license only; correct name of the Performance pack is &#8220;Oracle Tuning Pack&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
