<?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>Not only developing</title>
	<atom:link href="http://teox78.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://teox78.wordpress.com</link>
	<description>Linux,Oracle,Java and much more.....</description>
	<lastBuildDate>Fri, 29 Oct 2010 12:40:10 +0000</lastBuildDate>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='teox78.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Not only developing</title>
		<link>http://teox78.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://teox78.wordpress.com/osd.xml" title="Not only developing" />
	<atom:link rel='hub' href='http://teox78.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Upgrade a Oracle 11.2</title>
		<link>http://teox78.wordpress.com/2010/10/29/upgrade-a-oracle-11-2/</link>
		<comments>http://teox78.wordpress.com/2010/10/29/upgrade-a-oracle-11-2/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 12:40:10 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=90</guid>
		<description><![CDATA[Come prima cosa ecco il link alla documentazione oracle per effettuare l&#8217;upgrade. La documentazione mi sembra chiara e decido di aggiornare la mia istanza 10.2.0.2. Lo script di pre-upgrade non dà alcun errore, quindi procedo con Startup upgrade e lancio lo script catupgrd.sql. Quest&#8217;ultimo termina con un errore che ora non ricordo ma che trovo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=90&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Come prima cosa ecco il <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e17222/toc.htm">link</a> alla documentazione oracle per effettuare l&#8217;upgrade.<br />
La documentazione mi sembra chiara e decido di aggiornare la mia istanza 10.2.0.2. Lo script di pre-upgrade non dà alcun errore, quindi procedo con <code>Startup upgrade</code> e lancio lo script catupgrd.sql. Quest&#8217;ultimo termina con un errore che ora non ricordo ma che trovo in internet : in parole povere non è possibile aggiornare la mia versione direttamente alla 11.2 ma prima devo applicare il patchset 10.2.0.5. Ripristino i datafile, applico la patchset e rifaccio l&#8217;upgrade che adesso termina con successo.<br />
La mia conclusione è: lo script di pre-upgrade è veramente inutile se non è nemmeno in grado di capire se la versione di partenza sia direttamente aggiornabile alla 11.2 !! Questa volta Oracle mi ha veramente deluso: non lo cambierei mai come database ma a volte si perde in delle piccolezze molto fastidiose.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=90&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2010/10/29/upgrade-a-oracle-11-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle 10.2.0.4 &#8211; 10.2.0.5 : DML parallele all&#8217;interno dello scheduler</title>
		<link>http://teox78.wordpress.com/2010/08/29/oracle-10-2-0-4-10-2-0-5-dml-parallele-allinterno-dello-scheduler/</link>
		<comments>http://teox78.wordpress.com/2010/08/29/oracle-10-2-0-4-10-2-0-5-dml-parallele-allinterno-dello-scheduler/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 21:00:38 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[parallel]]></category>
		<category><![CDATA[scheduler]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=84</guid>
		<description><![CDATA[Al fine di velocizzare alcuni processi che girano di notte su un db Oracle ( 10.2.0.4) , ho deciso di eseguire alcune DML in parallelo. Sostanzialmente , le modifiche che apporto sono due : abilitare le DML parallele :Alter session enable parallel DML; Aggiungere l&#8217;hint alla query : INSERT /*+ PARALLEL(a, 4) */  INTO mytable [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=84&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Al fine di velocizzare alcuni processi che girano di notte su un db Oracle ( 10.2.0.4) , ho deciso di eseguire alcune DML in parallelo. Sostanzialmente , le modifiche che apporto sono due :</p>
<ul>
<li>abilitare le DML parallele :<code>Alter session enable parallel DML;</code></li>
<li>Aggiungere l&#8217;hint alla query : <code>INSERT /*+ PARALLEL(a, 4) */  INTO mytable a ....</code></li>
</ul>
<p>Prima di tutto eseguo la procedure da sqlplus e vedo che funziona tutto alla perfezione ma non appena viene inserita all&#8217;interno dello scheduler, la procedura va a buon fine ma senza alcun parallelismo e quindi senza alcuna riduzione dei tempi rispetto a quella originale.<br />
Cerco il problema su google e scopro che facendo l&#8217;upgrade alla versione 10.2.0.5 di Oracle, si ha la possibilità di eseguire DML parallele anche ll&#8217;interno di &#8220;Transazioni autonome&#8221; e quindi anche all&#8217;interno dello scheduler.<br />
Eseguo l&#8217;upgrade e riprovo ma senza successo. Facendo altri test, capisco che il problema è dato dal fatto che chiamo la procedura tramite <strong>Execute immediate</strong>.</p>
<p>Per riassumere : se uno procedura invocata dallo scheduler chiama un&#8217;altra procedura tramite il comando Execute Immediate, le query/dml parallele all&#8217;interno di quest&#8217;ultima procedura non verranno eseguite in parallelo. Se invece si chiamasse direttamente la procedura senza l&#8217;uso del comando execute immediate, tutto funzionerebbe come ci si aspetta.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=84&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2010/08/29/oracle-10-2-0-4-10-2-0-5-dml-parallele-allinterno-dello-scheduler/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle :  ricomprimere una sottopartizione</title>
		<link>http://teox78.wordpress.com/2010/08/19/oracle-ricomprimere-una-sottopartizione/</link>
		<comments>http://teox78.wordpress.com/2010/08/19/oracle-ricomprimere-una-sottopartizione/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 12:48:23 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[compression]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=80</guid>
		<description><![CDATA[Recentemente mi è capitato di dover aggiornare dei dati in una tabella compressa sottopartizionata e di conseguenza la compressione è andata persa (la sottopartizione è passata da 950MB a 2.7 GB). Ecco la procedura per ricomprimere la sottopartizione e ricostruire eventuali indici : Alter table MYTABLE move subpartition P1_SP1 parallel 4 update global indexes Alter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=80&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recentemente mi è capitato di dover aggiornare dei dati in una tabella compressa sottopartizionata e di conseguenza la compressione è andata persa (la sottopartizione è passata da 950MB a  2.7 GB).<br />
Ecco la procedura per ricomprimere la sottopartizione e ricostruire eventuali indici :<br />
<code> Alter table MYTABLE move subpartition P1_SP1 parallel 4 update global indexes </code><br />
<code> Alter table MYTABLE modify subpartition P1_SP1  rebuild unusable local indexes</code></p>
<p>Con il primo statement comprimiamo la sottopartizione e ricreiamo eventuali indici globali, col secondo ricreiamo eventuali indici locali.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=80&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2010/08/19/oracle-ricomprimere-una-sottopartizione/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse : Problema installazione plug-in</title>
		<link>http://teox78.wordpress.com/2009/12/08/eclipse-problema-installazione-plug-in/</link>
		<comments>http://teox78.wordpress.com/2009/12/08/eclipse-problema-installazione-plug-in/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 10:39:01 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[GTK]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=76</guid>
		<description><![CDATA[Ieri ho scaricato l&#8217;ultima versione di Eclipse e l&#8217;ho installata sulla mia workstation Fedora 12 64 bit + Sun JDK 1.6.0_17 La prima cosa che faccio è andare ad installare alcuni plugin , ma quando faccio click su next per confermare l&#8217;installazione non accade niente! Dopo una veloce ricerca sui forum di Eclipse trovo la [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=76&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ieri ho scaricato l&#8217;ultima versione di Eclipse e l&#8217;ho installata sulla mia workstation Fedora 12 64 bit + Sun JDK 1.6.0_17</p>
<p>La prima cosa che faccio è andare ad installare alcuni plugin , ma quando faccio click su next per confermare l&#8217;installazione non accade niente!</p>
<p>Dopo una veloce ricerca sui forum di Eclipse trovo la soluzione : creare un piccolo script per lanciare eclipse:<br />
<code><br />
#!/bin/sh<br />
export GDK_NATIVE_WINDOWS=1<br />
/app/eclipse-3.5/eclipse<br />
</code></p>
<p>Sembra che sia un errore ricorrente anche su ubuntu 9.10.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=76&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2009/12/08/eclipse-problema-installazione-plug-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
		<item>
		<title>Fedora 12 : NVIDIA Driver + Kde</title>
		<link>http://teox78.wordpress.com/2009/11/24/fedora-12-nvidia-driver-kde/</link>
		<comments>http://teox78.wordpress.com/2009/11/24/fedora-12-nvidia-driver-kde/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:47:52 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[Fedora 12]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=72</guid>
		<description><![CDATA[Ho appena installato Fedora 12 64 bit sul desktop di casa. L&#8217;installazione è andata bene e a mio avviso è stata anche più rapida rispetto a quella di Fedora 11. Aggiungo i repository Rpm Fusion , installo gli ultimi driver nvidia e riavvio. Mi accorgo subito che il desktop risulta lento in alcune operazioni semplicissime [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=72&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ho appena installato Fedora 12 64 bit sul desktop di casa.</p>
<p>L&#8217;installazione è andata bene e a mio avviso è stata anche più rapida rispetto a quella di Fedora 11.</p>
<p>Aggiungo i repository Rpm Fusion , installo gli ultimi driver nvidia e riavvio.</p>
<p>Mi accorgo subito che il desktop risulta lento in alcune operazioni semplicissime come l&#8217;apertura del menu principale (Alt + F1) o di &#8220;Run Command&#8221; (Alt + F2). Dopo aver fatto alcune ricerche in google e aver provato varie configurazioni di  xorg.conf, l&#8217;unica soluzione valida è stata quella di fare un downgrade di <strong>xorg-x11-server-Xorg</strong> e<strong> xorg-x11-server-common</strong> alla versione 1.7.1.3 che potete trovare <a href="http://koji.fedoraproject.org/koji/buildinfo?buildID=139659" target="_blank">qui</a>.</p>
<p>Per il resto funziona tutto bene e tutte le periferiche sono state riconosciute senze problemi o interventi manuali.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=72&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2009/11/24/fedora-12-nvidia-driver-kde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse Galileo (3.5) + Subversion</title>
		<link>http://teox78.wordpress.com/2009/09/29/eclipse-galileo-3-5-subversion/</link>
		<comments>http://teox78.wordpress.com/2009/09/29/eclipse-galileo-3-5-subversion/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 07:36:37 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse galileo]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=68</guid>
		<description><![CDATA[Ecco come installare il plugin subversion sull&#8217;ultima versione di eclipse : Help -&#62; Install New Software Come sito di aggiornamento selezionare Galileo, andare sotto la sezione Collaboration e spuntare Subversive SVN Team Provider (incubation), quindi cliccare next, accettare la licenza e fare Finish Help -&#62; Install New Software Questa volta dobbiamo aggiungere il sito di [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=68&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ecco come installare il plugin subversion sull&#8217;ultima versione di eclipse :</p>
<p>Help -&gt; Install New Software</p>
<p>Come sito di aggiornamento selezionare <strong>Galileo</strong>, andare sotto la sezione <strong>Collaboration</strong> e spuntare <strong>Subversive SVN Team Provider (incubation)</strong>, quindi cliccare next, accettare la licenza e fare Finish</p>
<p>Help -&gt; Install New Software</p>
<p>Questa volta dobbiamo aggiungere il sito di aggiornamento , quindi scriviamo <a rel="nofollow" href="http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/">http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/</a> nella edit in alto &#8220;<strong>Work with</strong>&#8221; , clicchiamo su add e inseriamo una descrizione</p>
<p>Sotto Subversive SVN Connectors, spuntare <strong>SVNKit 1.3.0 Implementation (optional)</strong>, fare <strong>Next</strong> e poi <strong>Finish</strong></p>
<p>Mi sembra strano che questo plugin non sia ancora integrato in Eclipse in quanto la maggior parte,o comunque una grande fetta,  degli utenti di questo IDE utilizza subversion.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=68&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2009/09/29/eclipse-galileo-3-5-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
		<item>
		<title>Riavvio pulito a sistema bloccato</title>
		<link>http://teox78.wordpress.com/2009/09/09/riavvio-pulito-a-sistema-bloccato/</link>
		<comments>http://teox78.wordpress.com/2009/09/09/riavvio-pulito-a-sistema-bloccato/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 07:45:23 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[sysrq]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=64</guid>
		<description><![CDATA[Da quando uso linux, devo ammettere che mi è capitato raramente che il sistema non rispondesse completamente. Se però dovesse capitarvi che anche la combinazione Ctrl-Alt-Del non riavvii la macchina allora potrete ricorrere alla seguente combinazione per evitare il tasto reset : tenere premuti Alt(destro) e SysRq e digitare R E I S U B [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=64&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Da quando uso linux, devo ammettere che mi è capitato raramente che il sistema non rispondesse completamente.</p>
<p>Se però dovesse capitarvi che anche la combinazione <strong>Ctrl-Alt-Del </strong>non riavvii la macchina allora potrete ricorrere alla seguente combinazione per evitare il tasto reset : tenere premuti <strong>Alt(destro)</strong> e <strong>SysRq</strong> e digitare <strong>R E I S U B</strong></p>
<p>Ecco l&#8217;azione associata ad ogni lettera :</p>
<p>R : mette la tastiera in modalità XLATE</p>
<p>E : invia SIGTERM a tutti i processi tranne init</p>
<p>I : invia SIGKILL a tutti i processi tranne init</p>
<p>S : sincronizza tutti i filesystem montati</p>
<p>U : rimonta tutti i filesystem in sola lettura</p>
<p>B : riavvio immediato del sistema senza smontare i dischi</p>
<p>Perchè questa procedura funzioni bisogna assicurarsi che <strong>/proc/sys/kernel/sysrq</strong> contenga <strong>1</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=64&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2009/09/09/riavvio-pulito-a-sistema-bloccato/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
		<item>
		<title>Fedora 11 : Problemi audio con il plugin flash</title>
		<link>http://teox78.wordpress.com/2009/08/22/fedora-11-problemi-audio-con-il-plugin-flash/</link>
		<comments>http://teox78.wordpress.com/2009/08/22/fedora-11-problemi-audio-con-il-plugin-flash/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 12:18:43 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=58</guid>
		<description><![CDATA[Era ormai da settimane che convivevo con un problema molto fastidioso : mentre guardavo un video su YouTube all&#8217;improvviso l&#8217;audio cominciava a saltare per poi scomparire del tutto, l&#8217;unico modo per ripristinarlo era riavviare Firefox. Facendo un po&#8217; di prove ho capito che il problema era esclusivamente delle applicazioni flash : ho provato a reinstallare [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=58&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Era ormai da settimane che convivevo con un problema molto fastidioso : mentre guardavo un video su YouTube all&#8217;improvviso l&#8217;audio cominciava a saltare per poi scomparire del tutto, l&#8217;unico modo per ripristinarlo era riavviare Firefox. Facendo un po&#8217; di prove ho capito che il problema era esclusivamente delle applicazioni flash : ho provato a reinstallare il plugin flash , Firefox &#8230; ma niente. Dopo aver girato parecchi forum ho finalmente trovato la banalissima soluzione : disinstallare il pacchetto <strong>alsa-plugins-pulseaudio</strong>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=58&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2009/08/22/fedora-11-problemi-audio-con-il-plugin-flash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
		<item>
		<title>/bin/rm : Argument list too long</title>
		<link>http://teox78.wordpress.com/2009/07/27/binrm-argument-list-too-long/</link>
		<comments>http://teox78.wordpress.com/2009/07/27/binrm-argument-list-too-long/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 08:49:59 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=53</guid>
		<description><![CDATA[Se incappate in questo errore ecco alcune soluzioni : 1. for x in *.trc do rm $x done 2. find . -name  '*.txt' -print0 &#124; xargs -0 rm 3. find . -name  '*.txt' -exec rm {} \; -print 4. find . -name  '*.txt' -delete (presente dalla versione 4.2 di find)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=53&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Se incappate in questo errore ecco alcune soluzioni :</p>
<p>1.<br />
<code>for x in *.trc<br />
do<br />
rm $x<br />
done</code></p>
<p>2.<br />
<code>find . -name  '*.txt' -print0 | xargs -0 rm</code></p>
<p>3.<br />
<code>find . -name  '*.txt' -exec rm {} \; -print</code></p>
<p>4.<br />
<code>find . -name  '*.txt' -delete </code>(presente dalla versione 4.2 di find)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=53&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2009/07/27/binrm-argument-list-too-long/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
		<item>
		<title>Utilizzo delle collezioni in Oracle-PL/SQL</title>
		<link>http://teox78.wordpress.com/2009/07/20/utilizzo-delle-collezioni-in-oracle-plsql/</link>
		<comments>http://teox78.wordpress.com/2009/07/20/utilizzo-delle-collezioni-in-oracle-plsql/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 11:56:27 +0000</pubDate>
		<dc:creator>teox78</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://teox78.wordpress.com/?p=28</guid>
		<description><![CDATA[Le collezioni di Oracle semplificano sicuramente la programmazione in PL/SQL e sono in grado di velocizzare notevolmente alcuni processi. Mostrerò come utilizzarle e includerò qualche esempio di impieghi particolari. Innanzitutto creiamo il tipo Create or replace type t_varchar2_table as table of varchar2(4000); Operazioni base : Create or replace procedure pr_base_test AS --inizializzo la lista con [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=28&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Le collezioni di Oracle semplificano sicuramente la programmazione in PL/SQL e sono in grado di velocizzare notevolmente alcuni processi.</p>
<p>Mostrerò come utilizzarle e includerò qualche esempio di impieghi particolari.</p>
<p><strong>Innanzitutto creiamo il tipo</strong></p>
<p><code>Create or replace type t_varchar2_table as table of varchar2(4000);</code></p>
<p><strong>Operazioni base :</strong></p>
<p><code>Create or replace procedure pr_base_test AS<br />
--inizializzo la lista con zero elementi<br />
x_Varchar2_Table t_varchar2_table := t_varchar2_table();<br />
n_Step NUMBER;<br />
BEGIN<br />
--mettiamo 10 elementi nella lista<br />
FOR n_Step IN 1..10 LOOP<br />
x_Varchar2_Table.EXTEND;<br />
x_Varchar2_Table(x_Varchar2_Table.LAST) := 'Row '||n_Step;<br />
END LOOP;<br />
--visualizzo quanti elementi ho nella lista<br />
Dbms_Output.put_Line('Count = '||x_Varchar2_Table.COUNT);<br />
--visualizzo ogni elemento in lista<br />
FOR n_Step IN x_Varchar2_Table.FIRST..x_Varchar2_Table.LAST LOOP<br />
Dbms_Output.put_Line(x_Varchar2_Table(n_Step);<br />
END LOOP;<br />
--controllo se un elemento è presente nella lista<br />
IF 'Row 7' MEMBER OF x_Varchar2_Table THEN<br />
Dbms_output.put_Line('OK');<br />
END IF;<br />
--Controllo se la lista è univoca, ovvero non ho duplicati<br />
IF x_Varchar2_Table IS A SET THEN<br />
Dbms_output.put_Line('IS A SET);<br />
END IF;<br />
--svuoto la lista<br />
x_Varchar2_Table.DELETE;<br />
END;<br />
/</code></p>
<p>A partire da Oracle 10g sono presenti una serie di operatori <strong>multiset </strong>che permettono operazioni sulle liste. Eccone una lista con accanto l&#8217;equivalente operatore SQL :</p>
<table border="0" width="500" summary="10.1 Multiset Operators">
<tbody>
<tr class="firstrow">
<td>MULTISET UNION DISTINCT</td>
<td>UNION</td>
</tr>
<tr class="row">
<td>MULTISET UNION</td>
<td>UNION ALL</td>
</tr>
<tr class="row">
<td>MULTISET UNION ALL</td>
<td>UNION ALL</td>
</tr>
<tr class="row">
<td>MULTISET INTERSECT</td>
<td>INTERSECT</td>
</tr>
<tr class="row">
<td>MULTISET INTERSECT DISTINCT</td>
<td>N/A</td>
</tr>
<tr class="row">
<td>MULTISET EXCEPT</td>
<td>MINUS</td>
</tr>
<tr class="lastrow">
<td>MULTISET EXCEPT DISTINCT</td>
<td>N/A</td>
</tr>
</tbody>
</table>
<p>Per riempire una lista con dei valori provenienti da una query è semplicissimo :<br />
<code><br />
declare<br />
x_table_list t_varchar2_table := t_varchar2_table();<br />
begin<br />
select table_name BULK COLLECT INTO x_table_list<br />
from user_tables<br />
where table_name like 'A%';<br />
--la lista ora contiene l'elenco delle tabelle che iniziano con A<br />
end;</code></p>
<p>Naturalmente non bisogna abusare dell&#8217;uso delle liste in quanto consumano parecchia memoria. Gli utilizzi principali che ho riscontrato sono :</p>
<ul>
<li>creo una lista di dati che poi andrò ad utilizzare parecchie volte : è inutile fare la join con la medesima tabella (magari di grandi dimensioni) molte volte quando è possibile caricare in memoria la lista di ID di cui necessito e unitilizzarla <em>n</em> volte.</li>
<li>sono molto utili per trasferire dati da una procedura all&#8217;altra : ad esempio, se ho un package che mi gestisce gli utenti e all&#8217;interno di questo una procedure che mi restituisce la lista degli utenti è inutile implementare tale logica in un altro package. Quindi il package che avrà bisogno dell&#8217;elenco degli utenti invocherà tale procedura e ne utilizzerà la lista ottenuta.</li>
<li>Ottimizzazione di insert/update/delete di tante righe grazie all&#8217;operatore <strong>FORALL</strong></li>
</ul>
<p>Ecco alcuni esempi :</p>
<h3>Esempio 1</h3>
<p><code> declare<br />
x_table_list t_varchar2_table := t_varchar2_table();<br />
n_count Number;<br />
begin<br />
select table_name bulk collect into x_table_list<br />
from user_tables<br />
where table_name like 'A%';<br />
--use the list as a table<br />
select count(*) into n_count<br />
from user_tab_columns a, <strong>TABLE</strong>(x_table_list) b<br />
where a.table_name = b.<strong>column_value</strong>;<br />
dbms_output.put_line(n_count);<br />
end;</code></p>
<h3>Esempio 2</h3>
<p><code>create table temp<br />
as select * from user_tables<br />
where 1 = 2;<br />
</code><br />
<code>declare<br />
type t_user_tables is table of user_tables%ROWTYPE;<br />
x_user_tables t_user_tables := t_user_tables();<br />
n Number;<br />
begin<br />
select * bulk collect into x_user_tables<br />
from user_tables;<br />
FORALL n IN x_user_tables.FIRST..x_user_tables.LAST<br />
Insert into temp values x_user_tables(n);<br />
COMMIT;<br />
End;</code></p>
<p>E se invece avessi bisogno di utilizzare una collezione all&#8217;interno di una query dinamica ?? In questo caso è obbligatorio utilizzare collezioni basate su tipi creati all&#8217;interno dello schema tramite il comando <strong>Create Type.</strong> Nell&#8217;esempio utlizzerò il tipo <strong><code>t_varchar2_table</code></strong> creato all&#8217;inizio del post.</p>
<p><code><br />
create or replace PACKAGE pk_Test AS<br />
PROCEDURE pr_Load;<br />
PROCEDURE pr_ExecuteQuery;</code></p>
<p>FUNCTION fn_List RETURN T_Varchar2_Table;</p>
<p>END  pk_Test;</p>
<p>create or replace PACKAGE BODY pk_Test AS<br />
kx_List T_Varchar2_Table := T_Varchar2_Table();</p>
<p>PROCEDURE pr_Load IS<br />
BEGIN<br />
SELECT Table_Name BULK COLLECT INTO kx_List<br />
FROM User_Tables<br />
WHERE Table_Name LIKE &#8216;A%&#8217;;</p>
<p>END pr_Test;</p>
<p>PROCEDURE pr_ExecuteQuery IS<br />
v_Sql VARCHAR2(1000);<br />
n_Count NUMBER;<br />
BEGIN<br />
v_Sql := &#8216;SELECT COUNT(*)<br />
FROM User_Tables<br />
WHERE Table_Name IN (<br />
SELECT Column_Value FROM<br />
TABLE ( pk_Test.fn_List )<br />
)&#8217;;</p>
<p>EXECUTE IMMEDIATE v_Sql INTO n_Count;<br />
Dbms_Output.put_line(n_Count);<br />
END pr_ExecuteQuery;</p>
<p>FUNCTION fn_List RETURN T_Varchar2_Table IS<br />
BEGIN<br />
Return kx_List;<br />
END fn_List;</p>
<p>END pk_Test;</p>
<p>Nella procedura pr_Load non faccio altro che caricare in una collezione tutte le tabelle che iniziano con A.</p>
<p>Nella procedura pr_ExecuteQuery  eseguo una query dinamica tramite il comando Execute Immediate  utilizzando la lista appena caricata che mi viene restituita dalla funzione fn_List.</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:1604px;width:1px;height:1px;">t_user_tables</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/teox78.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/teox78.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/teox78.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/teox78.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/teox78.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/teox78.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/teox78.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/teox78.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/teox78.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/teox78.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/teox78.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/teox78.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/teox78.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/teox78.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=teox78.wordpress.com&amp;blog=2105695&amp;post=28&amp;subd=teox78&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://teox78.wordpress.com/2009/07/20/utilizzo-delle-collezioni-in-oracle-plsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/67b400f72d4009cd83b90d7cfa0c82a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">teox78</media:title>
		</media:content>
	</item>
	</channel>
</rss>
