<?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/"
	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>Technorama</title>
	<atom:link href="http://vinayaknpatil.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinayaknpatil.wordpress.com</link>
	<description>Technical Info I come across in my work... Hopefully they will be of use sometime</description>
	<lastBuildDate>Fri, 27 Nov 2009 07:26:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='vinayaknpatil.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/6c27fc486e2e4c6d3d4b179b0d97c986?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Technorama</title>
		<link>http://vinayaknpatil.wordpress.com</link>
	</image>
			<item>
		<title>Running javadoc</title>
		<link>http://vinayaknpatil.wordpress.com/2009/11/27/running-javadoc/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/11/27/running-javadoc/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 07:26:42 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[docs]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=90</guid>
		<description><![CDATA[A quick handy reference to run javadocs from the command prompt:
 % javadoc -d DOC_OUTPUT_DIR -sourcepath SOURCE_PATH -subpackages LIST_OF_PACKAGES separated by space
further ref: http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=90&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A quick handy reference to run javadocs from the command prompt:</p>
<p> % javadoc -d DOC_OUTPUT_DIR -sourcepath SOURCE_PATH -subpackages LIST_OF_PACKAGES separated by space</p>
<p>further ref: http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=90&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/11/27/running-javadoc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
		<item>
		<title>Vi: shortcut to replace word</title>
		<link>http://vinayaknpatil.wordpress.com/2009/11/19/vi-shortcut-to-replace-word/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/11/19/vi-shortcut-to-replace-word/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 11:53:10 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Replace]]></category>
		<category><![CDATA[VI]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=88</guid>
		<description><![CDATA[Go to the relevant word. To replace it type cw  . Then enter the word. To replace the line from the cursor onwards type c$ and type the replacement.
To do the same change on multiple lines: Go to the position on the line where the change needs to be done. Then type . This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=88&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Go to the relevant word. To replace it type <b>cw</b>  . Then enter the word. To replace the line from the cursor onwards type <b>c$</b> and type the replacement.</p>
<p>To do the same change on multiple lines: Go to the position on the line where the change needs to be done. Then type <b>.</b> This will do the same replacement on the other line too</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=88&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/11/19/vi-shortcut-to-replace-word/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
		<item>
		<title>Catchback: Oracle Reg Expressions</title>
		<link>http://vinayaknpatil.wordpress.com/2009/10/09/fallback-oracle-reg-expressions/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/10/09/fallback-oracle-reg-expressions/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 09:20:31 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=84</guid>
		<description><![CDATA[This is useful in cases where there is a need to replace only a part of a text and the before and after parts have to be retained.
Eg: http://mywebsite/page/1.htm has to be changed to http://yoururl/page/1.htm

select regexp_replace(URL, 'http://.*mywebsite(.*)','http://yoururl\1')
from table

Using the (.*) to put the /page/1.htm is called catchback
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=84&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is useful in cases where there is a need to replace only a part of a text and the before and after parts have to be retained.</p>
<p>Eg: http://mywebsite/page/1.htm has to be changed to http://yoururl/page/1.htm<br />
<code><br />
select regexp_replace(URL, 'http://.*mywebsite(.*)','http://yoururl\1')<br />
from table<br />
</code></p>
<p>Using the (.*) to put the /page/1.htm is called catchback</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=84&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/10/09/fallback-oracle-reg-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting sql plans</title>
		<link>http://vinayaknpatil.wordpress.com/2009/07/12/getting-sql-plans/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/07/12/getting-sql-plans/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 09:37:21 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=80</guid>
		<description><![CDATA[One of our sql procedure executions took a lot of time. But it was not being monitored when it was executing. So we need a way to figure out the execution plan for the query so we can pinpoint the problem. That is where the oracle history tables helped us

select * from dba_hist_sqltext
where sql_text like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=80&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of our sql procedure executions took a lot of time. But it was not being monitored when it was executing. So we need a way to figure out the execution plan for the query so we can pinpoint the problem. That is where the oracle history tables helped us<br />
<code><br />
select * from dba_hist_sqltext<br />
where sql_text like '%TABLE_NAME%'<br />
</code><br />
We knew the table name which was being accessed and so got the sql_id for the execution. </p>
<p>Next step was to get the execution plan:</p>
<p><code><br />
select * from DBA_HIST_SQL_PLAN<br />
where sql_id = 'ABCDEF';<br />
</code></p>
<p>This showed us that the plan was using NESTED loops for execution.</p>
<p>The respective tables for run time monitoring are gv$sqltext and gv$sql_plan</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=80&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/07/12/getting-sql-plans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding partitions to table</title>
		<link>http://vinayaknpatil.wordpress.com/2009/06/20/adding-partitions-to-table/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/06/20/adding-partitions-to-table/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 12:49:38 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=78</guid>
		<description><![CDATA[Recently, we had performance issues in our SQL code and one of the ways we thought was to increase the number of partitions. 
The way to do it is to give one alter table query for each partition. And also the best practice is to have the number of partitions as a power of 2. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=78&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently, we had performance issues in our SQL code and one of the ways we thought was to increase the number of partitions. </p>
<p>The way to do it is to give one alter table query for each partition. And also the best practice is to have the number of partitions as a power of 2. So we increased it from 8 to 16</p>
<p><code>ALTER TABLE  table_name ADD PARTITION </code></p>
<p>This will add the partition and also recalculate the rows that need to be moved to the new partition.</p>
<p>Note: If there are Local indexes in the partitions, they are invalidated due to the new partitions added and they need to be made usable</p>
<p><code>ALTER TABLE list_customers MODIFY PARTITION asia<br />
   REBUILD UNUSABLE LOCAL INDEXES;<code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=78&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/06/20/adding-partitions-to-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
		<item>
		<title>Finding rows in table partition</title>
		<link>http://vinayaknpatil.wordpress.com/2009/06/20/finding-rows-in-table-partition/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/06/20/finding-rows-in-table-partition/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 12:36:23 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/2009/06/20/finding-rows-in-table-partition/</guid>
		<description><![CDATA[There are cases when we would need to know how many rows are present in each partition. This would help us in figuring out if the partition strategy is working fine or not

SELECT object_name, subobject_name, DBMS_MView.PMarker(dta.rowid), count(1)
from TABLE_NAME dta, all_objects ao
where ao.object_id =  DBMS_MView.PMarker(dta.rowid)
group by object_name, subobject_name, DBMS_MView.PMarker(dta.rowid)
order by 1,2 ;

    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=77&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There are cases when we would need to know how many rows are present in each partition. This would help us in figuring out if the partition strategy is working fine or not</p>
<p><code><br />
SELECT object_name, subobject_name, DBMS_MView.PMarker(dta.rowid), count(1)<br />
from <strong>TABLE_NAME</strong> dta, all_objects ao<br />
where ao.object_id =  DBMS_MView.PMarker(dta.rowid)<br />
group by object_name, subobject_name, DBMS_MView.PMarker(dta.rowid)<br />
order by 1,2 ;<br />
</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=77&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/06/20/finding-rows-in-table-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
		<item>
		<title>Scheduler job monitoring</title>
		<link>http://vinayaknpatil.wordpress.com/2009/03/31/scheduler-job-monitoring/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/03/31/scheduler-job-monitoring/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 10:14:02 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=73</guid>
		<description><![CDATA[Use the following query to take a look at oracle jobs that have run in a scheduler

    SELECT *
    FROM dba_scheduler_job_log
    WHERE TRUNC(log_date) = TRUNC(SYSDATE)
    AND job_name = ''

The following query helps to monitor currently running job status:

SELECT *
    FROM [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=73&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Use the following query to take a look at oracle jobs that have run in a scheduler<br />
<code><br />
    SELECT *<br />
    FROM dba_scheduler_job_log<br />
    WHERE TRUNC(log_date) = TRUNC(SYSDATE)<br />
    AND job_name = ''<br />
</code></p>
<p>The following query helps to monitor currently running job status:</p>
<p><code><br />
SELECT *<br />
    FROM dba_scheduler_jobs<br />
    WHERE job_name = '';<br />
</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=73&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/03/31/scheduler-job-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle: locked objects</title>
		<link>http://vinayaknpatil.wordpress.com/2009/03/31/oracle-locked-objects/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/03/31/oracle-locked-objects/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 10:10:41 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=71</guid>
		<description><![CDATA[The following query is helpful in figuring out if any objects have been locked during script execution:

select o.object_name, o.subobject_name, o.object_type, l.*
from gv$locked_object l, dba_objects o
where l.object_id = o.object_id;

Another query that can be used to figure out if there is a &#8220;deadlock&#8221; kind scenario in the database, i.e two or more processes vying for the same [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=71&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The following query is helpful in figuring out if any objects have been locked during script execution:</p>
<p><code><br />
select o.object_name, o.subobject_name, o.object_type, l.*<br />
from gv$locked_object l, dba_objects o<br />
where l.object_id = o.object_id;<br />
</code></p>
<p>Another query that can be used to figure out if there is a &#8220;deadlock&#8221; kind scenario in the database, i.e two or more processes vying for the same resources.. </p>
<p><code><br />
select    'SID ' || l1.sid ||' is blocking  ' || l2.sid blocking<br />
from    v$lock l1, v$lock l2<br />
where    l1.block =1 and l2.request &gt; 0<br />
and    l1.id1=l2.id1<br />
and    l1.id2=l2.id2<br />
</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=71&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/03/31/oracle-locked-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle: Query Rewrite settings</title>
		<link>http://vinayaknpatil.wordpress.com/2009/01/15/oracle-query-rewrite-settings/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/01/15/oracle-query-rewrite-settings/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 14:08:46 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=66</guid>
		<description><![CDATA[Query rewrite is a very useful concept provided by Oracle so that queries on a table can be redirected to a Materialized view. I am not too familiar with this, so that will be the topic of another post. 
This is a quick post about the settings on the database to enable query rewrite. 
The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=66&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Query rewrite is a very useful concept provided by Oracle so that queries on a table can be redirected to a Materialized view. I am not too familiar with this, so that will be the topic of another post. </p>
<p>This is a quick post about the settings on the database to enable query rewrite. </p>
<p>The following query helps in knowing the settings:<br />
<code><br />
show parameter rewrite<br />
</code></p>
<p>In the results, the <strong>query_rewrite_enabled property</strong> must be true.</p>
<p>If it is false, query rewrite will not happen</p>
<p>To set it to true, use the following:<br />
<code><br />
alter system set query_rewrite_enabled = TRUE ;<br />
</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=66&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/01/15/oracle-query-rewrite-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
		<item>
		<title>Table sizes in oracle</title>
		<link>http://vinayaknpatil.wordpress.com/2009/01/07/table-sizes-in-oracle/</link>
		<comments>http://vinayaknpatil.wordpress.com/2009/01/07/table-sizes-in-oracle/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 12:15:51 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=64</guid>
		<description><![CDATA[To find out how much physical space a table occupies in Oracle Database, use the following query :

SELECT
   owner, table_name, segment_type,TRUNC(sum(bytes)/1024/1024) MEG
FROM
(SELECT segment_name table_name, owner, bytes, segment_type
 FROM dba_segments
 )
 WHERE owner in UPPER(SCHEMA_NAME)
GROUP BY table_name,segment_type, owner
HAVING SUM(bytes)/1024/1024 &#62;= 10
ORDER BY SUM(bytes) desc;

This will return all the tables in the schema that occupy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=64&subd=vinayaknpatil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To find out how much physical space a table occupies in Oracle Database, use the following query :<br />
<code><br />
SELECT<br />
   owner, table_name, segment_type,TRUNC(sum(bytes)/1024/1024) MEG<br />
FROM<br />
(SELECT segment_name table_name, owner, bytes, segment_type<br />
 FROM dba_segments<br />
 )<br />
 WHERE owner in UPPER(SCHEMA_NAME)<br />
GROUP BY table_name,segment_type, owner<br />
HAVING SUM(bytes)/1024/1024 &gt;= 10<br />
ORDER BY SUM(bytes) desc;<br />
</code></p>
<p>This will return all the tables in the schema that occupy more than 10 MB of space.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&blog=623763&post=64&subd=vinayaknpatil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2009/01/07/table-sizes-in-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204402dec13b3ffc9080eb4078874fa7?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">vinayaknp</media:title>
		</media:content>
	</item>
	</channel>
</rss>