<?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/"
	>

<channel>
	<title>SQL, perl und Unix/Linux Schulungen in und um Wien &#187; Allgemein</title>
	<atom:link href="http://www.trust-box.at/category/allgemein/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.trust-box.at</link>
	<description>SQL, perl und Unix/Linux Schulungen in und um Wien</description>
	<pubDate>Tue, 22 Feb 2011 10:24:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Das XML der Statistik Austria</title>
		<link>http://www.trust-box.at/2011/02/22/das-xml-der-statistik-austria/</link>
		<comments>http://www.trust-box.at/2011/02/22/das-xml-der-statistik-austria/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 10:24:16 +0000</pubDate>
		<dc:creator>schulung</dc:creator>
		
		<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.trust-box.at/?p=113</guid>
		<description><![CDATA[Lobenswerterweise stellt die die Statistik-Austria sehr viele Daten zur &#8220;freien&#8221; Verfügung ins Netz. So auch alle Straßen- und Ortsnamen Österreichs.  Wer sich allerdings das XML ausgedacht hat zb:
&#60;datensatz&#62;
    &#60;element&#62;10101&#60;/element&#62;
    &#60;element&#62;Eisenstadt&#60;/element&#62;
    &#60;element&#62;00001&#60;/element&#62;
    &#60;element&#62;Eisenstadt&#60;/element&#62;
    &#60;element&#62;000001&#60;/element&#62;
    &#60;element&#62;Josef Stanislaus Albach-Gasse&#60;/element&#62;
 [...]]]></description>
			<content:encoded><![CDATA[<p>Lobenswerterweise stellt die die <a href="http://statistik.at">Statistik-Austria</a> sehr viele Daten zur &#8220;freien&#8221; Verfügung ins Netz. So auch <a href="http://www.statistik.at/strasse/suchmaske.jsp">alle Straßen- und Ortsnamen Österreichs</a>.  Wer sich allerdings das XML ausgedacht hat zb:</p>
<p><code>&lt;datensatz&gt;<br />
    &lt;element&gt;10101&lt;/element&gt;<br />
    &lt;element&gt;Eisenstadt&lt;/element&gt;<br />
    &lt;element&gt;00001&lt;/element&gt;<br />
    &lt;element&gt;Eisenstadt&lt;/element&gt;<br />
    &lt;element&gt;000001&lt;/element&gt;<br />
    &lt;element&gt;Josef Stanislaus Albach-Gasse&lt;/element&gt;<br />
    &lt;element&gt;7000&lt;/element&gt;<br />
    &lt;element&gt;10101&lt;/element&gt;<br />
&lt;/datensatz&gt;<br />
</code></p>
<p>der hat geistig den Umstieg von csv zu xml noch nicht ganz verkraftet <img src='http://www.trust-box.at/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.trust-box.at/2011/02/22/das-xml-der-statistik-austria/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle 11.2:IGNORE_ROW_ON_DUPKEY_INDEX - Please No!</title>
		<link>http://www.trust-box.at/2010/05/18/oracle-112-ignore_row_on_dupkey_index/</link>
		<comments>http://www.trust-box.at/2010/05/18/oracle-112-ignore_row_on_dupkey_index/#comments</comments>
		<pubDate>Tue, 18 May 2010 09:02:38 +0000</pubDate>
		<dc:creator>schulung</dc:creator>
		
		<category><![CDATA[Allgemein]]></category>

		<category><![CDATA[Oracle]]></category>

		<category><![CDATA[SQL Beispiele]]></category>

		<guid isPermaLink="false">http://www.trust-box.at/?p=97</guid>
		<description><![CDATA[Oracle hat mit 11.2 neue optimizer hints &#8220;erfunden&#8221; und zwar auch IGNORE_ROW_ON_DUPKEY_INDEX.
Er dient dazu (wie der Name schon sagt) bei einem INSERT  (und  nicht bei einem UPDATE!) auf einen Unique Key die Exception zu  ignorieren und das statement tut dann einfach nichts. Es würde dann also zb funktionieren (ohne unique key violation):
insert into [...]]]></description>
			<content:encoded><![CDATA[<p>Oracle hat mit 11.2 neue optimizer hints &#8220;erfunden&#8221; und zwar auch <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/sql_elements006.htm#CHDEGDDG">IGNORE_ROW_ON_DUPKEY_INDEX</a>.</p>
<p>Er dient dazu (wie der Name schon sagt) bei einem INSERT  (und  nicht bei einem UPDATE!) auf einen Unique Key die Exception zu  ignorieren und das statement tut dann einfach nichts. Es würde dann also zb funktionieren (ohne unique key violation):</p>
<p><code>insert into testtable (id, text) values (1, 'testtext der erste');<br />
insert /*+ IGNORE_ROW_ON_DUPKEY_INDEX(testtable(id))*/  into testtable (id, text) values (1, 'testtext der zweite');<br />
</code></p>
<p>Dieser Hint ist eigentlich kein Hint  sondern eine Option (&#8230;), und außerdem aus mehreren Gründen keine gute  Idee:</p>
<ul>
<li>andere Oracle Hints (zb für den Optimizer) verändern das Verhalten des Statments nicht, und sind somit kompatibel mit anderen Datenbanken</li>
<li>es gibt schon ein statment mit dem man den gleichen Effekt erreichen kann und zwar MERGE, welches man mittelfristig sicher auch in <a href="http://petereisentraut.blogspot.com/2010/05/merge-syntax.html?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+PeterEisentraut+%28Peter+Eisentraut%27s+Blog%29">anderen Datenbanken wie Postgres </a>erwarten kann</li>
</ul>
<p>Und gleich der Vollständigkeit halber das MERGE-Statement:</p>
<p><code>merge into testtable<br />
using (select 1 from dual)<br />
on (id = :b_id)<br />
when not matched then<br />
insert (id, text) values (:b_id, :b_text);<br />
</code></p>
<p>ich verwende deswegen bind Variablen weil man ansonsten den Wert :b_id zweimal einsetzen müßte. Entgegen anderslautenden Gerüchten muß es keinen &#8220;when matched &#8230; where 2=1&#8243; (oder Ähnliches)  Abschnitt geben. Das &#8220;select 1 from dual&#8221; dient dazu um genau ein Zeile zum bekommen und somit die Zahl der zu behandelnden Zeilen zu determinieren.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trust-box.at/2010/05/18/oracle-112-ignore_row_on_dupkey_index/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle XE on Suse 11 64bit</title>
		<link>http://www.trust-box.at/2010/03/15/oracle-xe-on-suse-11-64bit/</link>
		<comments>http://www.trust-box.at/2010/03/15/oracle-xe-on-suse-11-64bit/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 20:28:10 +0000</pubDate>
		<dc:creator>schulung</dc:creator>
		
		<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://www.trust-box.at/?p=85</guid>
		<description><![CDATA[Oracle XE (Express Edition) uses libaio 32bit. So if you want to install it on 64bit system you have to install the 32bit version. For example from here
]]></description>
			<content:encoded><![CDATA[<p>Oracle XE (Express Edition) uses libaio 32bit. So if you want to install it on 64bit system you have to install the 32bit version. For example from <a href="http://rpm.pbone.net/index.php3/stat/4/idpl/13090305/dir/opensuse/com/libaio-32bit-0.3.104-144.2.x86_64.rpm.html">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.trust-box.at/2010/03/15/oracle-xe-on-suse-11-64bit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>nic.at epp client</title>
		<link>http://www.trust-box.at/2008/12/02/nicat-epp-client/</link>
		<comments>http://www.trust-box.at/2008/12/02/nicat-epp-client/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 14:54:39 +0000</pubDate>
		<dc:creator>schulung</dc:creator>
		
		<category><![CDATA[Allgemein]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.trust-box.at/2008/12/02/nicat-epp-client/</guid>
		<description><![CDATA[newest version of the php client for nic.at epp registry system
php-epp-client
for more information please go to  the php-epp-client main page
]]></description>
			<content:encoded><![CDATA[<p>newest version of the php client for nic.at epp registry system<br />
<a href="http://www.trust-box.at/download/php-epp-client">php-epp-client</a></p>
<p>for more information please go to  the <a href="http://www.trust-box.at/nicat-php-client/">php-epp-client</a> main page</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trust-box.at/2008/12/02/nicat-epp-client/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

