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

<channel>
	<title>Ralf Schäftlein&#039;s Blog &#187; jdbc</title>
	<atom:link href="http://ralf.schaeftlein.de/tag/jdbc/feed/" rel="self" type="application/rss+xml" />
	<link>http://ralf.schaeftlein.de</link>
	<description>tech stuff, talk,...</description>
	<lastBuildDate>Sat, 27 Mar 2010 11:24:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jdbc DataBaseMetaData + oracle 10g + dbunit + username..</title>
		<link>http://ralf.schaeftlein.de/2008/04/11/jdbc-databasemetadata-oracle-10g-dbunit-username/</link>
		<comments>http://ralf.schaeftlein.de/2008/04/11/jdbc-databasemetadata-oracle-10g-dbunit-username/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 12:47:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[dbunit]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://ralf.schaeftlein.de/?p=6</guid>
		<description><![CDATA[If you are using DBUnit as tool for set up test environment in your oracle 10g then you have to provide the username of course. Normally it isn&#8217;t case sensitive in most tools. The jdbc driver or sqlplus let you create connection with lower case. DBUnit ask the DataBaseMetaData to get the defined tables in [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using <a href="http://dbunit.sourceforge.net" target="_blank">DBUnit </a> as tool for set up test environment in your oracle 10g then you have to provide the username of course. Normally it isn&#8217;t case sensitive in most tools. The jdbc driver or sqlplus let you create connection with lower case. DBUnit ask the DataBaseMetaData to get the defined tables in the schema. Schema and username are the same in the oracle world. So in DBUnit the source is</p>
<p><pre name="code" class="java">
DatabaseMetaData databaseMetaData = jdbcConnection.getMetaData();
ResultSet resultSet = databaseMetaData.getTables(null, schema, "%", tableType);
</pre>
<p>
where tableType is the String[] {&#8220;table&#8221;}. with schema == username lower case i get in my oracle 10.2 db nothing back. With upper case username et voila! Don&#8217;t know if this is really an standard behaviour&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://ralf.schaeftlein.de/2008/04/11/jdbc-databasemetadata-oracle-10g-dbunit-username/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JDBC Connection + Oracle 10g + recycle bin&#8230;</title>
		<link>http://ralf.schaeftlein.de/2008/04/11/jdbc-connection-oracle-10g-recycle-bin/</link>
		<comments>http://ralf.schaeftlein.de/2008/04/11/jdbc-connection-oracle-10g-recycle-bin/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 12:24:38 +0000</pubDate>
		<dc:creator>ralf</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://ralf.schaeftlein.de/?p=5</guid>
		<description><![CDATA[Since Oracle 10g dropped tables goes into a recycle bin: http://orafaq.com/node/968. These tables aren&#8217;t visible inside the admin site under the user but if you are using JDBC to access the schema. Thought first of a bug in SQL Explorer when i saw the huge list of tables starting with BIN$&#8230; Every time you drop [...]]]></description>
			<content:encoded><![CDATA[<p>Since Oracle 10g dropped tables goes into a recycle bin: http://orafaq.com/node/968. These tables aren&#8217;t visible inside the admin site under the user but if you are using JDBC to access the schema. Thought first of a bug in SQL Explorer when i saw the huge list of tables starting with BIN$&#8230; Every time you drop tables more BIN$ you get&#8230; If someone needs such a future&#8230; I&#8217;m more a friend of the &#8220;know what i&#8217;m doing&#8217; approach.  The  good thing  is that this is a feature  which you can disable:</p>
<ol class="dp-sql">
<li class="alt"><span><span>sqlplus sys/</span><span class="keyword">&lt;your password&gt;</span><span> </span><span class="keyword">as</span><span> sysdba </span></span></li>
<li><span>SQL&gt; purge dba_recyclebin; </span></li>
<li class="alt"><span>SQL&gt; <span class="keyword">alter</span><span> system </span><span class="keyword">set</span><span> recyclebin = </span><span class="keyword">OFF</span><span> scope=both;<br />
</span></span></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ralf.schaeftlein.de/2008/04/11/jdbc-connection-oracle-10g-recycle-bin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
