<?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>Web Info X-change</title>
	<atom:link href="http://webinfoxchange.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://webinfoxchange.wordpress.com</link>
	<description>Exchanging Information about WEB-INF ;)</description>
	<lastBuildDate>Fri, 19 Jun 2009 08:47:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>pt</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='webinfoxchange.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/30f3e16e19f563d4b55d2914b02509ac?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Web Info X-change</title>
		<link>http://webinfoxchange.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://webinfoxchange.wordpress.com/osd.xml" title="Web Info X-change" />
		<item>
		<title>How to save and read Oracle Blob from java</title>
		<link>http://webinfoxchange.wordpress.com/2009/06/18/58/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/06/18/58/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 17:11:33 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[J2EE]]></category>
		<category><![CDATA[BLOB]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/?p=58</guid>
		<description><![CDATA[I wanted to save and load large binary objects (BLOB) from Oralce database and get into array of bytes in Java.
The access to database cound&#8217;t be done directly to the table, it uses a stored procedure that insert&#8217;s the record and returns then primary key of the table.
After long research, I&#8217;m giving back to the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=58&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I wanted to save and load large binary objects (BLOB) from Oralce database and get into array of bytes in Java.<img class="alignright" title="blob" src="http://radiated5.files.wordpress.com/2009/04/blob.jpg?w=193&#038;h=219" alt="" width="193" height="219" /></p>
<p>The access to database cound&#8217;t be done directly to the table, it uses a stored procedure that insert&#8217;s the record and returns then primary key of the table.</p>
<p>After long research, I&#8217;m giving back to the community&#8230;</p>
<p>I use an object UtilsDB.getDataSource().getConnection(); to get a connection from JNDI &#8230; bue the important is you have some way to get the database connection.</p>
<p>Atention: This doesn&#8217;t work if you&#8217;re using ojdbc14-9.0.2.0.0.jar. I had to change this jar to ojdbc14-10.2.0.3.0.jar, then it worked ok.</p>
<p><strong><span style="text-decoration:underline;"><code>So, to save a chunck of bytes (a PDF file, for example) into a Dabatase</code></span></strong></p>
<p>public BigDecimal saveBlobIntoDatabase (byte [] ficheiro,<br />
String nomFicheiro,<br />
String nomDirectoria)<br />
throws SQLException, IOException {</p>
<p>Connection oracleConnection = UtilsDB.getDataSource().getConnection();</p>
<p>CallableStatement stmt = oracleConnection.prepareCall(DBResources.F_GRAVA_BLOB_BD);</p>
<p>BLOB blob = BLOB.createTemporary(oracleConnection, false, BLOB.DURATION_SESSION);</p>
<p>OutputStream outputStream = blob.setBinaryStream(0L);<br />
InputStream inputStream = new ByteArrayInputStream(ficheiro);<br />
byte[] buffer = new byte[blob.getBufferSize()];<br />
int byteread = 0;<br />
while ((byteread = inputStream.read(buffer)) != -1) {<br />
outputStream.write(buffer, 0, byteread);<br />
}<br />
outputStream.close();<br />
inputStream.close();</p>
<p>BigDecimal numFicheiro = new BigDecimal(0);<br />
stmt.registerOutParameter(1, OracleTypes.NUMBER);<br />
stmt.setBlob(2, blob);<br />
stmt.setString(3, nomFicheiro);<br />
stmt.setString(4, nomDirectoria);<br />
stmt.execute();<br />
numFicheiro = stmt.getBigDecimal(1);<br />
stmt.close();</p>
<p>return numFicheiro;</p>
<p>}</p>
<p><span style="text-decoration:underline;"><strong>To read (do the reverse):</strong></span></p>
<p>public byte[] getBlobFromDatabase(BigDecimal numFicheiro) throws BusinessException {</p>
<p>Connection conn = null;<br />
try {</p>
<p>conn = (Connection) UtilsDB.getDataSource().getConnection();</p>
<p>CallableStatement ocs = null;<br />
byte[] content = null;</p>
<p>try {</p>
<p>ocs = conn.prepareCall(DBResources.F_OBTEM_BLOB_BD);</p>
<p>ocs.registerOutParameter(1, OracleTypes.BLOB);<br />
ocs.setBigDecimal(2, numFicheiro );</p>
<p>ocs.executeQuery();</p>
<p>BLOB blob = null;<br />
if (ocs.getObject(1) instanceof BLOB) {<br />
blob = (BLOB) ocs.getObject(1);<br />
}</p>
<p>content = new byte[ (int) blob.length()];<br />
InputStream blobstream = blob.getBinaryStream();<br />
try {<br />
blobstream.read(content , 0 , (int) blob.length());<br />
} catch (IOException ioex) {<br />
ioex.printStackTrace();<br />
} finally {<br />
try {<br />
blobstream.close();<br />
} catch (Exception ignored) {}<br />
}<br />
return content;</p>
<p>} catch (SQLException sqlex) {<br />
sqlex.printStackTrace();<br />
throw sqlex;<br />
} finally {<br />
UtilsDB.close(ocs);<br />
}<br />
} catch (Exception daoe) {<br />
throw new BusinessException(daoe.getMessage() , daoe);<br />
} finally {<br />
UtilsDB.close(conn);<br />
}</p>
<p>}</p>
<p>Also read from:</p>
<p>http://stackoverflow.com/questions/862355/overcomplicated-oracle-jdbc-blob-handling</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:156px;width:1px;height:1px;">public byte[] getBlobFromDatabase(BigDecimal numFicheiro) throws BusinessException {Connection conn = null;<br />
try {conn = (Connection) UtilsDB.getDataSource().getConnection();</p>
<p>CallableStatement ocs = null;<br />
byte[] content = null;</p>
<p>try {<br />
Logger.getLogger(&#8220;pt.mapfre.pdf.dao&#8221;).<br />
log(Level.INFO, &#8220;{? = call jf_k_merge.f_obtem_blob_BD(&#8220;+numFicheiro+&#8221;)}&#8221;);</p>
<p>ocs = conn.prepareCall(DBResources.F_OBTEM_BLOB_BD);</p>
<p>ocs.registerOutParameter(1, OracleTypes.BLOB);<br />
ocs.setBigDecimal(2, numFicheiro );</p>
<p>ocs.executeQuery();</p>
<p>//                System.out.println(&#8220;CLO: &#8221; + ocs.getObject(1));<br />
//                System.out.println(&#8220;CLOB CLASS: &#8221; + ocs.getObject(1).getClass());<br />
//                System.out.println(&#8220;IMPORTED CLOB CLASS: &#8221; + BLOB.class);</p>
<p>BLOB blob = null;<br />
if (ocs.getObject(1) instanceof BLOB) {<br />
blob = (BLOB) ocs.getObject(1);<br />
}</p>
<p>content = new byte[ (int) blob.length()];<br />
InputStream blobstream = blob.getBinaryStream();<br />
try {<br />
blobstream.read(content , 0 , (int) blob.length());<br />
} catch (IOException ioex) {<br />
ioex.printStackTrace();<br />
} finally {<br />
try {<br />
blobstream.close();<br />
} catch (Exception ignored) {}<br />
}</p>
<p>return content;</p>
<p>} catch (SQLException sqlex) {<br />
sqlex.printStackTrace();<br />
throw sqlex;<br />
} finally {<br />
UtilsDB.close(ocs);<br />
}</p>
<p>} catch (Exception daoe) {<br />
Logger.getLogger(&#8220;pt.mapfre.pdf.dao&#8221;).<br />
log(Level.SEVERE, &#8220;Erro na geracao de PDF&#8221;, daoe);<br />
throw new BusinessException(daoe.getMessage() , daoe);<br />
} finally {<br />
UtilsDB.close(conn);<br />
}<br />
public byte[] getBlobFromDatabase(BigDecimal numFicheiro) throws BusinessException {</p>
<p>Connection conn = null;<br />
try {</p>
<p>conn = (Connection) UtilsDB.getDataSource().getConnection();</p>
<p>CallableStatement ocs = null;<br />
byte[] content = null;</p>
<p>try {<br />
Logger.getLogger(&#8220;pt.mapfre.pdf.dao&#8221;).<br />
log(Level.INFO, &#8220;{? = call jf_k_merge.f_obtem_blob_BD(&#8220;+numFicheiro+&#8221;)}&#8221;);</p>
<p>ocs = conn.prepareCall(DBResources.F_OBTEM_BLOB_BD);</p>
<p>ocs.registerOutParameter(1, OracleTypes.BLOB);<br />
ocs.setBigDecimal(2, numFicheiro );</p>
<p>ocs.executeQuery();</p>
<p>//                System.out.println(&#8220;CLO: &#8221; + ocs.getObject(1));<br />
//                System.out.println(&#8220;CLOB CLASS: &#8221; + ocs.getObject(1).getClass());<br />
//                System.out.println(&#8220;IMPORTED CLOB CLASS: &#8221; + BLOB.class);</p>
<p>BLOB blob = null;<br />
if (ocs.getObject(1) instanceof BLOB) {<br />
blob = (BLOB) ocs.getObject(1);<br />
}</p>
<p>content = new byte[ (int) blob.length()];<br />
InputStream blobstream = blob.getBinaryStream();<br />
try {<br />
blobstream.read(content , 0 , (int) blob.length());<br />
} catch (IOException ioex) {<br />
ioex.printStackTrace();<br />
} finally {<br />
try {<br />
blobstream.close();<br />
} catch (Exception ignored) {}<br />
}</p>
<p>return content;</p>
<p>} catch (SQLException sqlex) {<br />
sqlex.printStackTrace();<br />
throw sqlex;<br />
} finally {<br />
UtilsDB.close(ocs);<br />
}</p>
<p>} catch (Exception daoe) {<br />
Logger.getLogger(&#8220;pt.mapfre.pdf.dao&#8221;).<br />
log(Level.SEVERE, &#8220;Erro na geracao de PDF&#8221;, daoe);<br />
throw new BusinessException(daoe.getMessage() , daoe);<br />
} finally {<br />
UtilsDB.close(conn);<br />
}</p>
<p>}<br />
}</p></div>
<p><a href="http://stackoverflow.com/questions/862355/overcomplicated-oracle-jdbc-blob-handling"></a></p>
<p>http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/oralob.htm#1043220</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=58&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/06/18/58/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>

		<media:content url="http://radiated5.files.wordpress.com/2009/04/blob.jpg" medium="image">
			<media:title type="html">blob</media:title>
		</media:content>
	</item>
		<item>
		<title>Ideias pró país&#8230;</title>
		<link>http://webinfoxchange.wordpress.com/2009/06/16/ideias-pro-pais/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/06/16/ideias-pro-pais/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 13:44:56 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/?p=53</guid>
		<description><![CDATA[criar2009 bicicleta eléctrica<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=53&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Partilho convosco a ideia criativa que publiquei no site do criar2009.</p>
<p>Aqui vai o link:</p>
<p><a href="http://videos.sapo.pt/UUHZNpMHHdZ4qy36ZkVV" target="_blank"><span>http://videos.sapo.pt/UUHZNpMHHdZ4qy36ZkVV</span></a></p>
<p>Votem na ideia!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=53&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/06/16/ideias-pro-pais/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Desktop &#8211; connection refused error</title>
		<link>http://webinfoxchange.wordpress.com/2009/05/06/google-desktop-connection-refused-error/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/05/06/google-desktop-connection-refused-error/#comments</comments>
		<pubDate>Wed, 06 May 2009 09:37:22 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[Desktop Software]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/?p=50</guid>
		<description><![CDATA[google desktop error<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=50&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hello,</p>
<p>I had this problem with google desktop: Local querys were giving this error:The <em>connection</em> was <em>refused</em> when attempting to contact localhost:<em>4664</em></p>
<p>I noticed that the problem was only on firefox, not IE. Then I found that the problem was an add-on called &#8220;Y-Slow&#8221; that was installed on my firefox and that was causing some incompatibility issue width google deskto<img class="alignright" title="Google Desktop" src="http://desktop.google.com/images/sidebar_gd55_intl.jpg" alt="" width="202" height="452" />p.</p>
<p>Just disable every add-on in firefox when something starts smelling bad..</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=50&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/05/06/google-desktop-connection-refused-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>

		<media:content url="http://desktop.google.com/images/sidebar_gd55_intl.jpg" medium="image">
			<media:title type="html">Google Desktop</media:title>
		</media:content>
	</item>
		<item>
		<title>Source path too long error installing eclipse</title>
		<link>http://webinfoxchange.wordpress.com/2009/04/25/source-path-too-long-error-installing-eclipse/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/04/25/source-path-too-long-error-installing-eclipse/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 22:18:37 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[Desktop Software]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/?p=45</guid>
		<description><![CDATA[eclipse plugins extract zip path too long<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=45&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I was trying to install <a title="Spring Source Tool Suite" href="http://www.springsource.com/products/sts">Spring Source Tool Suite</a>. Downloaded it and next step was simply extract the zip file (I&#8217;m using windows) to a folder.</p>
<p>The problem is that plugins in eclipse now use a very long pathname and that causes the extract tool in windows to give an error.</p>
<p>Winrar (the old version I use) also has the same problem. Solution: User <a title="7-zip" href="http://www.7-zip.org/"><strong>7-zip</strong></a>!</p>
<p>That&#8217;s all!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=45&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/04/25/source-path-too-long-error-installing-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>
	</item>
		<item>
		<title>Hibernation not working in Vista ??</title>
		<link>http://webinfoxchange.wordpress.com/2009/04/11/hibernation-not-working-in-vista/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/04/11/hibernation-not-working-in-vista/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 23:50:14 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[Desktop Software]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/?p=37</guid>
		<description><![CDATA[Hibernation not working in Vista? Check your last updates..<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=37&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignleft size-medium wp-image-38" title="vista_hibernate" src="http://webinfoxchange.files.wordpress.com/2009/04/vista_hibernate.jpg?w=300&#038;h=225" alt="vista_hibernate" width="300" height="225" />I got this toshiba U400 with vista on it. It&#8217;s just the system that came with it&#8230; ok? So I also know that vista has issues, but I think that it also has come cool stuff, so I&#8217;m just waiting for Windows 7 like everyone else.. or just like many people. The last problem with my vista was that the hibernation thing, that I use heavly, stoped working.</p>
<p>This was a big problem because, I simply don&#8217;t like to wait for a all boot up every time I need to use the PC. So I suspected that the last update screw it up. I executed the restore program, to the moment before the last update and voilá! Hibernation is back again.<img class="alignright size-medium wp-image-39" title="vista_updates" src="http://webinfoxchange.files.wordpress.com/2009/04/vista_updates.jpg?w=300&#038;h=225" alt="vista_updates" width="300" height="225" /></p>
<p>Now, I changed the option to manual updates.</p>
<p>Finally, thanks to this <a href="http://jamesnt.wordpress.com/2008/01/11/hibernate-not-available-in-vista-or-stopped-working/">site</a> there&#8217;s another problem with my other PC that was due some file got wiped accidently. So enter command prompt width administrator and just execute: powercfg /hibernate on.</p>
<p>Problem solved!</p>
<p><img class="alignright size-medium wp-image-43" title="hibernate" src="http://webinfoxchange.files.wordpress.com/2009/04/hibernate.jpg?w=300&#038;h=150" alt="hibernate" width="300" height="150" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=37&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/04/11/hibernation-not-working-in-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>

		<media:content url="http://webinfoxchange.files.wordpress.com/2009/04/vista_hibernate.jpg?w=300" medium="image">
			<media:title type="html">vista_hibernate</media:title>
		</media:content>

		<media:content url="http://webinfoxchange.files.wordpress.com/2009/04/vista_updates.jpg?w=300" medium="image">
			<media:title type="html">vista_updates</media:title>
		</media:content>

		<media:content url="http://webinfoxchange.files.wordpress.com/2009/04/hibernate.jpg?w=300" medium="image">
			<media:title type="html">hibernate</media:title>
		</media:content>
	</item>
		<item>
		<title>Spring JdbcTemplate calling Oracle store procedures or functions</title>
		<link>http://webinfoxchange.wordpress.com/2009/04/08/spring-jdbctemplate-and-invoke-oracle-store-procedures-or-functions/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/04/08/spring-jdbctemplate-and-invoke-oracle-store-procedures-or-functions/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 18:10:45 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[J2EE]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/?p=33</guid>
		<description><![CDATA[After long long google search (My God! Why do we have to google for something that should be self-intuitive), I finally got my java program working  and calling a store procedure from Oracle.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=33&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After long long google search (My God! Why do we have to google for something that should be self-intuitive), I finally got my java program working  and calling a store procedure from Oracle.</p>
<p>The code before was this:</p>
<pre>  /**
   *
   * @param connection
   * @param xml
   * @return
   * @throws SQLException
   */
  public String executaProcedimento (Connection connection,
                    String login,
                    String codPgm,
                    String xmlParams,
                    String urlWebAppServico)
  throws SQLException{

    CallableStatement
    stmt = connection.prepareCall(databaseObjects.STMT_F_EXEC_PROCEDIMENTO);
    //
    stmt.registerOutParameter(1, OracleTypes.VARCHAR);
    //
    stmt.setString(2, login);
    stmt.setString(3, codPgm);
    stmt.setString(4, xmlParams);
    stmt.setString(5, urlWebAppServico);
    stmt.execute();
    //System.out.println("xml:"+xml);
    String result = (String)stmt.getObject(1);

    stmt.close();
    return  result;

  }
  </pre>
<p><span style="font-family:0;font-size:13px;white-space:pre;"><u>And now a proud <a title="Spring" href="http://www.springsource.org/" target="_blank">Spring</a></u><u> equivallent one:</u></span></p>
<pre>  /**
   *
   * @author Acacio Bernardo
   *
   */
  private class ProcedimentoTron
  extends StoredProcedure {

        private static final String SQL =
          "oracle_package_name.f_stored_function";

        public ProcedimentoTron(DataSource ds) {
            setDataSource(ds);
            setFunction(true);
            setSql(SQL);

            declareParameter(new SqlOutParameter("result", Types.VARCHAR));

            declareParameter(new SqlParameter   ("p_login", Types.VARCHAR));
            declareParameter(new SqlParameter   ("p_cod_pgm", Types.VARCHAR));
            declareParameter(new SqlParameter   ("p_xml_params", Types.VARCHAR));
            declareParameter(new SqlParameter   ("p_url_servico", Types.VARCHAR));

            compile();
        }

        public Map executa( String login,
                  String codPgm,
                  String xmlParams,
                  String urlWebAppServico) {
          //
          Map inputs = new HashMap();
            inputs.put("p_login", login);
            inputs.put("p_cod_pgm", codPgm);
            inputs.put("p_xml_params", xmlParams);
            inputs.put("p_url_servico", urlWebAppServico);
            return execute(inputs);
        }
    }

  /**
   *
   * @param connection
   * @param xml
   * @return
   * @throws SQLException
   */
  public String executaProcedimento (DataSource ds,
                    String login,
                    String codPgm,
                    String xmlParams,
                    String urlWebAppServico)
  throws SQLException{

    ProcedimentoTron proc =
         new ProcedimentoTron(ds);

    Map results = proc.executa(login, codPgm, xmlParams, urlWebAppServico);

    return  (String) results.get("result").toString();

  } 

The <a href="http://www.oracle.com/technology/pub/articles/marx_spring.html" target="_blank">Oracle</a> page where I found the information has an example, but it wasn't working because the order of the parameters was Wrong.
Is seems that first you must define the out parameter, and then the input parameters.</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=33&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/04/08/spring-jdbctemplate-and-invoke-oracle-store-procedures-or-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>
	</item>
		<item>
		<title>Trabalhar em J2EE</title>
		<link>http://webinfoxchange.wordpress.com/2009/04/08/trabalhar-em-j2ee/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/04/08/trabalhar-em-j2ee/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 12:52:39 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[J2EE]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/2009/04/08/trabalhar-em-j2ee/</guid>
		<description><![CDATA[Andamos anos a estudar.
Lembro-me desde as aulas de educação visual até às de programação, estruturas de dados, redes.. para, no final, quando queremos comunicar nas reuniões, de forma eficaz, usamos técnicas tão sofisticadas como esta:
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=28&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Andamos anos a estudar.</p>
<p>Lembro-me desde as aulas de educação visual até às de programação, estruturas de dados, redes.. para, no final, quando queremos comunicar nas reuniões, de forma eficaz, usamos técnicas tão sofisticadas como esta:</p>
<div id="attachment_27" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-27 " title="img_0155" src="http://webinfoxchange.files.wordpress.com/2009/04/img_0155.jpg?w=300&#038;h=225" alt="simuladores" width="300" height="225" /><p class="wp-caption-text">simuladores</p></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=28&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/04/08/trabalhar-em-j2ee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>

		<media:content url="http://webinfoxchange.files.wordpress.com/2009/04/img_0155.jpg?w=300" medium="image">
			<media:title type="html">img_0155</media:title>
		</media:content>
	</item>
		<item>
		<title>Interfaces e Classes</title>
		<link>http://webinfoxchange.wordpress.com/2009/04/07/interfaces-e-classes/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/04/07/interfaces-e-classes/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 23:56:41 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[Desktop Software]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[eclipse interface classe]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/2009/04/07/interfaces-e-classes/</guid>
		<description><![CDATA[Quantas vezes já vos aconteceu estarem a analisar código java e, quando clicam num método, em vez do eclipse saltar para a implementação do mesmo, apresenta a interface porque é isso que na realidade está a ser referenciado. No entanto, o que se pretende é ver a implementação. Muito bem&#8230; É só fazer CTRL+T. E [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=26&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Quantas vezes já vos aconteceu estarem a analisar código java e, quando clicam num método, em vez do eclipse saltar para a implementação do mesmo, apresenta a interface porque é isso que na realidade está a ser referenciado. No entanto, o que se pretende é ver a implementação. Muito bem&#8230; É só fazer CTRL+T. E violá! O eclipse apresenta uma lista das classes que implementam aquele método. Como diria o Jamie Oliver&#8230;. Brilliant!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=26&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/04/07/interfaces-e-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox doesn&#8217;t open more than one window</title>
		<link>http://webinfoxchange.wordpress.com/2009/04/05/firefox-doesnt-open-more-than-one-window/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/04/05/firefox-doesnt-open-more-than-one-window/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 14:20:26 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[Desktop Software]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/?p=17</guid>
		<description><![CDATA[Yes! Finally I found the problem that&#8217;s been nagging me for a long time!
Firefox wasn&#8217;t able to open more than one window. Doesn&#8217;t matter if I click CTRL+N or try to open another instance by executing the application from the desktop icon.
So the answer for me was: disable AVG extension. This was a huge fix [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=17&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Yes! Finally I found the problem that&#8217;s been nagging me for a long time!</p>
<p>Firefox wasn&#8217;t able to open more than one window. Doesn&#8217;t matter if I click CTRL+N or try to open another instance by executing the application from the desktop icon.</p>
<p>So the answer for me was: disable <a title="AVG" href="http://free.avg.com/" target="_blank">AVG </a>extension. This was a huge fix because I&#8217;m so in to extensions, that I can&#8217;t use any other alternative like <a title="Chrome" href="http://www.google.com/chrome" target="_blank">Chrome</a>, until it allows gestures. For me is really much easier to browse with gestures than have to point an click throught close tab, back button, etc.<img class="alignright size-medium wp-image-18" title="firefox-extension" src="http://webinfoxchange.files.wordpress.com/2009/04/firefox-extension.jpg?w=300&#038;h=246" alt="firefox-extension" width="300" height="246" /></p>
<p>So here it is! Comment if it didin&#8217;t work for you (maybe  it&#8217;s another bad behavior extension).</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=17&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/04/05/firefox-doesnt-open-more-than-one-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>

		<media:content url="http://webinfoxchange.files.wordpress.com/2009/04/firefox-extension.jpg?w=300" medium="image">
			<media:title type="html">firefox-extension</media:title>
		</media:content>
	</item>
		<item>
		<title>Duas dicas de PLSQL</title>
		<link>http://webinfoxchange.wordpress.com/2009/04/02/duas-dicas-de-plsql/</link>
		<comments>http://webinfoxchange.wordpress.com/2009/04/02/duas-dicas-de-plsql/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 11:53:51 +0000</pubDate>
		<dc:creator>acaciobernardo</dc:creator>
				<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://webinfoxchange.wordpress.com/2009/04/02/duas-dicas-de-plsql/</guid>
		<description><![CDATA[
Para pesquisar objectos que contenham determinada expressão. (Como o grep no unix)

SELECT all_source.owner                                  ,
       all_source.TYPE  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=13&subd=webinfoxchange&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><pre><img class="alignright size-thumbnail wp-image-12" title="pl-sql" src="http://webinfoxchange.files.wordpress.com/2009/04/pl-sql.png?w=150&#038;h=105" alt="pl-sql" width="150" height="105" /></pre>
<p>Para pesquisar objectos que contenham determinada expressão. (Como o grep no unix)</p>
<pre>
SELECT all_source.owner                                  ,</pre>
<pre>       all_source.TYPE                                   ,</pre>
<pre>       all_source.NAME                                   ,</pre>
<pre>       all_source.line                                   ,</pre>
<pre>       all_source.text                                   ,</pre>
<pre>       REPLACE(all_source.text,' ',NULL) TextoSinEspacios</pre>
<pre>  FROM all_source</pre>
<pre> WHERE all_source.owner LIKE 'TRON%'</pre>
<pre>   AND all_source.TYPE    IN ('PROCEDURE','FUNCTION','PACKAGE','PACKAGE BODY')</pre>
<pre>   AND INSTR(UPPER(REPLACE(all_source.text,' ',NULL)),
       UPPER(REPLACE(REPLACE('&amp;TextoParaComillaPoner#',' ',NULL)
       ,'#',''''))) != 0</pre>
<p>Para escrever o caminho de execução sem ter que dar um erro. Ou seja, ver o stack trace de um programa em qualquer momento:</p>
<pre>SUBSTR(DBMS_UTILITY.FORMAT_CALL_STACK,1,2000)</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webinfoxchange.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webinfoxchange.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webinfoxchange.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webinfoxchange.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webinfoxchange.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webinfoxchange.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webinfoxchange.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webinfoxchange.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webinfoxchange.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webinfoxchange.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webinfoxchange.wordpress.com&blog=7155982&post=13&subd=webinfoxchange&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://webinfoxchange.wordpress.com/2009/04/02/duas-dicas-de-plsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e0e013f0c3c51508b765b501a7398c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acaciobernardo</media:title>
		</media:content>

		<media:content url="http://webinfoxchange.files.wordpress.com/2009/04/pl-sql.png?w=150" medium="image">
			<media:title type="html">pl-sql</media:title>
		</media:content>
	</item>
	</channel>
</rss>