<?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>Technospider&#039;s Blog</title>
	<atom:link href="http://technospider.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://technospider.wordpress.com</link>
	<description>Khichadi Blog</description>
	<lastBuildDate>Sat, 06 Mar 2010 05:54:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='technospider.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Technospider&#039;s Blog</title>
		<link>http://technospider.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://technospider.wordpress.com/osd.xml" title="Technospider&#039;s Blog" />
	<atom:link rel='hub' href='http://technospider.wordpress.com/?pushpress=hub'/>
		<item>
		<title>jschexception</title>
		<link>http://technospider.wordpress.com/2010/03/06/jschexception/</link>
		<comments>http://technospider.wordpress.com/2010/03/06/jschexception/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 05:54:07 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/?p=116</guid>
		<description><![CDATA[java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException at org.apache.ivy.plugins.resolver.SFTPResolver.&#60;init&#62;(SFTPResolver.java :31) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at org.apache.ivy.util.Configurator.addChild(Configurator.java:574) at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:5 03) at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted( XmlSettingsParser.java:569) at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettin gsParser.java:201) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour ce) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=116&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException</div>
<div id="_mcePaste">at org.apache.ivy.plugins.resolver.SFTPResolver.&lt;init&gt;(SFTPResolver.java</div>
<div id="_mcePaste">:31)</div>
<div id="_mcePaste">at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</div>
<div id="_mcePaste">at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct</div>
<div id="_mcePaste">orAccessorImpl.java:39)</div>
<div id="_mcePaste">at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC</div>
<div id="_mcePaste">onstructorAccessorImpl.java:27)</div>
<div id="_mcePaste">at java.lang.reflect.Constructor.newInstance(Constructor.java:274)</div>
<div id="_mcePaste">at java.lang.Class.newInstance0(Class.java:308)</div>
<div id="_mcePaste">at java.lang.Class.newInstance(Class.java:261)</div>
<div id="_mcePaste">at org.apache.ivy.util.Configurator.addChild(Configurator.java:574)</div>
<div id="_mcePaste">at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:5</div>
<div id="_mcePaste">03)</div>
<div id="_mcePaste">at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(</div>
<div id="_mcePaste">XmlSettingsParser.java:569)</div>
<div id="_mcePaste">at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettin</div>
<div id="_mcePaste">gsParser.java:201)</div>
<div id="_mcePaste">at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour</div>
<div id="_mcePaste">ce)</div>
<div id="_mcePaste">at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen</div>
<div id="_mcePaste">t(Unknown Source)</div>
<div id="_mcePaste">at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent</div>
<div id="_mcePaste">Dispatcher.dispatch(Unknown Source)</div>
<div id="_mcePaste">at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un</div>
<div id="_mcePaste">known Source)</div>
<div id="_mcePaste">at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)</div>
<div id="_mcePaste">at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)</div>
<div id="_mcePaste">at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)</div>
<div id="_mcePaste">at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)</div>
<div id="_mcePaste">at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour</div>
<div id="_mcePaste">ce)</div>
<div id="_mcePaste">at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)</div>
<div id="_mcePaste">at javax.xml.parsers.SAXParser.parse(SAXParser.java:223)</div>
<div id="_mcePaste">at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsPar</div>
<div id="_mcePaste">ser.java:160)</div>
<div id="_mcePaste">at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParse</div>
<div id="_mcePaste">r.java:150)</div>
<div id="_mcePaste">at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:384)</div>
<div id="_mcePaste">at org.apache.ivy.Ivy.configure(Ivy.java:411)</div>
<div id="_mcePaste">at org.apache.ivy.ant.IvyAntSettings.createIvyEngine(IvyAntSettings.java</div>
<div id="_mcePaste">:272)</div>
<div id="_mcePaste">at org.apache.ivy.ant.IvyAntSettings.getConfiguredIvyInstance(IvyAntSett</div>
<div id="_mcePaste">ings.java:237)</div>
<div id="_mcePaste">at org.apache.ivy.ant.IvyTask.getIvyInstance(IvyTask.java:92)</div>
<div id="_mcePaste">at org.apache.ivy.ant.IvyTask.prepareTask(IvyTask.java:256)</div>
<div id="_mcePaste">at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:276)</div>
<div id="_mcePaste">at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)</div>
<div id="_mcePaste">at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)</div>
<div id="_mcePaste">at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces</div>
<div id="_mcePaste">sorImpl.java:25)</div>
<div id="_mcePaste">at java.lang.reflect.Method.invoke(Method.java:324)</div>
<div id="_mcePaste">at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav</div>
<div id="_mcePaste">a:106)</div>
<div id="_mcePaste">at org.apache.tools.ant.Task.perform(Task.java:348)</div>
<div id="_mcePaste">at org.apache.tools.ant.Target.execute(Target.java:357)</div>
<div id="_mcePaste">at org.apache.tools.ant.Target.performTasks(Target.java:385)</div>
<div id="_mcePaste">at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)</div>
<div id="_mcePaste">at org.apache.tools.ant.Project.executeTarget(Project.java:1306)</div>
<div id="_mcePaste">at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe</div>
<div id="_mcePaste">cutor.java:41)</div>
<div id="_mcePaste">at org.apache.tools.ant.Project.executeTargets(Project.java:1189)</div>
<div id="_mcePaste">at org.apache.tools.ant.Main.runBuild(Main.java:758)</div>
<div id="_mcePaste">at org.apache.tools.ant.Main.startAnt(Main.java:217)</div>
<div id="_mcePaste">at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)</div>
<div id="_mcePaste">at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)</div>
<p>java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException        at org.apache.ivy.plugins.resolver.SFTPResolver.&lt;init&gt;(SFTPResolver.java:31)        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)        at java.lang.Class.newInstance0(Class.java:308)        at java.lang.Class.newInstance(Class.java:261)        at org.apache.ivy.util.Configurator.addChild(Configurator.java:574)        at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:503)        at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:569)        at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:201)        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)        at javax.xml.parsers.SAXParser.parse(SAXParser.java:223)        at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)        at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150)        at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:384)        at org.apache.ivy.Ivy.configure(Ivy.java:411)        at org.apache.ivy.ant.IvyAntSettings.createIvyEngine(IvyAntSettings.java:272)        at org.apache.ivy.ant.IvyAntSettings.getConfiguredIvyInstance(IvyAntSettings.java:237)        at org.apache.ivy.ant.IvyTask.getIvyInstance(IvyTask.java:92)        at org.apache.ivy.ant.IvyTask.prepareTask(IvyTask.java:256)        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:276)        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)        at java.lang.reflect.Method.invoke(Method.java:324)        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)        at org.apache.tools.ant.Task.perform(Task.java:348)        at org.apache.tools.ant.Target.execute(Target.java:357)        at org.apache.tools.ant.Target.performTasks(Target.java:385)        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)        at org.apache.tools.ant.Main.runBuild(Main.java:758)        at org.apache.tools.ant.Main.startAnt(Main.java:217)        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)</p>
<p>Resolve: download <a href="http://sourceforge.net/projects/jsch/files/jsch/jsch-0.1.42.jar/download">http://sourceforge.net/projects/jsch/files/jsch/jsch-0.1.42.jar/download</a> and place it in $ANT_HOME/lib</p>
<p>JSCH: <span style="font-family:arial, helvetica, sans-serif;line-height:18px;font-size:14px;">JSch allows you to connect to an sshd server and use port forwarding, X11 forwarding, file transfer, etc., and you can integrate its functionality into your own Java programs. JSch is licensed under <a style="color:#58a746;background-color:inherit;text-decoration:none;font-weight:bolder;" href="http://www.jcraft.com/jsch/LICENSE.txt">BSD style license</a>.</span></p>
<div><span style="font-family:arial, helvetica, sans-serif;line-height:18px;font-size:14px;"><br />
</span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=116&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2010/03/06/jschexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
		<item>
		<title>Random</title>
		<link>http://technospider.wordpress.com/2010/02/09/random/</link>
		<comments>http://technospider.wordpress.com/2010/02/09/random/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 21:26:28 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/2010/02/09/random/</guid>
		<description><![CDATA[Well, you work out that 5123 x 3 = 15369. Write it down and then appropriately add zero’s and add. These types of problems typically are known as caching problems. Save your results so you don’t have to do it again! It’s not always so dramatic, but how many times do you want to recalculate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=114&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, you work out that 5123 x 3 = 15369. Write it down and then appropriately add zero’s and add.</p>
<p>These types of problems typically are known as caching problems. Save your results so you don’t have to do it again!</p>
<p>It’s not always so dramatic, but how many times do you want to recalculate things? The classic example of the Fibonacci sequence is an example:</p>
<p>f( n ) = f( n &#8211; 1 ) + f( n &#8211; 2 )</p>
<p>It’s trivial to translate this recursively. So we do. Unforunately, if you want to know, say, the 100-th Fibonacci number, and your computer does, say, a trillion calculations a second, it will still take, about 11 years to get your answer. So save and reuse your results! If you did do that, even if you only do 100 operation a second, it’ll take less than a minute!</p>
<p>Yes, someone’s going to point out you only need the last two numbers, so you can use a for loop. You’re perfectly correct, and that’s “Dynamic Programming” (DP). Sometimes memoization is faster, sometimes dp is faster. Experience will tell you which one is which.</p>
<p>I’m handwaving right now, but this isn’t simply “saving down results”, of course. DP/Memo is when you know that certain results will be re-used in the future, exploiting the fact that well, you don’t need to redoing the same thing over and over again..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=114&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2010/02/09/random/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
		<item>
		<title>monitor sql queries</title>
		<link>http://technospider.wordpress.com/2009/12/29/monitor-sql-queries/</link>
		<comments>http://technospider.wordpress.com/2009/12/29/monitor-sql-queries/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 16:57:48 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/2009/12/29/monitor-sql-queries/</guid>
		<description><![CDATA[http://www.howtogeek.com/howto/database/monitor-all-sql-queries-in-mysql/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=110&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.howtogeek.com/howto/database/monitor-all-sql-queries-in-mysql/">http://www.howtogeek.com/howto/database/monitor-all-sql-queries-in-mysql/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=110&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2009/12/29/monitor-sql-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
		<item>
		<title>Good xmldataisland info</title>
		<link>http://technospider.wordpress.com/2009/12/07/good-xmldataisland-info/</link>
		<comments>http://technospider.wordpress.com/2009/12/07/good-xmldataisland-info/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 00:26:46 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/?p=108</guid>
		<description><![CDATA[http://www.devarticles.com/c/a/XML/The-Why-and-How-of-XML-Data-Islands/3/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=108&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.devarticles.com/c/a/XML/The-Why-and-How-of-XML-Data-Islands/3/">http://www.devarticles.com/c/a/XML/The-Why-and-How-of-XML-Data-Islands/3/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=108&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2009/12/07/good-xmldataisland-info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://technospider.wordpress.com/2009/12/02/105/</link>
		<comments>http://technospider.wordpress.com/2009/12/02/105/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 02:00:40 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[esponse time]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[r]]></category>
		<category><![CDATA[response]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/?p=105</guid>
		<description><![CDATA[Once an application is taken into production and it starts to run smoothly from a functional point of view, users generally start complaining about performance. There is always something. I usually enable response time logging early on, so I can get a feel for which servlets and JSP pages are slow and which are fast. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=105&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Once an application is taken into production and it starts to run smoothly from a functional point of view, users generally start complaining about performance. There is always something. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  I usually enable response time logging early on, so I can get a feel for which servlets and JSP pages are slow and which are fast. At the very least, it gives me the opportunity to say to my client: &#8220;yes, I know that the application is slow. The problem seems to be limited to BarServlet and foo.jsp, though&#8221;. This sounds a whole lot better than: &#8220;Gee, is it? I&#8217;ll have a look if I can find anything&#8221;.  In Tomcat, you can edit server.xml and change the format used by the AccessLogValve. The AccessLogValve format is documented on the Tomcat site. If you add a %D to the format string, Tomcat will replace it with the request&#8217;s response time in milliseconds.  Here is the configuration of my access log valve. For this particular server I generate a separate log file, just for response times. Of course you can just add the %D to the log format of your configuration.   Code: The Apache web server offers the same thing, and the log format pattern also happens to be %D. This is documented on the Apache site.  Here is the configuration I use in my Apache server. This is basically the default log format, with a %D inserted in a place where I can easily find it using awk(1):  Code: LogFormat &#8220;%h %l %u %t \&#8221;%r\&#8221; %&gt;s %b %D \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221;" combinedtime CustomLog &#8220;/var/log/httpd-access.log&#8221; combinedtimeBe careful when interpreting the results. The time logged in Apache is in microseconds, where Tomcat logs in milliseconds. I was certainly confused the first time.  I then use Gnuplot to generate pretty graphs from the log files. I attached a sample file so you can see what it looks like.  Do you use response time logging for your applications and web servers? If not, in what way do you ensure that your page requests are fast enough?  Also, I would like to know how response time logging is enabled in other application servers, such as JBoss, OC4J and Orion.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=105&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2009/12/02/105/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
		<item>
		<title>postgreSQL &#8211; psql \i : how to execute script in a given path</title>
		<link>http://technospider.wordpress.com/2009/11/25/postgresql-psql-i-how-to-execute-script-in-a-given-path/</link>
		<comments>http://technospider.wordpress.com/2009/11/25/postgresql-psql-i-how-to-execute-script-in-a-given-path/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 19:26:51 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[postgres]]></category>
		<category><![CDATA[execute]]></category>
		<category><![CDATA[psql]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/?p=102</guid>
		<description><![CDATA[I&#8217;m trying to create a simple script that creates a DB so I can later call it like this: psql -f createDB.sql I want the script to call other scripts (separate ones for creating tables, adding constraints, functions etc), like this: \i script1.sql \i script2.sql It works fine provided that createDB.sql is in the same [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=102&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to create a simple script that creates a DB so I can later call it like this:</p>
<p>psql -f createDB.sql</p>
<p>I want the script to call other scripts (separate ones for creating tables, adding constraints, functions etc), like this:</p>
<pre><code>\i script1.sql
\i script2.sql
</code></pre>
<p>It works fine provided that createDB.sql is in the same dir</p>
<p>But if I move script2 to a directory under the one with createDB, and modify the createDB so it looks like this:</p>
<pre><code>\i script1.sql
\i somedir\script2.sql
</code></pre>
<p>I got an error:</p>
<pre><code>psql:createDB.sql:2: somedir: Permission denied
</code></pre>
<p>I&#8217;m using Postgres Plus 8.3 for windows, default postgres user.</p>
<p>EDIT: silly me, unix slashes solve the problem</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=102&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2009/11/25/postgresql-psql-i-how-to-execute-script-in-a-given-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
		<item>
		<title>Vacumming Postgres Databse</title>
		<link>http://technospider.wordpress.com/2009/11/24/vacumming-postgres-databse/</link>
		<comments>http://technospider.wordpress.com/2009/11/24/vacumming-postgres-databse/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 09:35:47 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[postgres]]></category>
		<category><![CDATA[vacuum postgre]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/?p=99</guid>
		<description><![CDATA[Vacuuming a database: It is a good idea to vacuum your databases periodically, particularly after doing a lot of INSERT, DELETE, or UPDATE commands. Vacuuming the database will update the indeces, etc., and make your queries run faster. To vacuum a database while connected to it (using the psql interface), simply type: vacuum; Consult the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=99&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Vacuuming a database:  It is a good idea to vacuum your databases periodically, particularly after doing a lot of INSERT, DELETE, or UPDATE commands. Vacuuming the database will update the indeces, etc., and make your queries run faster. To vacuum a database while connected to it (using the psql interface), simply type: vacuum; Consult the postgres documentation for more information about this command.  Sometimes, the vacuum cleaner will crash before it finishes. This is rare, but usually causes a fatal error. To be safe, you should restart the postmaster after this occurs. You will also need to remove the vacuum cleaner&#8217;s lock file, or else you will not be able to run vacuum again. This lock file is stored in: you_data_dir/base/your_dbname For instance, I have my data stored in /home/postgres/pgsql/data, and my database is named cabp_db, so my vacuum cleaner lock file is in: /home/postgres/pgsql/data/base/cabp_db</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=99&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2009/11/24/vacumming-postgres-databse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
		<item>
		<title>AIRTEL dns servers</title>
		<link>http://technospider.wordpress.com/2009/11/22/airtel-dns-servers/</link>
		<comments>http://technospider.wordpress.com/2009/11/22/airtel-dns-servers/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 06:35:24 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[airtel dns servers]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/?p=95</guid>
		<description><![CDATA[Primary: 202.56.215.6 Secondary: 202.56.215.55 OR Primary: 202.56.215.54 Secondary: 202.56.215.55<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=95&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Primary: 202.56.215.6 Secondary: 202.56.215.55</p>
<p>OR  Primary: 202.56.215.54 Secondary: 202.56.215.55</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=95&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2009/11/22/airtel-dns-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://technospider.wordpress.com/2009/11/21/90/</link>
		<comments>http://technospider.wordpress.com/2009/11/21/90/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 20:59:21 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/?p=90</guid>
		<description><![CDATA[CREATE TABLESPACE PROD_TBLSPACE  DATAFILE &#8216;gpd_pdef_obj_080609.dmp&#8217; SIZE 500M AUTOEXTEND ON EXTENT MANAGEMENT LOCAL; SELECT file_name, tablespace_name FROM dba_data_files WHERE tablespace_name = &#8216;PROD_TBLSPACE&#8217; ; DROP TABLESPACE  PROD_TBLSPACE INCLUDING CONTENTS AND DATAFILES; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=90&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>CREATE TABLESPACE PROD_TBLSPACE  DATAFILE &#8216;gpd_pdef_obj_080609.dmp&#8217; SIZE 500M AUTOEXTEND ON EXTENT MANAGEMENT LOCAL;</p>
<p>SELECT file_name, tablespace_name FROM dba_data_files WHERE tablespace_name = &#8216;PROD_TBLSPACE&#8217; ;</p>
<p>DROP TABLESPACE  PROD_TBLSPACE INCLUDING CONTENTS AND DATAFILES;<strong></strong></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=90&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2009/11/21/90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
		<item>
		<title>Tablespace oracle and datafiles</title>
		<link>http://technospider.wordpress.com/2009/11/21/tablespace-oracle-and-datafiles/</link>
		<comments>http://technospider.wordpress.com/2009/11/21/tablespace-oracle-and-datafiles/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 18:55:43 +0000</pubDate>
		<dc:creator>technospider</dc:creator>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[datafiles dbf]]></category>
		<category><![CDATA[DROP Tablespace oracle]]></category>

		<guid isPermaLink="false">http://technospider.wordpress.com/?p=89</guid>
		<description><![CDATA[ERROR at line 1:: tablespace &#8216;PROD_TBLSPACE&#8217; already exists // // // // &#60;![CDATA[ ch_client = &#8220;mydigitallife&#8221;; ch_type = &#8220;mpu&#8221;; ch_width = 468; ch_height = 90; ch_non_contextual = 4; ch_noborders = 1; ch_vertical =&#8221;premium&#8221;; ch_sid = &#8220;MDL_Premium_Banner&#8221;; var ch_queries = new Array( ); var ch_selected=Math.floor((Math.random()*ch_queries.length)); if ( ch_selected // // Oracle RDBMS databases stores data logically [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=89&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ERROR at line 1:: tablespace &#8216;PROD_TBLSPACE&#8217; already exists</p>
<div>//</div>
<p>// <ins><ins></ins></ins></p>
<p>//   // &lt;![CDATA[<br />
ch_client = &#8220;mydigitallife&#8221;;<br />
ch_type = &#8220;mpu&#8221;;<br />
ch_width = 468;<br />
ch_height = 90;<br />
ch_non_contextual = 4;<br />
ch_noborders = 1;<br />
ch_vertical =&#8221;premium&#8221;;<br />
ch_sid = &#8220;MDL_Premium_Banner&#8221;;<br />
var ch_queries = new Array( );<br />
var ch_selected=Math.floor((Math.random()*ch_queries.length));<br />
if ( ch_selected</p>
<div>//<br />
// <ins><ins></ins></ins></div>
<p>Oracle RDBMS databases <a id="KonaLink0" href="http://www.mydigitallife.info/2007/08/04/how-to-remove-and-drop-datafiles-from-tablespace-in-oracle-database/#" target="undefined"><span style="color:blue;">stores data</span></a> logically in the form of tablespaces and physically in the form of data files. The datafiles are added to the tablespaces as <a id="KonaLink1" href="http://www.mydigitallife.info/2007/08/04/how-to-remove-and-drop-datafiles-from-tablespace-in-oracle-database/#" target="undefined"><span style="color:blue;">database</span></a> space requirement grows bigger. However, there are several reasons you may want to remove or delete data files from a tablespace. Such as accidentally add a wrongly sized or unwanted datafile to a tablespace, or the data space usage has became smaller and some data files want to be removed, or attempt to recover Oracle database which fails to start due to missing or corrupted datafiles by removing them, Oracle does not provide an easy way or <a id="KonaLink2" href="http://www.mydigitallife.info/2007/08/04/how-to-remove-and-drop-datafiles-from-tablespace-in-oracle-database/#" target="undefined"><span style="color:blue;">user interface</span></a> to delete or drop datafiles from a tablespace. Once a datafile is made part of a tablespace, it can no longer be detached or removed from the tablespace, albeit there are several workarounds.</p>
<p><strong>How to Completely Drop the Whole Tablespace with All Datafiles</strong></p>
<p>The easiest way to drop a or multiple datafiles is by dropping the entire tablespace together with its datafiles. If you no longer need the data contents of the tablespace, the following command will drop the tablespace, the datafile, and the tablespace’s contents from the data dictionary. All of the objects that where contained in that tablespace are permanently removed.</p>
<p><strong>DROP TABLESPACE  &#8216;PROD_TABLESPACE&#8217; INCLUDING CONTENTS AND DATAFILES;</strong></p>
<p>If you don’t specify “AND DATAFILES”, Oracle will not drop the physical datafile after the DROP TABLESPACE command, but you can always delete the files from operating <a id="KonaLink3" href="http://www.mydigitallife.info/2007/08/04/how-to-remove-and-drop-datafiles-from-tablespace-in-oracle-database/#" target="undefined"><span style="color:blue;">system</span></a> shell (If the data files are locked, restart the server).</p>
<p>But always perform a backup of the database, as the “DROP TABLESPACE” command is irreversible. It’s also a good practice to check and identify how many datafiles a tablespace actually has before performing the drop action in order to avoid mistake.</p>
<p><strong>How to Check How Many Datafiles a Tablespace Has</strong></p>
<p>To determine and identify all datafiles that link to a tablespace, use the following query, with tablespace name in capital letter:</p>
<p><strong>SELECT file_name, tablespace_name FROM dba_data_files WHERE tablespace_name = PROD_TABLESPACE ;</strong></p>
<p>If a tablespace contains multiple datafiles, and you just want to drop one or some of the datafiles and keep the remaining datafiles together with the objects and contents, the objects or data must be exported for the affected table space. Once exported, the tablespace can be dropped with above “DROP TABLESPACE” command. Then, recreate the tablespace with the datafile(s) required (that you initially want to keep), and then import the objects into the recreated tablespace.</p>
<p>If one or more datafiles is missing after a <a id="KonaLink4" href="http://www.mydigitallife.info/2007/08/04/how-to-remove-and-drop-datafiles-from-tablespace-in-oracle-database/#" target="undefined"><span style="color:blue;">recovery</span></a> process or accidental deletion, you can use <strong>ALTER DATABASE DATAFILE &lt;datafile name&gt; OFFLINE DROP</strong> command to make the datafile offline so that database can starts up after which the troubled tablespace can be dropped. (See <a href="http://www.mydigitallife.info/2007/08/04/how-drop-tablespace-and-recover-oracle-database-when-accidentally-delete-datafile/">instruction to recover from missing datafiles</a>.)</p>
<p><strong>How to Resize a Datafile to Minimum Size</strong></p>
<p>Another alternative to drop the datafile is by shrinking the size of datafile instead of dropping. This option is only possible if there is no extents in the datafile. If there are none, it’s possible to resize the data file down to a very small file (2 blocks), where Oracle database will no longer create any extent in the datafile. However, this workaround does not remove the datafile from tablespace nor delete the file physically, but it reduce the risk as no data will be truncated as only empty blocks are reduced. It simply makes it unusable and takes up almost close to no disk space. To resize a datafile, use the following query:</p>
<p><strong>alter database datafile ‘&lt;datafile name&gt;’ resize 8M;</strong></p>
<p><strong>How to Determine the Extents inside Datafile</strong></p>
<p>To check and determine the extents that exists in a datafile, use this query:</p>
<p><strong>SELECT owner, segment_name<br />
FROM dba_extents a, dba_data_files b<br />
WHERE a.file_id = b.file_id<br />
AND b.file_name = ‘&lt;datafile name&gt;’</strong></p>
<p><strong>SELECT file_name, tablespace_name FROM dba_data_files WHERE tablespace_name =&#8217;GPDDBSRV&#8217;;</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technospider.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technospider.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technospider.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technospider.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technospider.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technospider.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technospider.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technospider.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technospider.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technospider.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technospider.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technospider.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technospider.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technospider.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technospider.wordpress.com&amp;blog=9994713&amp;post=89&amp;subd=technospider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technospider.wordpress.com/2009/11/21/tablespace-oracle-and-datafiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c9a8b6935af2a6cea279dc43632c4552?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technospider</media:title>
		</media:content>
	</item>
	</channel>
</rss>
