<?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>Thu, 03 Mar 2011 14:24:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vinayaknpatil.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Technorama</title>
		<link>http://vinayaknpatil.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vinayaknpatil.wordpress.com/osd.xml" title="Technorama" />
	<atom:link rel='hub' href='http://vinayaknpatil.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Oracle database directory</title>
		<link>http://vinayaknpatil.wordpress.com/2011/03/03/oracle-database-directory/</link>
		<comments>http://vinayaknpatil.wordpress.com/2011/03/03/oracle-database-directory/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 14:24:29 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=103</guid>
		<description><![CDATA[Oracle database directory is used when uploading lobs into the database. When we need to do this, the file must be stored in the database directory and the reference given during lob upload. The database directory is a physical directory on the machine where the database is running. DBA_DIRECTORIES table has data for all the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=103&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Oracle database directory is used when uploading lobs into the database. When we need to do this, the file must be stored in the database directory and the reference given during lob upload. </p>
<p>The database directory is a physical directory on the machine where the database is running.<br />
DBA_DIRECTORIES table has data for all the directories . </p>
<p>To add a new directory in the database , need to run the following as SYS user </p>
<p>CREATE DIRECTORY MY_DIR AS &#8216;/home/database/mydir&#8217;;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayaknpatil.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayaknpatil.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=103&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2011/03/03/oracle-database-directory/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>Logging in applications &#8211; Approach</title>
		<link>http://vinayaknpatil.wordpress.com/2011/02/16/logging-in-applications-approach/</link>
		<comments>http://vinayaknpatil.wordpress.com/2011/02/16/logging-in-applications-approach/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 15:19:43 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=62</guid>
		<description><![CDATA[I work as a Java Developer and two things that I think are not given the due consideration by many developers(me included) are error handling and logging. What makes it important is that there are no fast rules on the two though we do use thumb rules. In this post I will put forth my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=62&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>  I work as a Java Developer and two things that I think are not given the due consideration by many developers(me included) are error handling and logging. What makes it important is that there are no fast rules on the two though we do use thumb rules. In this post I will put forth my thoughts on logging.</p>
<p>Many times we hear people saying &#8220;Log everything&#8221; and developers to be on the &#8220;safe&#8221; side, put lots of logging information. While it certainly helps in debugging, there are disadvantages:</p>
<p>1. Logs involve I/O: This is expensive and causes overhead on your system and can slow down your program.<br />
2. Too many logs are counterproductive: The main purpose of having logs is that, once the program goes into production, you cannot &#8220;debug&#8221; it in case of issues like you did in &#8220;development&#8221; systems. Hence application logs help you by giving the direction taken by the program execution.<br />
If the logs are too bulky, then looking for this direction can be a nightmare. Needle, haystack anyone..<br />
3. Logs occupy space: Logs are physical files and occupy space. Based on your requirements and strategy, you may want to retain logs for certain period of time. Unnecessarily heavy logs eat up on disk space and can cause issues within a short span of time.</p>
<p>So what is a good logging strategy?<br />
Whatever one may say about excessive logging, it is true that we do need logging so that in case of issues we are able to fix it quickly. We do need to strike a balance between logging and its performance.</p>
<p>If you use an utility like Log4J for logging, you can configure it to log only those statements that you need. Hence your code can have all the logger statements at any granularity, but your log files will be light. If you really need to go fine grain, you just change the configuration. </p>
<p>In this case, the trick really is to decide which statement needs what level of logging. There can only be pointers to these and no hard rules</p>
<p>1. Trace: The lowest level: Log every state of object. Frankly , I am yet to use this in my code till now.<br />
2. Debug: The most used one. Use this to log inputs got/ values returned in a method, or intermediate states after some state changes.<br />
3. Info: Information about a business decision taken. X is this and Y is this so we are doing that<br />
4. Warn: You see some business logic not working as expected but not a cause for alarm. Can be used to highlight corner cases .<br />
5. Error: There has been a business logic failure. The sequence of operations is not maintained. The workflow cannot be carried on without fixing these .. mostly inputs from users.<br />
6. Fatal: System error unable to proceed with the workflow at all. Possibly database connection reset, IO operation failure etc. </p>
<p>Keep in mind the following when logging:</p>
<p>1. When a logger statement is encountered, the statement is written and then the logger checks for the logging level . Say the statement is debug but the level is fatal, the object is created and then discarded. In log4j logging, always use logger.isDebugEnabled(), logger.isInfoEnabled etc<br />
2. Loggers are not immune from NullPointerException !!: Quite a few times had this situation when a logger was causing a failure . So try to log direct values of objects than doing getters .</p>
<p>Will write about my experience in Error handling in a later post </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayaknpatil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayaknpatil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=62&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2011/02/16/logging-in-applications-approach/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>Recompiling broken objects in Oracle</title>
		<link>http://vinayaknpatil.wordpress.com/2011/02/16/recompiling-broken-objects-in-oracle/</link>
		<comments>http://vinayaknpatil.wordpress.com/2011/02/16/recompiling-broken-objects-in-oracle/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 14:45:25 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=98</guid>
		<description><![CDATA[Sometimes , changing procedures, functions etc breaks other objects in the datbase. To recompile all broken objects, run the following as SYSTEM user on the database @?/rdbms/admin/utlrp.sql<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=98&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes , changing procedures, functions etc breaks other objects in the datbase. To recompile all broken objects, run the following as SYSTEM user on the database </p>
<p>@?/rdbms/admin/utlrp.sql</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayaknpatil.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayaknpatil.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=98&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2011/02/16/recompiling-broken-objects-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>
		<item>
		<title>Job run details</title>
		<link>http://vinayaknpatil.wordpress.com/2010/04/23/job-run-details/</link>
		<comments>http://vinayaknpatil.wordpress.com/2010/04/23/job-run-details/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 07:08:50 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Jobs]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=96</guid>
		<description><![CDATA[select j.what,v.SID, v.id2 JOB, j.FAILURES, LAST_DATE, substr(to_char(last_date,'HH24:MI:SS'),1,8) LAST_SEC, THIS_DATE, substr(to_char(this_date,'HH24:MI:SS'),1,8) THIS_SEC, j.field1 INSTANCE, c.inst_id, c.sid, c.serial#, p.spid, 'size='&#124;&#124;t.used_ublk*16384/1024/1024&#124;&#124;'mb' usedmb,c.event,C.SQL_ID from sys.job$ j, gv$lock v, gv$session c, gv$process p, gv$transaction t where v.type = 'JQ' and j.job (+)= v.id2 and v.sid=c.sid and c.paddr=p.addr and c.inst_id=p.inst_id and v.inst_id=c.inst_id and t.inst_id(+)=c.inst_id and t.addr(+)=c.taddr; Use the sql_id got to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=96&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code>select j.what,v.SID, v.id2 JOB, j.FAILURES,<br />
    LAST_DATE, substr(to_char(last_date,'HH24:MI:SS'),1,8) LAST_SEC,<br />
    THIS_DATE, substr(to_char(this_date,'HH24:MI:SS'),1,8) THIS_SEC,<br />
    j.field1 INSTANCE, c.inst_id, c.sid, c.serial#, p.spid, 'size='||t.used_ublk*16384/1024/1024||'mb' usedmb,c.event,C.SQL_ID<br />
  from sys.job$ j, gv$lock v, gv$session c, gv$process p, gv$transaction t<br />
  where v.type = 'JQ' and j.job (+)= v.id2 and v.sid=c.sid and c.paddr=p.addr and c.inst_id=p.inst_id<br />
  and v.inst_id=c.inst_id and t.inst_id(+)=c.inst_id and t.addr(+)=c.taddr;</code></p>
<p>Use the sql_id got to get details of the run </p>
<p><code> select sql_text,executions from gv$sqlarea where sql_id =</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayaknpatil.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayaknpatil.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=96&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2010/04/23/job-run-details/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: Create and Drop user</title>
		<link>http://vinayaknpatil.wordpress.com/2010/01/22/oracle-create-and-drop-user/</link>
		<comments>http://vinayaknpatil.wordpress.com/2010/01/22/oracle-create-and-drop-user/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 09:16:49 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=94</guid>
		<description><![CDATA[Create User: http://www.dba-oracle.com/concepts/create_users.htm Drop Ref: http://www.dba-oracle.com/t_oracle_drop_user_cascade.htm<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=94&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Create User: http://www.dba-oracle.com/concepts/create_users.htm</p>
<p>Drop Ref: http://www.dba-oracle.com/t_oracle_drop_user_cascade.htm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayaknpatil.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayaknpatil.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=94&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2010/01/22/oracle-create-and-drop-user/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>Alter table</title>
		<link>http://vinayaknpatil.wordpress.com/2010/01/20/alter-table/</link>
		<comments>http://vinayaknpatil.wordpress.com/2010/01/20/alter-table/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 14:26:14 +0000</pubDate>
		<dc:creator>vinayaknp</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vinayaknpatil.wordpress.com/?p=92</guid>
		<description><![CDATA[Reference: http://www.techonthenet.com/sql/tables/alter_table.php Is a very good page on alter table syntax<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=92&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Reference:</p>
<p>http://www.techonthenet.com/sql/tables/alter_table.php</p>
<p>Is a very good page on alter table syntax</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vinayaknpatil.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vinayaknpatil.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vinayaknpatil.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vinayaknpatil.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vinayaknpatil.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vinayaknpatil.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vinayaknpatil.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vinayaknpatil.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vinayaknpatil.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vinayaknpatil.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vinayaknpatil.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vinayaknpatil.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=92&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vinayaknpatil.wordpress.com/2010/01/20/alter-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>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&amp;blog=623763&amp;post=90&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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>
<br />  <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/gofacebook/vinayaknpatil.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=623763&amp;post=90&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></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&amp;blog=623763&amp;post=88&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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>
<br />  <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/gofacebook/vinayaknpatil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=623763&amp;post=88&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></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&amp;blog=623763&amp;post=84&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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>
<br />  <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/gofacebook/vinayaknpatil.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=623763&amp;post=84&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vinayaknpatil.wordpress.com&amp;blog=623763&amp;post=80&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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>
<br />  <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/gofacebook/vinayaknpatil.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vinayaknpatil.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vinayaknpatil.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=623763&amp;post=80&amp;subd=vinayaknpatil&amp;ref=&amp;feed=1" width="1" height="1" />]]></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>
	</channel>
</rss>
